-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem upgrading #414
Comments
hi @mpedant you've discovered a bug, which I just fixed in the commit above. If you download config_manager.class.php from https://raw.githubusercontent.com/tbar0970/jethro-pmm/9af17160c53137a808b886c6c812b61dcf5cc32c/include/config_manager.class.php and use it to replace the file in the include folder of your Jethro system, it should be resolved. |
Thanks Tom, I'll give that a try when I've summoned up the energy! Mark. |
Tom, Warning: PDO::quote() expects parameter 1 to be string, array given in /var/www/jethro/include/jethrodb.php on line 94 Fatal error: Uncaught exception 'PDOException' with 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 'WHERE symbol = 'ENABLED_FEATURES'' at line 3' in /var/www/jethro/include/config_manager.class.php:139 Stack trace: #0 /var/www/jethro/include/config_manager.class.php(139): PDO->exec('UPDATE setting\r...') #1 /var/www/jethro/include/config_manager.class.php(54): Config_Manager::saveSetting('ENABLED_FEATURE...', Array) #2 [internal function]: Config_Manager::migrateEnabledFeatures() #3 /var/www/jethro/include/config_manager.class.php(14): call_user_func(Array) #4 /var/www/jethro/include/init.php(57): Config_Manager::init() #5 /var/www/jethro/index.php(38): require_once('/var/www/jethro...') #6 {main} thrown in /var/www/jethro/include/config_manager.class.php on line 139 The v2.21.2 version of config_manager.class.php that I used originally has these lines -
The version of config_manager.class.php that I downloaded from your link has these lines -
The single quotes around ENABLED_FEATURES and LOCK_LENGTH seem to be the only differences between the 2 versions. Any help appreciated. Dav9000 |
Hi @Dav9000 Let me know if the problem persists. |
Thanks Tom. That solved the problem. Dav9000 |
Tom, |
Hi
I'm trying to upgrade from 2.14 (sorry!) to the latest version. I've followed the instructions, including running all of the SQL updates, but on trying to log-in to my new install I get the following:
Fatal error: Uncaught exception 'PDOException' with 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 'WHERE symbol = 'NOTES,PHOTOS,DATES,ATTENDANCE,ROSTERS&SERVICES,SERVICEDETAILS,DO' at line 3' in /path/to/install/include/config_manager.class.php:139 Stack trace: #0 /path/to/install/include/config_manager.class.php(139): PDO->exec('UPDATE setting\r...') #1 /path/to/install/include/config_manager.class.php(54): Config_Manager::saveSetting('NOTES,PHOTOS,DA...', Array) #2 [internal function]: Config_Manager::migrateEnabledFeatures() #3 /path/to/install/include/config_manager.class.php(14): call_user_func(Array) #4 /path/to/install/include/init.php(57): Config_Manager::init() #5 /path/to/install/index.php(38): require_once(' in /path/to/install/include/config_manager.class.php on line 139
Not really sure where to start troubleshooting this. Any ideas?
Thanks.
The text was updated successfully, but these errors were encountered: