Description:
After restoring a backup in Evolution CMS with the SQLite driver, the manager throws:
Evolution CMS Parse Error
SQLSTATE[HY000]: General error: 1 unrecognized token ...
The error occurs during backup restore in the Backup Manager and appears to be caused by the SQL importer splitting the dump into statements incorrectly. A serialized value in osns_system_settings.sys_files_checksum contains semicolons and quoted strings, which breaks the parser and truncates the SQL statement.
Steps to Reproduce:
- Use Evolution CMS with SQLite.
- Create a database backup from the manager (Tools > Backup)
- Restore the backup through Backup Manager.
- The restore fails with an SQL parse error.
Expected Behavior:
The backup should restore successfully without SQL parsing errors.
Actual Behavior:
Restore fails with:
SQLSTATE[HY000]: General error: 1 unrecognized token
The failing SQL usually points to the sys_files_checksum setting, which contains serialized data.
Environment:
- Evolution CMS 3.5.6
- SQLite database
- PHP 8.4
- Windows / OSPanel
- Backup Manager restore flow
Additional Notes:
The issue seems specific to SQLite restore logic. The SQL dump itself is valid, but the current importer splits statements in a way that breaks serialized values containing ; and embedded quotes.
Possible Fix:
For SQLite restores, execute the full dump as one SQL script instead of splitting it into individual statements.
Description:
After restoring a backup in Evolution CMS with the SQLite driver, the manager throws:
Evolution CMS Parse ErrorSQLSTATE[HY000]: General error: 1 unrecognized token ...The error occurs during backup restore in the Backup Manager and appears to be caused by the SQL importer splitting the dump into statements incorrectly. A serialized value in
osns_system_settings.sys_files_checksumcontains semicolons and quoted strings, which breaks the parser and truncates the SQL statement.Steps to Reproduce:
Expected Behavior:
The backup should restore successfully without SQL parsing errors.
Actual Behavior:
Restore fails with:
SQLSTATE[HY000]: General error: 1 unrecognized tokenThe failing SQL usually points to the
sys_files_checksumsetting, which contains serialized data.Environment:
Additional Notes:
The issue seems specific to SQLite restore logic. The SQL dump itself is valid, but the current importer splits statements in a way that breaks serialized values containing
;and embedded quotes.Possible Fix:
For SQLite restores, execute the full dump as one SQL script instead of splitting it into individual statements.