XF 1.5 Disable error logging

SpecialK

Well-known member
A bit of an odd request here, but it's for a reason.

We are including the XF bootstrapping inside a Wordpress plugin so that we can get access to the user object for SSO. The problem is that several of the Wordpress plugins generate notices/warnings due to poor coding, and these end up in the XF error log thousands of times. I would rather these warnings go to the server's error log and have the XF error logging only show me issues relevant to XF.

So the question is - What is the best way to disable the XF error reporting from within my plugin? This will only affect our Wordpress installation.

Our bootstrapping code looks like this:

PHP:
$fileDir = '/home/site/public/forum';

$startTime = microtime(true);

require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

XenForo_Session::startPublicSession();
 

S Thomas

Well-known member
You could try
XenForo_Application::disablePhpErrorHandler();
This would disable all of the xf error logging I guess.
 
Top