2010-11-24 11:25:57
There are no languages installed And mysqlfetchassoc warnings
I was getting multiple warnings (Warning: mysql_fetch_assoc()...) and ending with "There are no languages installed!". When I looked through the forums, the only solutions I found were to "reinstall", or related to installing a new language file.
The problem in my case was different, and I thought that perhaps other people have had the same problem. My development machine is a Windows XP PC running XAMPP. The remote PC is a Linux machine running Apache.
I made a complete back-up of the working files and database and put them onto the remote site, and got the problems mentioned above.
My problem ended up being the TABLE_PREFIX setting in the conf file. It defaults to "AT_", but some databases are case sensitive while others aren't. So, the tables that were created were "at_users", etc but on the Linux PC it was looking for "AT_users".
By changing the TABLE_PREFIX to "at_" it worked... so can I ask that a convention of lower-case names be used for tables and fields?
As an added note, I think it would be better if there were better error handling on the core queries as some of those warnings could have been suppressed, while others indicate a more serious config problem and should, in my opinion, gracefully exit the application.