Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
chaos_coa
Regular
Regular



Joined: Oct 11, 2007
Posts: 86

PostPosted: Thu Oct 13, 2011 11:08 am Reply with quote

Hi

I attempted to upgrade my RN 2.20.01 version to v2.40.01 today.

On my test site by the way Very Happy


I am moving to a new host tomorrow. I copied all the files from the old host to the new host. Exported and imported all the databases (ravennuke and Gallery2). There is a newer version of php on my new server. I had issues with the theme already so I decided to do the upgrade since its my understanding some of the issues I was having were due to the newer php version. Tons of Depraced errors.



Issue 1



The upgrade script ran without error as did the security Nuke Sentinel part.

When I login I just get the advertising banner on top (fisubice theme) and the toolbar across the top - Login or register - Home - News - Forums - etc

When I change to RavenIce I see all the content.

I was using a custom designed theme and that one does not load anymore either- same as fisubice - I just see the top advertisement banner and the toolbar.


Not sure what this means? Why does it only work with the RavenIce theme? Does this mean my upgrade actually failed?




Issue 2


When I Set display errors to true in the config.php and I see this many . . . many . . . times - Here is just a random sample:



Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/loschaos/public_html/includes/nukesentinel.php on line 156

Line 156:

Code:
$clearedtime = strtotime(date("Y-m-d 23:59:59", $nsnst_const['ban_time']));



Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/loschaos/public_html/includes/nukesentinel.php on line 481


Line 481:

Code:
$clearedtime = strtotime(date("Y-m-d", $nsnst_const['ban_time']));



Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/loschaos/public_html/includes/nukeSEO/dh/dh.class.php on line 306

Line 306:

Code:
$replace   = array($sitename, $slogan, $this->dt_mod_title, date('Y'));



Is this something I need to change on the server? How it gets its time? I have at least 40 or 50 of those errors . . .


Since I already have a full backup of my site that is going down tomorrow should I go ahead and upgrade in in place at my old host? They are shutting down that hosting account tomorrow so what do I have to lose?


I guess I am wondering is it better to upgrade it in place? Or is what I did ok - that is, move the site to my new host - then update it.


Any help or guidance will be greatly appreciated!

Kyle
 
View user's profile Send private message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Oct 13, 2011 12:19 pm Reply with quote

It makes sense to move first to an new server and upgrade there. Thats what I did with my sites. I never had any issue with the time at my different servers so I believe this is something you are able to fix possible in php.ini. Check this also:http://de.php.net/date_default_timezone_set

Please give us some info about your test server ? PHP version ?
Whats the setting in your rnconfig to display errors ?

All themes included in RavenNuke should work fine. Check if you uploaded all files. Also check the folder rnlogs/dblog if there are sql errors.The settings for the dblog is in rnconfig. Set it to 1 there and chmod (666) dblog.
After everthing works we can check why the old theme doesn´t work. But I suppose you will have to modify it.
 
View user's profile Send private message
chaos_coa







PostPosted: Thu Oct 13, 2011 2:47 pm Reply with quote

Hi

My old site/host was on PHP 5.2.17

New host on PHP 5.3.2

Error levels set to:

$error_reporting = E_ALL^E_NOTICE;

SQL Logging to Text Log File: $loglevel = 1;

I tried the time zone settings as recommended in the link above and it made no difference with the "system timezone" errors. The error does say its selected "America/Denver" which is the correct timezone for me.

I enabled the logging and there was only a few sql errors.

One said that table nuke_referers did not exist. I exported that table and imported it into my test site.

The only other 2 errors was that table "nuke_fancynl_archives" and "nuke_tuto_infos" does not exist. I do not see those 2 tables on the current production site still running so not sure what that means.

My site after being moved was 8 GBs - lots of downloads and pictures in gallery2

Would be a lot of work to recreate it.

Gallery 2 by the way does not load either. When I try I get:

Error (ERROR_STORAGE_FAILURE)

in modules/core/classes/GalleryStorage.class at line 239 (GalleryCoreApi::error)
in modules/core/classes/GalleryStorage.class at line 564 (GalleryStorage::_getConnection)
in modules/core/classes/GalleryCoreApi.class at line 2912 (GalleryStorage::getMapEntry)
in modules/core/classes/GallerySession.class at line 872 (GalleryCoreApi::getMapEntry)
in modules/core/classes/GallerySession.class at line 231 (GallerySession::_loadSessionData)
in modules/core/classes/Gallery.class at line 287 (GallerySession::init)
in init.inc at line 124 (Gallery::initSession)
in modules/core/classes/GalleryEmbed.class at line 99
in index.php at line 170 (GalleryEmbed::init)
in /home/loschaos/public_html/modules.php at line 87


I have not even started looking into this.

Thanks

Kyle



Sad



PS - I believe I tried all the themes and RavenIce is the only one that loads. Perhaps that means something.
 
chaos_coa







PostPosted: Thu Oct 13, 2011 4:45 pm Reply with quote

Ok - using this:

date.timezone = "America/Denver" works to get rid of those timezone errors.

I had put America/Denver without the quotes.

Still cannot, however, load any theme but RavenIce
 
Susann







PostPosted: Thu Oct 13, 2011 4:46 pm Reply with quote

Try $error_reporting = E_ALL;


To solve nuke_tuto_infos" does not exist check this:
[ Only registered users can see links on this board! Get registered or login! ]

Because of security reasons the referers changed.
I will look in my database.
edit: I don´t have this table.
This means you have to delete old files on your server and old tables.
Within the folder UltilityFiles is 1.FileCompare and 2.TableCompare I suggest use it.


Last edited by Susann on Thu Oct 13, 2011 5:08 pm; edited 1 time in total 
chaos_coa







PostPosted: Thu Oct 13, 2011 5:04 pm Reply with quote

Hi

I don't understand the paragraph on the "nuke_tuto_infos" issue?

I do not have the files Tutoriaux.php and Downloads_GR.php in the includes/nukeSEO/content directory


When I input Try $error_reporting = E_ALL;

"HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request." and the site would not load.
 
Susann







PostPosted: Thu Oct 13, 2011 5:25 pm Reply with quote

Set it back and $display_errors = false; in your config.
I have solved the nuke_tuto_infos message at my site but I had the files on my server.
 
chaos_coa







PostPosted: Thu Oct 13, 2011 5:25 pm Reply with quote

Just got done installing ravennuke as a fresh install in a different virtual server.

No issues. . ..

Is my problem with the move and upgrade an issue of having gallery 2, a custom template, and pnFlashGames module v0.4 Plus Plus installed.

The site is still up at loschaos.com if you need to take a look.

?
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Thu Oct 13, 2011 6:44 pm Reply with quote

You should move your site first before upgrading.
If both websites use cPanel, ask your new host to import your account (they will need your old accounts username/password) because that is the quickest way to move the site.

Your custom theme should work fine with RN 2.4x so make sure the files were FTP'd across correctly. The only difference I can think of that might affect themes is the change from using the Banners module to using the Advertising module but you should see an error about banners.php file if that is the case.
 
View user's profile Send private message Send e-mail
chaos_coa







PostPosted: Thu Oct 13, 2011 7:29 pm Reply with quote

Hi

I will try downloading the files again and do some exports of the databases again.

The fresh clean install I did ran fine with no problems so perhaps there was an issue with the database exports. . ..

Wish me luck!
 
chaos_coa







PostPosted: Sun Oct 16, 2011 12:10 pm Reply with quote

Ok

an update - i downloaded everything again.

This time on my test server I managed to get the site to load - everything functions as before - gallery2, my games module, forums, etc.

However - on the test site:

A. I cannot login as admin

B. I can log in as a regular user. As a regular user in the regular users control panel I can click on messages, comments, your home, your info, and the link to the forums. Click anywhere else and I get a 500 Internal Server Error. After getting the 1st 500 server error they persist.

I have the rnconfig error level set to 1 - I am seeing no errors in the dblogfile

I have errors set to true and am seeing no errors displaying on the site.

In the apache error log I am getting:

[error] Premature end of script headers: index.php

[warn] 104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: [ Only registered users can see links on this board! Get registered or login! ]

Not sure what this means.

I did google that.

I tried setting cgi.fix_pathinfo=0

changed PHP script execution mode from FCGId to CGI wrapper

when changing to CGI I still got the 500 Internal server error butthe apache error changed to:

Premature end of script headers: php5.cgi, referer: [ Only registered users can see links on this board! Get registered or login! ]

errors persist in the apache error log

Not sure what to do now?

Any help will be appreciated!
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Sun Oct 16, 2011 1:23 pm Reply with quote

Frequently 500 errors are created by some sort of htaccess misconfiguration. You might try temporarily removing the root/.htaccess file and see what happens.

Also noticed on your live site there is some sort of password protection on the your account module? If that was something you added you might try removing that as well. If not verify you have properly setup the Admin Access Protection part of NukeSentinel [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Visit poster's website
chaos_coa







PostPosted: Sun Oct 16, 2011 1:28 pm Reply with quote

Hi

Yup - I have password protected the live site since its not functioning now. Tried to get it functioning there this morning but has same issues as local copy.

I am working on the server locally in my test environment now. Want to get it going locally then move to the production site.

Do not have the local test server password protected when I get the errors I listed.

Will check the link you gave me.

Thanks!
 
chaos_coa







PostPosted: Sun Oct 16, 2011 4:10 pm Reply with quote

Hi

Removing the root .htaccess does not change anything.

same error:

Premature end of script headers: modules.php

Connection reset by peer: mod_fcgid: error reading data from FastCGI server

I cannot log into admin to go to the NukeSentinel control panel.

Thinking it has something to do with the mod_fcgid error?


Interesting note - as soon as I log out of my regular ravennuke account - the 500 errors go away and all functions on the site work. . ..
 
spasticdonkey







PostPosted: Sun Oct 16, 2011 11:10 pm Reply with quote

Guessing a little bit here, but you might try looking at the nuke_session db table. Try options such as "Analyze table, Repair table, Optimize table" in phpmyadmin. If you are sure you have a backup you can also try "Empty the table (TRUNCATE)".
 
chaos_coa







PostPosted: Mon Oct 17, 2011 3:42 pm Reply with quote

Hi

Update:

I restored a htaccess file from a previous backup.

Now the site loads.

I can also log into and out of the admin control panel. Change settings there - see IPs being tracked in Sentinel, etc

However - I still have problems with a regular user.

Before I log in as a regular user I can access all parts of the site that an unauthenticated user can access.

If I log in and click on the home page, downloads, etc - I get a "Internal Server Error 500"

Does that mean I still have problems with my htaccess file?

or could it be something else?

I still see these errors:

[warn] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[error] Premature end of script headers: php5.cgi


Am I close? Shocked


Thanks
 
chaos_coa







PostPosted: Mon Oct 17, 2011 6:59 pm Reply with quote

Hi

I have checked with support for my hosting platform regarding this issue.

The response points to an issue with the script:

"Well, I don't see a root cause in the errors you provided above... no clear error is happening. All I see are some generic errors -- that mod_fcgid error you saw is just a generic error showing that something went wrong in the PHP app.

Yeah, your settings all look good... and the idea that it works for some users and not others does suggest that you're seeing some form of application error."

I have tried both CGI and FCGI PHP execution mode and still get the error 500's when logged in as a regular user. . .

Any ideas?


PS - I tried a blank .htaccess file and had the same issue
 
spasticdonkey







PostPosted: Mon Oct 17, 2011 8:53 pm Reply with quote

did you try looking at (repairing) the nuke_session db table?
If you create a new user and use that account does it work ok?


Last edited by spasticdonkey on Mon Oct 17, 2011 9:01 pm; edited 1 time in total 
chaos_coa







PostPosted: Mon Oct 17, 2011 8:58 pm Reply with quote

Update:

If I register and add a new user I only get the Error 500's with gallery 2.

All other tabs work fine.

So

Users that were on the site before before it was moved to a different site get error 500's on almost all links.

New users only get error 500 on gallery 2.

Help!
 
chaos_coa







PostPosted: Mon Oct 17, 2011 9:05 pm Reply with quote

Hi - sorry..

Yes I did run the repair on the nuke_session db table and the report was that it completed successfully

Now even the newly added users are getting error 500s on all tabs but Account . .

Now my admin user can only access the admin Control panel - 500 errors with all other pages . . .

Just tested from a different computer - I cannot log in as admin any more so I guess when the login I have times out no more admin logins ?
 
spasticdonkey







PostPosted: Mon Oct 17, 2011 9:31 pm Reply with quote

Just fyi, I was able to register on your site, and haven't received a 500 error yet in trying out most of the visible modules..
 
chaos_coa







PostPosted: Mon Oct 17, 2011 9:41 pm Reply with quote

Hi - can you go to gallery 2?
 
spasticdonkey







PostPosted: Mon Oct 17, 2011 9:43 pm Reply with quote

"Sorry, this Module isn't active!" Smile
 
chaos_coa







PostPosted: Mon Oct 17, 2011 9:48 pm Reply with quote

Its active for all visitors - if you log out you will see the gallery.

Can I pm you another new login I setup today?

You will see what I mean about the issues other users have that were already setup. ..
 
chaos_coa







PostPosted: Mon Oct 17, 2011 9:59 pm Reply with quote

That's the issue here - any users that existed before the site was moved get 500 errors when clicking on links.

New users can log in and click on all the links except for gallery 2.

As soon as a old user logs out no more 500 errors and all links to include gallery 2 are available.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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 ©