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
candiman
New Member
New Member



Joined: Jan 19, 2009
Posts: 13

PostPosted: Sun Jan 29, 2012 4:22 am Reply with quote

Hi All,

Hope this post is in the right place. I am currently working through an upgrade from Ravens 2.3-->2.5 on my local machine (win 7/latest XAMPP) in prep for a live site upgrade. I did get a few errors in the db migration part of the installation but everything seems very much ok so far except:

I am having an issue with only one item in the Administration Menu.

The "Themes" icon in the Administration Menu just gives me an "Access Denied" message on the resulting page. It makes no difference if I remove all of the security (.htaccess files etc) and turn of Sentinel or login as god/superusers. I guess its no coincidence that this is the new function in my Admin menu (having previously managed themes from Preferences).

Any tips on where to look would be welcome. Thanks!
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Sun Jan 29, 2012 7:44 am Reply with quote

I'm pretty sure themes did at least one database upgrade. You might want to turn database error reporting on and look in dblog after trying to access themes and see if anything is showing up. Rnconfig has instructions for this; set loglevel to 1. The table_compare directory in the distribution has a program to compare the "official" 2.5 database with whatever you have installed. Instructions are in the program. Normally, discrepancies should be resolved but you can post any you find here to get an opinion.

The program that themes admin is trying to run is in /admin/modules/themes.php. You might want to make sure that is set up on your server properly. Since it's new any kind of FTP error may have omitted installing it. Make sure it's permissions are the same as the other files in that directory.
 
View user's profile Send private message Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Jan 29, 2012 10:26 am Reply with quote

candiman wrote:
I did get a few errors in the db migration part of the installation


Did you happen to take a copy of these from the page? There may also be clues in those as well.

_________________
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! 
View user's profile Send private message Visit poster's website
Palbin
Site Admin



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

PostPosted: Sun Jan 29, 2012 10:32 am Reply with quote

candiman, are all the files fresh or did you just insert the new files over the old? I do not really have any ideas just trying to get all the facts.

_________________
"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
candiman







PostPosted: Sun Jan 29, 2012 6:02 pm Reply with quote

Thanks for the quick replies. I did keep a copy of the database migration errors so will take a closer look at that.

I will turn on the logging to see if I can see any related database errors.

For the installation I used the upgrade option. So I assume the old tables and data remain with any new required tables added.

I have switched the theme to an included version by copying renaming a theme directory as the old theme (Kalgash Dreams) is broken with 2.5.

There should be no FTP errors as the 2.5 installation was downloaded from here and unpacked directly over a working test copy of my site on my home PC. As mentioned everything else seems to be working so far.

I will report back after looking at the database logging and reviewing migration error data again.

EDIT - It looks like the "nuke_themes" table and inserts suceeded in the install.

Cheers


Last edited by candiman on Sun Jan 29, 2012 6:12 pm; edited 1 time in total 
fkelly







PostPosted: Sun Jan 29, 2012 6:10 pm Reply with quote

Quote:
For the installation I used the upgrade option. So I assume the old tables and data remain with any new required tables added.


That SHOULD BE true but the other steps will verify it.

Odd things can happen when you "unpack over". For one thing, old files may not get replaced or may be left in place where you don't want them. You also do need to verify your /admin/modules/themes.php file. That is new and needs to be there ... that's what themes administration uses.
 
candiman







PostPosted: Sun Jan 29, 2012 6:59 pm Reply with quote

OK, themes.php seems to be fine. The dblog definately shows errors related to the install errors. Here is an example:

From install report:

SHOW TABLES LIKE 'nuke_nsnpj_config' Succeeded.

CREATE TABLE `nuke_nsnpj_config` (`config_name` varchar(255) NOT NULL default '', `config_value` text NOT NULL) TYPE=MyISAM AUTO_INCREMENT=1 FAILED. MySQL reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM AUTO_INCREMENT=1' at line 1


From dblog log:

January 30, 2012, 1:35 am File: C:\xampp\htdocs\ansiteupgrade\db\mysqli.php - Line: 201
Code: 1146 - Message: Table 'ansquad.nuke_nsnpj_config' doesn't exist
SQL was: SELECT config_name, config_value FROM nuke_nsnpj_config
remote addr: 127.0.0.1

Having never really used SQL before I am not sure how to remedy. I tried to rerun the CREATE TABLE as above and got the same error. Tips?

EDIT - I created a new database using the 2.5 installation. I have now imported the missing tables into my site upgrade database. Its cool because the errors are all gone in the rnlog file... but still Access Denied to the admin Themes module.
 
candiman







PostPosted: Sun Jan 29, 2012 10:29 pm Reply with quote

Fixed.

After adding the tables to the database I neglected to log out/in my admin user and refresh page properly. After doing that all is working perfectly.

Last comment:

Our site has been using Raven Nuke since mid 2009 and have not had any security issues at all. Prior to that we were getting hacked about every month or two and ultimately gave up and resorted to a single html page until we found a secure nuke CMS. One of our site members (steptoe in the forums here) pointed me in your direction for a solution. I started from scratch not ever having done any web stuff but the RN instructions and forums history have been great.

Thank you very much!
 
Susann
Moderator



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

PostPosted: Mon Jan 30, 2012 6:28 am Reply with quote

Nice to hear steptoe is still active. RavenNuke is the best decision if you have concerns and issues with website security.
 
View user's profile Send private message
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 ©