![]() |
Fatal error: Call to a member function query_first_slave() on a non-object
Hi all.
(Using version 3.8.1) I'm trying to write some code outside of VB. However, when i include the first VB file i get this fatal error: Code:
Fatal error: Call to a member function query_first_slave() on a non-object in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mywebsite\forum\includes\functions.php on line 1368 Here's the code that's throwing the fatal error: Code:
class myclass Thanks. |
What is the first file you include? You must always include global.php before including any others.
|
global.php is the only file I'm including! I'm also getting two warnings before the fatal error.
Code:
Warning: array_keys() [function.array-keys]: The first argument should be an array in [path]\includes\functions.php on line 4227 |
Actually looking at your code again your problem is that you are trying to use it inside a class function. This will not work.
|
OK - code moved and now it works. Thanks for the help.
Thread resolved. |
All times are GMT. The time now is 08:10 PM. |
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:
|