PDA

View Full Version : error reporting in plugins


Disasterpiece
07-07-2011, 05:37 PM
Hey

I'm working on a mod with several plugins.
The plugins include and use functions from an extra file in the includes dir.

I seem to have a php error somewhere, the problem is, everytime I run the plugin with this unknown error, it just doesn't get executed at all and i see no error.

If I just use the code
die("BLAH");
inside the plugin, it gets executed, however if i put this die() part at the end of my plugin's code, nothing happens.

I suspect that the eval() funciton of vbulletin just throws an error and vbulletin compeltely ignores the problem and skips over to execute the rest of the site's code.

I already enabled the debug mode everywhere in the config.php and even added a error_reporting(E_ALL); in the first line of my plugin, but this doesn't seem to work.

affected hooks are newreply_post_complete and showthread_postbit_create


Help plz!

vbresults
07-08-2011, 03:17 PM
Did you ini_set('display_errors', true);?

Disasterpiece
07-08-2011, 03:32 PM
yep, somehow my webserver config was messed up, found the problem :P (php.ini)