This version (2013/12/24 10:07) is a draft.
Approvals: 0/1
This is an old revision of the document!
Dealing with SQLSTATE errors
You got 500phtml error >enabled debug mode as recommended here >saw SQLSTATE error. What to do next?
SQLSTATE errors indicate that something is wrong in the way script communicates with your database.
This document lists most common SQLSTATE errors reported by Oxwall community members and ways to deal with them.
Message: SQLSTATE[42000]
Message: SQLSTATE[42000]: Syntax error or access violation: 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 'LIMIT 0, 1' at line 1
Reported to happen when: signing in using Facebook Connect.
Status: Oxwall Software bug. Fix planned for 1.6
Caused by: special symbols in user's name on Facebook. Example: Öliya
-
Message: SQLSTATE[42S02]
Message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'table_name” doesn't exist.
Reported to happen during: installation, core update, plugin updates.
Status: Varies.
Caused by:
* server side issue.
* corrupted plugin/core archives
* upload was not finished completely/successfully
* mismatching versions of core and plugins.
Solution:
* contact hosting company to find out whether they had any downtimes on their end
* reinstall or run update again
* contact plugin developer
-
* make sure that all of your plugins are up to date.
Links to various discussions on Oxwall forum:
Message: SQLSTATE[23000]
Message: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘2145871224’ for key “PRIMARY”
-
Reported to happen when: using “Newsfeed” plugin.
Caused by: duplicate entries in database ( known to happen on sites with lots of data).
Solution: truncate ow_newsfeed_action_set database table.
-
Message: SQLSTATE[08S01]
Message: SQLSTATE[08S01]: Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet' bytes
Reported to happen when: sending mass mailing.
Status: Server configuration. Not a bug.
Caused by: the length of the request exceeding the MySQL limit of max_allowed_packet. The limit is set to1M by default.
-
-