| Author |
Message |
xtone Regular


Joined: Nov 11, 2006 Posts: 73
|
Posted:
Tue Nov 14, 2006 1:30 am |
|
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 |
|
|
|
 |
evaders99 Moderator

Joined: Apr 30, 2004 Posts: 2793
|
Posted:
Tue Nov 14, 2006 8:10 am |
|
Post the bit of code around and including line 32 |
|
|
|
 |
xtone Regular


Joined: Nov 11, 2006 Posts: 73
|
Posted:
Wed Nov 15, 2006 12:30 am |
|
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 Moderator

Joined: Apr 30, 2004 Posts: 2793
|
Posted:
Wed Nov 15, 2006 12:37 am |
|
Mm not sure where this code is coming from. But if there's a global statement, it needs to include $db
|
|
|
|
 |
xtone Regular


Joined: Nov 11, 2006 Posts: 73
|
Posted:
Wed Nov 15, 2006 12:58 am |
|
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 Regular


Joined: Nov 11, 2006 Posts: 73
|
Posted:
Wed Nov 15, 2006 12:59 am |
|
and where do ia have to include $db pleas neeed step by step guidance. |
|
|
|
 |
xtone Regular


Joined: Nov 11, 2006 Posts: 73
|
Posted:
Wed Nov 15, 2006 1:12 am |
|
dat works but WYSIWYG still not working. |
|
|
|
 |
|
|
|
|