Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
southern
Client



Joined: Jan 29, 2004
Posts: 624

PostPosted: Sun Jan 22, 2012 9:37 pm Reply with quote

The upgrade of RavenNuke 2.50.00 went fine and I deleted the Installation folder, then went to my site. I have this error:

Code:


Fatal error: Call to a member function sql_query() on a non-object in /home/xxxxxxx/public_html/index.php on line 43


First time I've ever seen an error when upgrading RavenNuke. Where's it coming from? Thanks.

_________________
Computer Science is no more about computers than astronomy is about telescopes.
- E. W. Dijkstra

Last edited by southern on Mon Jan 23, 2012 11:58 pm; edited 1 time in total 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Jan 22, 2012 9:57 pm Reply with quote

Try to re upload the RN 2.5 index.php file.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
southern







PostPosted: Sun Jan 22, 2012 10:04 pm Reply with quote

I did. Still the error. I think it is looking for the Tricked Out News News module, so I re-uploaded that. Still the error.
 
southern







PostPosted: Sun Jan 22, 2012 10:09 pm Reply with quote

This is lines 43 to 49 of the RN 2.5 index.php

Code:


$result = $db->sql_query('SELECT `main_module` FROM `' . $prefix . '_main`');
if ($result) {
   $row = $db->sql_fetchrow($result, SQL_ASSOC);
   if (isset($row['main_module'])) {
      $name = $row['main_module'];
   } else {
      $name = '';

It seems to be looking for the main module, the one set as the index module.
 
nuken







PostPosted: Sun Jan 22, 2012 10:13 pm Reply with quote

Have you made any changes to the install files that came with 2.5?
Did you change anything with your original install?
 
southern







PostPosted: Sun Jan 22, 2012 10:19 pm Reply with quote

No. I added defines to language files for Sommaire but that is it. Otherwise the install files were out of the box and the installation went fine, tables were updated with no errors. The only error is in the index.php.
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Jan 23, 2012 12:18 am Reply with quote

What version of PHP are you running?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
Palbin







PostPosted: Mon Jan 23, 2012 12:24 am Reply with quote

You need to re download and upload again. You have some major problems as I am getting Fatal error: Call to undefined function check_html() when trying to go to your account.
 
southern







PostPosted: Mon Jan 23, 2012 12:42 am Reply with quote

I'm running the same version my webhost is, PhP 5.2. I'm also getting an errror in admin.php

Code:


Fatal error: Call to undefined function get_lang() in /home/xxxxxxx/public_html/admin.php on line 42


I have d/led it and I'll try re-u/ling it. Sigh.
 
southern







PostPosted: Mon Jan 23, 2012 1:23 am Reply with quote

I re-d/led and re-u/led the RavenNuke 2.5 files.
I'm still getting the error in index.php as well as in admin.php.

I've never seen errors like these.
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Jan 23, 2012 1:29 am Reply with quote

Just as an fyi, he hosts with me Smile. I haven't looked at anything but try downloading the other file. In other words, if you're using the .7z file, try using the .rar file. I'm just trying to eliminate possible causes. If that doesn't help, then try a fresh installation as a test. If that works then you know the problem is in your upgrade process.
 
View user's profile Send private message
southern







PostPosted: Mon Jan 23, 2012 10:04 am Reply with quote

I d/led the .rar first and those are the files I u/led initially. Then after the problem occurred I d/led and u/led the .7z files with the same errors. At least I think I u/led the files. While FZ was working I took a break and my girlfriend logged me off and I got confused. I will try a fresh install now that I'm awake lol
 
southern







PostPosted: Mon Jan 23, 2012 11:59 am Reply with quote

Still no luck.
 
Palbin







PostPosted: Mon Jan 23, 2012 1:12 pm Reply with quote

southern, would you be willing to give me temporary FTP access?
 
southern







PostPosted: Mon Jan 23, 2012 1:15 pm Reply with quote

Sure, I'd be willing. I just now gave it to nuken though. I'm waiting to see what he finds.
 
Palbin







PostPosted: Mon Jan 23, 2012 1:25 pm Reply with quote

I'm sure Nuken will figure it out. If not let me know.
 
nuken







PostPosted: Mon Jan 23, 2012 1:47 pm Reply with quote

I think I have it fixed. The mainfile.php was blank for some reason.
 
southern







PostPosted: Mon Jan 23, 2012 11:56 pm Reply with quote

The mainfile and a lot of other files up and down directories, but I replaced every 0 byte file I found and it looks great. The errors were not the fault of RavenNuke 2.5 but my own fault for not verifying files. Sad Thanks, nuken, for the help. And thanks for the offer of help, Palbin. Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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 ©