![]() |
possible to include(global.php) in a class?
Hello, here's my test case (php4):
Test.php PHP Code:
dotest.php PHP Code:
Code:
Fatal error: Call to a member function on a non-object in Is it possible to create a $vbulletin registry object inside of a class? I did a search and attempted using the solution proposed Here by kolita, and that gives me a vbulletin object that has all the standard properties and that I can enumerate, but only if I skip creating a session (meaning my userinfo array is empty), and this is useless for me. i.e. if I comment out Code:
define('SKIP_SESSIONCREATE', 1); Anyone have some insight? I'm trying to build a amfphp connector to vbulletin and i'm truly stumped. thanks :) |
Instead of include_once, try require_once.
|
Quote:
Sorry to hijack this thread, but it would be more logical to type here then creating another unnecessary thread. thanks! :D |
Quote:
|
For the purposes of this thread there's no difference between include, require, include_once and require_once.
Note that the error is not occuring in either of the files defined above - but instead in functions.php which is part of the vbulletin inner-workings. This means that the include/require is working up until the point where something about it being inside of a class construct makes Vbulletin go haywire. |
What version of vBulletin are you using? Line 1154 in 3.6.7 PL1 is part of a comment:
PHP Code:
|
All times are GMT. The time now is 04:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|