Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
346 views
in Q2A Core by

 

Hi,

I've just tried to upgrade to Q2A 1.4 and get the error below, I'm a newbie programmer so any advise would be appreciated. Thanks in advance!

 

Warning: Invalid argument supplied for foreach() in/.../qa-include/qa-db.php on line358


Question2Answer query failed:

SELEC

Error 1064: 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 'SELEC' at line 1

 

by
Does this happen during the actual upgrade process itself, or did it happen after you upgraded? If the latter, can you send a link to the web page?
by
edited by
Hi, happened after I upgraded, all seemed to be fine until I refresh the website. It's here  - www.londonquestion.com  

Thank you!
by
I can see it. Are you using an advanced theme or any other custom code?
by
Custom theme made for much older version of Q2A, should I try using default theme first? Thanks again!
by
Thank you all for your feedback, I found a culprit php file in my theme. Should have checked before. Sorry about that and thanks.

1 Answer

+1 vote
by
It looks like a MySQL query is getting truncated to "SELEC" instead of something like "SELECT * FROM table..." Since this is in the right sidebar could it be a custom plugin? What other mods have you made?

If you have a widget module that displays stuff on the sidebar, try disabling that.

By the way if you want to check whether it's the theme, you may have to go into the database and edit manually if you can't open the admin area. In the qa_options table, find the row with the key of site_theme, and change the content to "Default".
...