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
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Tue Oct 13, 2009 11:41 am Reply with quote

Ok, I forgot the fix ... Sad

Was it change "varchar(255)" to 256 in "installSQL.php"?

The exact error message that your MySQL server reported is:
MySQL Error # 4 at line 117 in file installSQL.php ==> 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 'collate latin1_general_ci NOT NULL, `id` int(11) NOT NULL, `mid

Error in rn_core.sql at line 940:
CREATE TABLE IF NOT EXISTS `nuke_seo_dh` (`dhid` int(11) NOT NULL auto_increment, `levelsort` int(1) NOT NULL, `title` varchar(255) collate latin1_general_ci NOT NULL, `id` int(11) NOT NULL, `mid` int(11) NOT NULL, `lang` varchar(30) collate latin1_general_ci NOT NULL, `active` int(1) NOT NULL, `metavalue` text collate latin1_general_ci NOT NULL, PRIMARY KEY (`dhid`), KEY `levelsort` (`levelsort`,`title`,`id`,`mid`)) ENGINE=MyISAM;
 
View user's profile Send private message
Palbin
Site Admin



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

PostPosted: Tue Oct 13, 2009 12:19 pm Reply with quote

Are you upgrading or doing a fresh install?

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







PostPosted: Tue Oct 13, 2009 12:50 pm Reply with quote

Upgrade but then got the same thing on a fresh install as well
 
dad7732







PostPosted: Tue Oct 13, 2009 1:25 pm Reply with quote

It was a test site anyway so it could have been a lot of things. But .. gonna do a fresh new install, DB and all from ground zero.
 
fkelly
Former Moderator in Good Standing



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

PostPosted: Tue Oct 13, 2009 1:28 pm Reply with quote

The code in question is in rn_core.sql in the sql directory under the INSTALLATION directory. And it was not changed from 255 to 256. I just ran a local install and all worked fine. I wonder if you have all the collation sequences installed on your server?


The table nuke_seo_dh is the first one I can see in the rn_core.sql that has this collation code in it. I'm not sure if it is needed or not, someone with more expertise in the seo_dh tables would have to address that. You could edit it out and see if the program runs without it.
 
View user's profile Send private message Visit poster's website
dad7732







PostPosted: Tue Oct 13, 2009 1:46 pm Reply with quote

Fresh install from absolute scratch produces this error when running installSQL.php to load the core tables.

The exact error message that your MySQL server reported is:
MySQL Error # 4 at line 117 in file installSQL.php ==> 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 'collate latin1_general_ci NOT NULL, `id` int(11) NOT NULL, `mid

Error in rn_core.sql at line 940:
CREATE TABLE IF NOT EXISTS `nuke_seo_dh` (`dhid` int(11) NOT NULL auto_increment, `levelsort` int(1) NOT NULL, `title` varchar(255) collate latin1_general_ci NOT NULL, `id` int(11) NOT NULL, `mid` int(11) NOT NULL, `lang` varchar(30) collate latin1_general_ci NOT NULL, `active` int(1) NOT NULL, `metavalue` text collate latin1_general_ci NOT NULL, PRIMARY KEY (`dhid`), KEY `levelsort` (`levelsort`,`title`,`id`,`mid`)) ENGINE=MyISAM;

I had this before and was given an answer that worked but I don't remember what it was ... Sad

Also, I have never had to deal with "latin1", etc. previously.

Cheers
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Oct 13, 2009 2:48 pm Reply with quote

Try removing all references to the collation.

Code:
CREATE TABLE IF NOT EXISTS `nuke_seo_dh` (`dhid` int(11) NOT NULL auto_increment, `levelsort` int(1) NOT NULL, `title` varchar(255) NOT NULL, `id` int(11) NOT NULL, `mid` int(11) NOT NULL, `lang` varchar(30) NOT NULL, `active` int(1) NOT NULL, `metavalue` text NOT NULL, PRIMARY KEY (`dhid`), KEY `levelsort` (`levelsort`,`title`,`id`,`mid`)) ENGINE=MyISAM; 


Last edited by Raven on Tue Oct 13, 2009 6:43 pm; edited 1 time in total 
View user's profile Send private message
dad7732







PostPosted: Tue Oct 13, 2009 4:03 pm Reply with quote

Edited and used your code above and same error.
 
fkelly







PostPosted: Tue Oct 13, 2009 4:44 pm Reply with quote

The table after the one you are working on also has the latin collating sequence. Eliminate the collating sequence from that one also.
 
dad7732







PostPosted: Tue Oct 13, 2009 5:15 pm Reply with quote

There are no instances any longer of "collate" anything and same error.
 
Palbin







PostPosted: Tue Oct 13, 2009 5:36 pm Reply with quote

Quote:
The exact error message that your MySQL server reported is:
MySQL Error # 4 at line 117 in file installSQL.php ==> 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 'collate latin1_general_ci NOT NULL, `id` int(11) NOT NULL, `mid


This can not be the exact same error. What does it say now.
 
Raven







PostPosted: Tue Oct 13, 2009 5:40 pm Reply with quote

What version of MySQL are you using?
 
dad7732







PostPosted: Tue Oct 13, 2009 5:41 pm Reply with quote

I meant the lower error pertaining to seo_dh
 
dad7732







PostPosted: Tue Oct 13, 2009 5:47 pm Reply with quote

Server Version 4.0.27
Client Version 4.1.22
 
dad7732







PostPosted: Tue Oct 13, 2009 5:48 pm Reply with quote

This can not be the exact same error. What does it say now.


I'll have to check again, forgot to copy it. Sad
 
dad7732







PostPosted: Tue Oct 13, 2009 5:50 pm Reply with quote

Here is a fresh error:

The exact error message that your MySQL server reported is:
MySQL Error # 4 at line 117 in file installSQL.php ==> 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 'NOT NULL, PRIMARY KEY (`dhid`), KEY `levelsort` (`levelsort`,`t

Error in rn_core.sql at line 940:
CREATE TABLE IF NOT EXISTS `nuke_seo_dh` (`dhid` int(11) NOT NULL auto_increment, `levelsort` int(1) NOT NULL, `title` varchar(255) NOT NULL, `id` int(11) NOT NULL, `mid` int(11) NOT NULL, `lang` varchar(30) NOT NULL, `active` int(1) NOT NULL, `metavalue` NOT NULL, PRIMARY KEY (`dhid`), KEY `levelsort` (`levelsort`,`title`,`id`,`mid`)) ENGINE=MyISAM;
 
fkelly







PostPosted: Tue Oct 13, 2009 6:08 pm Reply with quote

In the rn_core.sql metavalue is defined as text. That seems to be missing from the code you quoted.

If that's not the problem then what I usually do is copy the code over into a SQL window in phpmyadmin and try to execute it on a test file and see if I get any enlightenment.
 
dad7732







PostPosted: Tue Oct 13, 2009 6:11 pm Reply with quote

That's the code that Raven supplied above. I'll paste it in and see what turns up.
 
dad7732







PostPosted: Tue Oct 13, 2009 6:13 pm Reply with quote

Pasted it in and:

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 'NOT NULL , PRIMARY KEY ( `dhid` ) , KEY `levelsort` ( `
 
fkelly







PostPosted: Tue Oct 13, 2009 6:18 pm Reply with quote

Code:
CREATE TABLE IF NOT EXISTS $prefix.`_seo_dh` (`dhid` int(11) NOT NULL auto_increment, `levelsort` int(1) NOT NULL, `title` varchar(255) collate latin1_general_ci NOT NULL, `id` int(11) NOT NULL, `mid` int(11) NOT NULL, `lang` varchar(30) collate latin1_general_ci NOT NULL, `active` int(1) NOT NULL, `metavalue` text collate latin1_general_ci NOT NULL, PRIMARY KEY  (`dhid`), KEY `levelsort` (`levelsort`,`title`,`id`,`mid`)) ENGINE=MyISAM;


That's the code from rn_core.sql. Maybe in eliminating the latin1_general.ci Raven inadvertently deleted the 'text' definition of the metavalue field. Try it with that back in.

Even webmasters commit booboos.
 
dad7732







PostPosted: Tue Oct 13, 2009 6:22 pm Reply with quote

using your code above:

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 'collate latin1_general_ci NOT NULL , `id` int( 11 ) NOT NU
 
Raven







PostPosted: Tue Oct 13, 2009 6:46 pm Reply with quote

dad7732 wrote:
That's the code that Raven supplied above. I'll paste it in and see what turns up.

I corrected my code above and tested the SQL and it works, however I'm not using the MySQL versions you are. Can't you upgrade? Our minimum version required/supported is 4.1 - See http://rnwiki.ravennuke.com/wiki/RavenNuke2:About
 
dad7732







PostPosted: Tue Oct 13, 2009 7:00 pm Reply with quote

Verio VPS, can't upgrade until they do .. bummer.
 
dad7732







PostPosted: Tue Oct 13, 2009 8:01 pm Reply with quote

Just checked with Verio and the current supported version is 5.0.75 and I remember upgrading a few years ago and was a real pain having to backup each DB, removing the old version, installing the new version and then reloading each DB ... yowza!! I "may" get them to do it, may take some convincing tho.
 
dad7732







PostPosted: Mon Oct 19, 2009 6:46 am Reply with quote

Still doesn't work and since my VPS = VPS-2 the MySQL version I am running now:

Server Version 4.0.27
Client Version 4.1.22

I cannot upgrade unless I upgrade to VPS-3 which I am NOT doing, why fix something that ain't broke with over 30 domains running. Migrating to VPS-3 is a royal PIA that I don't have the time to do at this time.

There must be another way to get this SEO DB/Table installed without having to upgrade MySQL.

Cheers
 
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 ©