PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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 ?
View user's profile Send private message Visit poster's website Yahoo Messenger
scottr
PHP-Portal Project


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

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

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.
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum