Critical Error! Message die()


  -----  
Author Message

deny
Member

Sun Feb 20, 2005 4:17 am   Post subject: Critical Error! Message die()
I did upgrade to new and everything works fine a couple day.But today when i got new prillian i see on the bottom line of prillian

Code:

Critical Error!
message_die() was called multiple times.
 
Error #1
Wasn't able to access posts

Line : 491
File : /home/pb/public_html/phpBB2/includes/template.php
SQL : SELECT * FROM phpbb_posts WHERE post_id=27678
 
Error #2
Wasn't able to access posts

Line : 491
File : /home/pb/public_html/phpBB2/includes/template.php
SQL : SELECT * FROM phpbb_posts WHERE post_id=27678


I actually got a correct new message and can read it but under quick reply these erros appear.
Here are line from template.php (it is used by eXtreme Styles mod 2 for speeding board)

From 483 to 497 line:

Code:

// find the forum
         if ( ($forum_id <= 0) && ($cat_id <= 0) )
         {
            if ($post_id > 0)
            {
               $sql = "SELECT * FROM " . POSTS_TABLE . " WHERE post_id=$post_id";         
               if ( !($result = $db->sql_query($sql)) )
               {
                  message_die(GENERAL_ERROR, 'Wasn\'t able to access posts', '', __LINE__, __FILE__, $sql);
               }
               if ( $row = $db->sql_fetchrow($result) )
               {
                  $forum_id = $row['forum_id'];
               }
            }


Any idea?
 

Thoul
Administrator

Mon Feb 21, 2005 6:09 am   Post subject: re: Critical Error! Message die()
In imclient.php, find this line at the top:

Code:

define('IN_PHPBB', true);


After it, add this:

Code:

define('IN_PRIVMSG', true);


I think this might get rid of the error message. I'm not entirely certain, though... let me know how it goes.
 

deny
Member

Tue Feb 22, 2005 3:28 pm   Post subject: re: Critical Error! Message die()
Placing

Code:

define('IN_PRIVMSG', true);

did a job.
It works Very Happy
Thanks!
 

Page 1 of 1
Display posts from previous: