Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
scottr
PHP-Portal Project



Joined: Jan 21, 2003
Posts: 41
Location: Southern California

PostPosted: Sat Mar 06, 2004 4:20 pm Reply with quote

I'm editing a module converting all occurrances of $dbi to the newer $db-> style.

everything worked fine but when i run it against a 6.0 nuke i get this error:
Fatal error: Call to a member function on a non-object

is there a trick to make that work on nuke 6.0 or less ?

_________________
DECEASED Sad 
View user's profile Send private message Visit poster's website Yahoo Messenger
scottr







PostPosted: Mon Mar 08, 2004 3:27 pm Reply with quote

to get $db-> stuff to work in Nuke 6.0 or less only takes 2 steps:

1. copy the html/db directory from a Nuke 6.5 or higher env to your 6.0 or lower html/ directory.
2. edit mainfile.php,
add
Code:
require_once("db/db.php");

right after
Code:
require_once("config.php");


Raven, feel free to tweak what i said if you know a better way.
i see a bunch of code that has ../../db/db.php and stuff but don't think that is needed
to get $db-> stuff to work in Nuke 6.0 or less.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©