Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 04-28-2008, 08:19 PM
toxotes toxotes is offline
 
Join Date: Apr 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default htdocs/forum/includes/class_postbit.php(296) : eval()'d code on line 39

I get the following error during invoke of the forum

Quote:
"htdocs/forum/includes/class_postbit.php(296) : eval()'d code on line 39 "
First I thought that it might be up to an unbalanced brace in class_postbit.php

PHP Code:
if (!empty($this->highlight) AND is_array($this->highlight)) // AND ($_REQUEST['postid'] == $post['postid'] OR empty($_REQUEST['postid'])) ) 
However, the unbalanced brace matters only when the comment is uncommented.
I tried to use
PHP Code:
 php_value display_errors 0 
but it doesn't work since the hoster does not allow this on shared servers.
Any ideas how to solve the issue?

Thanks in advance!
Reply With Quote
  #2  
Old 04-28-2008, 08:33 PM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a problem in one of our plugins.
Reply With Quote
  #3  
Old 04-28-2008, 08:51 PM
toxotes toxotes is offline
 
Join Date: Apr 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MoT3rror View Post
There is a problem in one of our plugins.

That means? It will be fixed in one of the next updates? If so, should we use it "as is" and wait until the fix will be released?

Thanks,

Toxotes
Reply With Quote
  #4  
Old 04-28-2008, 09:35 PM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I meant there is a problem in your plugin. The hook is postbit_display_complete
Reply With Quote
  #5  
Old 04-29-2008, 07:19 AM
toxotes toxotes is offline
 
Join Date: Apr 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be possible to get a better hint? I tried to set up a debug. Unfortunately .htaccess is restricted. So I cannot setup debug via the following command

PHP Code:
php_flag display_errors off
php_flag log_errors on
php_value error_log 
/xxx/xxxx/xxx/xxx/xxxxxxx/htdocs/php_error_log 

I cannot find anything wrong with the hook itself

PHP Code:
($hook =& vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false
So I assume that the error occurs during the eval itself.
Is there a possiblity to debug just the eval itself?

Thanks,

EDIT: I disabled the hook and everything seems to be fine so far. However. this should only be a workaround..
Reply With Quote
  #6  
Old 04-29-2008, 07:41 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disable plugins at postbit_display_complete. Then re-enable in turn to see which causes the error.
Reply With Quote
  #7  
Old 04-29-2008, 03:41 PM
toxotes toxotes is offline
 
Join Date: Apr 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I got you correct then you were talking about those plugins. Starting at line #298

PHP Code:
        // evaluate template
        
$postid =& $post['postid'];
        eval(
'$postbit = "' fetch_template($this->templatename) . '";');

        eval(
'$retval = "' fetch_template('postbit_wrapper') . '";');

        return 
$retval;
    }

;


It doesn't matter which one is enabled or disabled. The error occures as soon as one plugin is enabled. Let me know if I got you right.

Thanks,
Reply With Quote
  #8  
Old 04-30-2008, 07:09 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am talking about plugins from modifications you have installed. They can be disabled in the Admin CP.
Reply With Quote
  #9  
Old 05-01-2008, 10:21 PM
toxotes toxotes is offline
 
Join Date: Apr 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see. I will talk to the one who was installing plugins and will get back to you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08237 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete