This is the code I'm using to initialise Xenforo:
$xenforoRoot = '/home/ausfifac/public_html/forums/';
require($xenforoRoot . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($xenforoRoot . '/library');
This bit of code is included at the start of every file on my site.
It works great and all, but I am now constantly getting spammed with "Undefined variable" error messages in my error log. Every time a page is hit on my site, errors are generated. After a few days I'll have roughly 1 million error messages, and it starts to impact on my disk space.
It throws an error for almost every single variable on my pages, even when there are no actual errors present in my code. Things such as:
Trying to get property of non-object
Here's a stack trace for one of the errors:
#0 /home/ausfifac/public_html/inc/club/overview.php(127): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/ausfifac/...', 127, Array)
Is there any way I can solve this issue?