SQL Error

Started by lgldsr73, January 03, 2010, 09:38:08 PM

Previous topic - Next topic

lgldsr73

Greetings,

I just attempted to upgrade from a brand new installation of 1.1.10 to 1.1.11. Maintenance mode was enabled and the initial installation of 1.1.10 was fine.

However, upon upgrading I received the following error:

Updating and creating indexes... Unsuccessful!
This query:
ALTER TABLE smf_smileys
ORDER BY LENGTH(code) DESC;
Caused the error:
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 '(code) DESC' at line 2

I have no idea how to fix this and any help would be greatly appreciated. The other upgrades were "Successful".

Thank you,

Lyman


Kill Em All



My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

N3RVE

Try to search the forums before posting support topics ;)

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

lgldsr73

Gotcha, will do! I did not find a post addressing another question I have in response to an earlier reply:

Should I modify both files given my particular error?

I.e., edit "upgrade_1-1.sql" and "/Sources/ManageSmileys.php" as stated below?

"The second way to resolve this for upgrading is to open "upgrade_1-1.sql" with a text editor and find the following:

For editing smileys in the Smileys and Message Icons section of your admin panel, open "/Sources/ManageSmileys.php" with a text editor and find the following code:"

Thanks again,

Lyman

N3RVE

Just modify the Upgrade file.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

lgldsr73


N3RVE

Let us know when this is solved :)

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

lgldsr73

Solved! Thanks to you both, the upgrade went fine after the modification was done   :)

Best,

Lyman
Quote from: [n3rve] on January 04, 2010, 12:07:43 AM
Let us know when this is solved :)

-[n3rve]

N3RVE

* [n3rve] injects the green check mark ;)

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

lgldsr73

Quote from: [n3rve] on January 04, 2010, 03:44:01 AM
* [n3rve] injects the green check mark ;)

-[n3rve]
Thanks...I'll remember to do that next time!

Best,

Lyman

Advertisement: