The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Non-object Issue
Ok I have this line of text in my php functions admin file that keeps getting booted when executed. with the error
Fatal error: Call to a member function on a non-object in {file} on line 8 Line 8: PHP Code:
Help? |
#2
|
|||
|
|||
Post the lines above this line. (One line on its own its only good for solving syntax errors )
Most likely the vBulletin backend/core is not initiating correctly. |
#3
|
|||
|
|||
Is this code inside a function?
|
#4
|
||||
|
||||
Yes the code is inside a function, heres the function.
PHP Code:
|
#5
|
|||
|
|||
The add the following as the first line of the function:
PHP Code:
|
#6
|
||||
|
||||
Thanks, I've added that and its rejecting the same line again.
|
#7
|
|||
|
|||
change it to:
PHP Code:
|
#8
|
|||
|
|||
Also, why do you use:
PHP Code:
PHP Code:
|
#9
|
||||
|
||||
I was chopping and changing the coding various ways to see which part it was, I was going to revert it back after I'd got it working.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|