Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

CHARACTER SET 'utf8' error


Go to End
Reply

15 Posts   3508 Views

Avatar
sajok

2 April 2011 at 11:20am (Last edited: 2 April 2011 11:22am), Community Member, 82 Posts

Hello,

I'm using SS 2.4 and I have set the _config.php file to send errors to my email. All websites are working just fine but I frequetly receive this character set related error:

Error: Couldn't run query: SET CHARACTER SET 'utf8'
At line 525 in /home/perlesah/public_html/sapphire/core/model/MySQLDatabase.php

user_error(Couldn't run query: SET CHARACTER SET 'utf8' ,256) line 525 of MySQLDatabase.php MySQLDatabase->databaseError(Couldn't run query: SET CHARACTER SET 'utf8' | ,256) line 123 of MySQLDatabase.php MySQLDatabase->query(SET CHARACTER SET 'utf8') line 60 of MySQLDatabase.php MySQLDatabase->__construct(Array) line 97 of DB.php DB::connect(Array) line 121 of main.php

I have this in _config.php :

MySQLDatabase::set_connection_charset('utf8');

any idea what do to fix this?

thanks

Avatar
Wade

27 April 2011 at 3:27pm Community Member, 6 Posts

I get this error alot as well. Anybody know anything about it?

Avatar
AdamJ

16 May 2011 at 12:30pm Community Member, 145 Posts

I've been experiencing the same error, but it appears its only when a search engine spider hits the site, normal browsing appears fine...

Avatar
DNA

27 May 2011 at 12:14pm Community Member, 24 Posts

Also getting the error, but intermittently. Currently unsure if it's because of spiders as AdamJ above.

Avatar
AdamJ

6 July 2011 at 1:32pm Community Member, 145 Posts

Has anyone found a solution to this issue? Or any SS devs care to weigh in on some possible issues at play?

Avatar
SheaDawson

31 August 2011 at 1:27pm Community Member, 46 Posts

I'm getting these error too... anyone?

Avatar
oleze

14 December 2011 at 4:47am Community Member, 65 Posts

I'm still getting this error. Did anybody solve it?

Avatar
sajok

14 December 2011 at 4:55am Community Member, 82 Posts

no, since I posted this thread I still receive these messages..

Go to Top