PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
xtone
Regular
Regular


Joined: Nov 11, 2006
Posts: 73

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

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
Moderator


Joined: Apr 30, 2004
Posts: 2793

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

Post the bit of code around and including line 32
View user's profile Send private message Visit poster's website
xtone
Regular
Regular


Joined: Nov 11, 2006
Posts: 73

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

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]);
}
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2793

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

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

Code:

global $db;
View user's profile Send private message Visit poster's website
xtone
Regular
Regular


Joined: Nov 11, 2006
Posts: 73

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

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]);
}
View user's profile Send private message
xtone
Regular
Regular


Joined: Nov 11, 2006
Posts: 73

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

and where do ia have to include $db pleas neeed step by step guidance.
View user's profile Send private message
xtone
Regular
Regular


Joined: Nov 11, 2006
Posts: 73

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

dat works but WYSIWYG still not working.
View user's profile Send private message
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum