4images Forum & Community

4images Help / Hilfe => FAQ, Tips => Topic started by: Nicky on September 18, 2007, 07:29:17 PM

Title: DB Error: Bad SQL Query: << ERROR/FEHLER with/mit mySQL 5
Post by: Nicky on September 18, 2007, 07:29:17 PM
Deutsch:
Code: [Select]
Unbekanntes Tabellenfeld 'i.user_id' in on clauseTip: dein provider hat auf mySQL 5 umgestellt: folgende dateien editieren damit alles wieder reibungslos funktioniert
http://www.4homepages.de/forum/index.php?topic=22668.0


English:
Code: [Select]
Unknown column 'i.user_id' in 'on clause'Tip: your hoster changed to mySQL 5: following files you should edit to get it work again.
http://www.4homepages.de/forum/index.php?topic=22668.0
Title: Re: DB Error: Bad SQL Query: << ERROR/FEHLER with/mit mySQL 5
Post by: dawolf on November 18, 2008, 12:29:12 PM
Based on Vano's post I corrected this problem by running a perl command from the shell in the 4images root dir, the \admin dir and the \includes dir:

Code: [Select]
perl -pi '-es/(FROM\s+)("\.[A-Z_]+\."\s+[a-z]+,\s*"\.[A-Z_]+\."\s+[a-z]+)/$1($2)/g' *.php
This might be useful for people without access to Ultraedit. Feel free to update Vanos post with this information, i am not allowed to reply there.

Remember to BACK UP everything before you try this!