x3sphere
07-29-2007, 05:30 PM
Previously I'd use the Wordpress db functions to insert data from the current post into my vB database. Now I want to use vB's data manager to insert a new thread but there is a problem. When including the vB files from within the function Wordpress uses to create a new post, I get this error:
Fatal error: Call to a member function query_first_slave() on a non-object in C:\wamp\www\forums\includes\functions.php on line 1154
Is it because some Wordpress variable is conflicting with a vBulletin one? I am quite lost here :/
Ah, got it :)
Moved the global.php outside of the function and it worked fine xD
Fatal error: Call to a member function query_first_slave() on a non-object in C:\wamp\www\forums\includes\functions.php on line 1154
Is it because some Wordpress variable is conflicting with a vBulletin one? I am quite lost here :/
Ah, got it :)
Moved the global.php outside of the function and it worked fine xD