Author |
Message |
elite_haxor
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 28, 2007
Posts: 14
|
Posted:
Mon May 12, 2008 12:17 pm |
|
Hi all
I recently changed hosts the only thing i did was completely backup nuke and db and then add to temporary domain until nameservers are live, i resored database and uploaded all files but get this error on entry to index.php
Fatal error: Call to a member function on a non-object in **path removed by admin**/index.php on line 38
line 38 as follows
Code:$row = $db->sql_fetchrow($db->sql_query('SELECT main_module from '.$prefix.'_main'));
|
any ideas????
thanks in advance
EH[/code] |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon May 12, 2008 12:37 pm |
|
in main_module in the sql it does state on index defined? is this normal if not what is the default index supposed to be? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sting
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/4100a278409c42c9a6050.jpg)
Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...
|
Posted:
Mon May 12, 2008 12:54 pm |
|
My first thought is that there may be something screwy with your config.php - specifically with the database connection. DO NOT POST YOUR CONFIG.PHP here...
Double checking my first thought, came across a similar error on google at
http://lists.evolt.org/archive/Week-of-Mon-20041220/167361.html
references an issue with the database, so it sounds plausible. . .
I would check to see that you have changed your database settings to point to the new server (it's usually localhost, but you never can tell)
-sting |
_________________ You see - I told you I wasn't paranoid. They were really out to get me. |
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon May 12, 2008 1:02 pm |
|
yeah its localhost and its changed, running out of ideas lol |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Mon May 12, 2008 8:20 pm |
|
$dbtype should be defined as MySQL and all the files in the db folder should be there.
Just to confirm, you are using v2.10.01? |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 13, 2008 12:39 am |
|
evaders99 wrote: | $dbtype should be defined as MySQL and all the files in the db folder should be there.
Just to confirm, you are using v2.10.01? |
yes its 2.10.01 and i check that and all seems to be in the sql file no errors on import?? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 13, 2008 12:10 pm |
|
evaders99 wrote: | $dbtype should be defined as MySQL and all the files in the db folder should be there.
Just to confirm, you are using v2.10.01? |
yes its 2.10.01 and i check that and all seems to be in the sql file no errors on import?? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 13, 2008 12:13 pm |
|
hasn't aybody got any ideas??? im really stuck now and site already been down for 2 days? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sting
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 13, 2008 2:12 pm |
|
Are you able to access your database through a separate php file? Maybe running a select * on one of the tables just to see if you can get a response?
-sting |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 13, 2008 2:33 pm |
|
sure forums link gives me this
Warning: mysql_query() [function.mysql-query]: Access denied for user '1337-elite.co.uk'@'localhost' (using password: NO) in **path removed by admin**/modules/RWS_WhoIsWhere/includes/RWS_wiw.inc.php on line 49
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in **path removed by admin**/modules/RWS_WhoIsWhere/includes/RWS_wiw.inc.php on line 49
MySQL said: Access denied for user '**removed by admin**' (using password: NO)
http://www.1337-elite.co.uk/modules.php?name=Forums
which is wierd cause config doesnt have that user details?? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 13, 2008 4:31 pm |
|
if anyone seriously knows how to fix this please contact me urgently i am willing to pay money for someone to restore my database and nuke to fully operational again |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 13, 2008 9:25 pm |
|
phpNuke should be defining those values from config.php. RWS_WhoIsWhere does use the standard mysql functions rather than the abstraction layer, which may be causing the problem |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 14, 2008 12:49 am |
|
evaders99 wrote: | phpNuke should be defining those values from config.php. RWS_WhoIsWhere does use the standard mysql functions rather than the abstraction layer, which may be causing the problem |
ok so what would be the fix?? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed May 14, 2008 6:18 am |
|
elite_haxor, please, please, please stop posting your full path information and you even provided your mysql user id! <sigh> That is only hurting you as it exposes very sensitive information out in a public realm.
Try shutting off your who is where block as well as inactivate the module. First try that.
However, second, try commenting out the following code in index.php and in modules.php:
Code:
include_once('modules/RWS_WhoIsWhere/includes/RWS_wiw.inc.php');
|
Don't do these all at once. Try one at a time progressively... This will rule in/out the WhoIsWhere causing the issue. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
elite_haxor
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat May 17, 2008 11:05 am |
|
its fine but thanks, i managed to figure out what was wrong, my ftp client basically decided not to transfer some files correctly and missed mainfile.php and some other so i re-upped those only to get mysql errors but im quite good with sql so just re added all the tables it missed in the restoration ; ) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat May 17, 2008 11:32 am |
|
Ok. Thanks for letting us know. Good luck! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|