![]() |
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? |
Post the lines above this line. (One line on its own its only good for solving syntax errors :p)
Most likely the vBulletin backend/core is not initiating correctly. |
Is this code inside a function?
|
Yes the code is inside a function, heres the function.
PHP Code:
|
The add the following as the first line of the function:
PHP Code:
|
Thanks, I've added that and its rejecting the same line again.
|
change it to:
PHP Code:
|
Also, why do you use:
PHP Code:
PHP Code:
|
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.
|
All times are GMT. The time now is 03:31 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:
|