PHP wrote:Fatal error: Class 'UserDataHandler' not found in /directory_name_removed/trunk/common_render.php on line 56
I established that the __autoload function defined in /trunk/common.php was being overwritten by the autoloading framework of PHPBB. Because of this, UserDataHandler was never included. I was puzzled as to why this didn't break the main AAO but still rewrote the __autoload as an spl_autoload_register, which allows for different simultaneous autoload functions. I got this error:
PHP wrote:Warning: require_once(/directory_name_removed/trunk/includes/phpbb\config_php_file.class.php): failed to open stream: No such file or directory in /directory_name_removed/trunk/common.php on line 5
Fatal error: require_once(): Failed opening required '/directory_name_removed/trunk/includes/phpbb\config_php_file.class.php' (include_path='.:') in /directory_name_removed/trunk/common.php on line 5
That file should be handled by the PHPBB internals, not AAO's autoloading function. Once it skipped over the first autoload I had queued up, it should have gone on to PHPBB's autoloading. After I confirmed that PHP was entering the AAO autoload function to look for this file, I didn't have anywhere else to investigate. (Unless I went into the PHPBB internals, which sounds far too messy.)
Does anybody have an idea as to how to fix this? I could leave it as it was but manually include the relevant classes, but that would be equivalent to getting rid of the autoloader.
For what it's worth, I'm using PHPBB 3.1.9, PHP 5.6.21, and MySQL 5.7.12