Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8
Author Message
xtone
Regular
Regular



Joined: Nov 11, 2006
Posts: 73

PostPosted: Tue Nov 14, 2006 1:30 am Reply with quote

I get this when i tried to load my index page:

i 've patched my WYSIWYG wid 7.8 Patched i get this error

Fatal error: Call to a member function sql_query() on a non-object in /home/xtone/public_html/phpnuke/includes/javascript.php on line 32
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Nov 14, 2006 8:10 am Reply with quote

Post the bit of code around and including line 32

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
xtone







PostPosted: Wed Nov 15, 2006 12:30 am Reply with quote

From line : 32

$getwysigmodules = $db->sql_query("SELECT * FROM ".$prefix."_modules WHERE wysig_status = '1'");
while ($gotmodules = $db->sql_fetchrow($getwysigmodules)) {
if(is_array($nowysig)) {
array_push($nowysig, $gotmodules[title]);
} else {
$nowysig = array($gotmodules[title]);
}
 
evaders99







PostPosted: Wed Nov 15, 2006 12:37 am Reply with quote

Mm not sure where this code is coming from. But if there's a global statement, it needs to include $db

Code:


global $db;
 
xtone







PostPosted: Wed Nov 15, 2006 12:58 am Reply with quote

yes its like dis code global code it is the starting of dat code:

##################################################
# Include for some common javascripts functions #
##################################################

global $module, $name, $admin, $advanced_editor, $adveditor, $lang;

if (file_exists("themes/$ThemeSel/style/editor.css")) {
$edtcss = "editor_css : \"themes/$ThemeSel/style/editor.css\",";
} else {
$edtcss = "editor_css : \"includes/tiny_mce/themes/default/editor_ui.css\",";
}

$getwysigmodules = $db->sql_query("SELECT * FROM ".$prefix."_modules WHERE wysig_status = '1'");
while ($gotmodules = $db->sql_fetchrow($getwysigmodules)) {
if(is_array($nowysig)) {
array_push($nowysig, $gotmodules[title]);
} else {
$nowysig = array($gotmodules[title]);
}
 
xtone







PostPosted: Wed Nov 15, 2006 12:59 am Reply with quote

and where do ia have to include $db pleas neeed step by step guidance.
 
xtone







PostPosted: Wed Nov 15, 2006 1:12 am Reply with quote

dat works but WYSIWYG still not working.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8

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 ©