vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   htdocs/forum/includes/class_postbit.php(296) : eval()'d code on line 39 (https://vborg.vbsupport.ru/showthread.php?t=177436)

toxotes 04-28-2008 07:19 PM

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!

MoT3rror 04-28-2008 07:33 PM

There is a problem in one of our plugins.

toxotes 04-28-2008 07:51 PM

Quote:

Originally Posted by MoT3rror (Post 1501757)
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

MoT3rror 04-28-2008 08:35 PM

Sorry I meant there is a problem in your plugin. The hook is postbit_display_complete

toxotes 04-29-2008 06:19 AM

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..

Dismounted 04-29-2008 06:41 AM

Disable plugins at postbit_display_complete. Then re-enable in turn to see which causes the error.

toxotes 04-29-2008 02:41 PM

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,

Dismounted 04-30-2008 06:09 AM

I am talking about plugins from modifications you have installed. They can be disabled in the Admin CP.

toxotes 05-01-2008 09:21 PM

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


All times are GMT. The time now is 02:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01983 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete