Thanks for the quick reply! I tried the "$this->registry" tweak, but received the following error:
Quote:
Fatal error: Using $this when not in object context in /home/user/public_html/itrader_feedback.php on line 292
|
However, Shawn with DigitalPoint mentioned some
changes in 4.1.5:
Quote:
I suspect vBulletin removed one of the places they were initializing the bootstrap framework (which is what also implements the class auto-load method). The bootstrap framework SHOULD be loaded always, but for some reason it's not and they instead load it in like 90 different places "as needed".
Vote for this to get it always loaded and you will make programmers happy.
http://tracker.vbulletin.com/browse/VBIV-8198
I'll wrap up an updated Sphinx package in the morning (it's 4am now, and I need to go to bed before I fall over) that just does what the test plug-in I had to make does... that way others don't run into the issue. Terribly annoying though if you ask me... shouldn't even need to happen. And terrible they decided to NOT load it in 4.1.5, but they were loading it in earlier versions.
|
The Sphinx hook that's conflicting (pmdata_postsave) contains the following code:
PHP Code:
require_once(DIR . '/includes/class_bootstrap_framework.php');
vB_Bootstrap_Framework::init();
^Adding that code to the "REQUIRE BACK-END" section of
itrader_feedback.php resolves the problem:
FIND:
PHP Code:
require_once(DIR . '/itrader_global.php');
ADD BELOW:
PHP Code:
require_once(DIR . '/includes/class_bootstrap_framework.php');
vB_Bootstrap_Framework::init();