LucianoNapoli Posted August 29, 2013 Share Posted August 29, 2013 Trying updating from 1.5.4.1 to 1.5.5 I got this error "Javascript error (parseJSON) detected for action "upgradeNow". Starting restoration... To solve the error follow this steps: 1. Open file in modules\autoupgrade\db\Db.php 2. Go to line 212 and uncomment the lines if (PHP_VERSION_ID >= 50200 && extension_loaded('pdo_mysql')) $class = 'DbPDO'; else if (extension_loaded('mysqli')) $class = 'DbMySQLi'; Don't forget to active mysqli and mysql pdo extensions. 1 Link to comment Share on other sites More sharing options...
Vorwaerts Posted August 30, 2013 Share Posted August 30, 2013 (edited) Hi, Well that sounds great and I will try that for sure but how exactly do I activate mysqli and mysql pdo extensions? Edited August 30, 2013 by Vorwaerts (see edit history) Link to comment Share on other sites More sharing options...
LucianoNapoli Posted August 30, 2013 Author Share Posted August 30, 2013 mysqli and mysql pdo extensions usually are activated by your hosting provider. You have to change the php.ini 1 Link to comment Share on other sites More sharing options...
Vorwaerts Posted August 30, 2013 Share Posted August 30, 2013 Great, I will try to check with my phpinfo and then my provider, thanks! Link to comment Share on other sites More sharing options...
MToscan Posted September 29, 2013 Share Posted September 29, 2013 My line 212 is different public static function getClass() { $class = 'MySQL'; if (extension_loaded('mysql') && PHP_VERSION_ID < 50500) $class = 'MySQL'; elseif (extension_loaded('mysqli')) $class = 'DbMySQLi'; elseif (PHP_VERSION_ID >= 50200 && extension_loaded('pdo_mysql')) $class = 'DbPDO'; return $class; } Yet I have the same error. 1 Link to comment Share on other sites More sharing options...
BigMike Posted October 10, 2013 Share Posted October 10, 2013 There is nothing to uncomment... :-( Still cannot upgrade due the same error... Link to comment Share on other sites More sharing options...
Antakarana Posted June 3, 2014 Share Posted June 3, 2014 There is nothing to uncomment... :-( Still cannot upgrade due the same error... Same happened to me... this is so fustrating! Link to comment Share on other sites More sharing options...
lovemyseo Posted July 17, 2014 Share Posted July 17, 2014 Trying updating from 1.5.4.1 to 1.5.5 I got this error "Javascript error (parseJSON) detected for action "upgradeNow". Starting restoration... To solve the error follow this steps: 1. Open file in modules\autoupgrade\db\Db.php 2. Go to line 212 and uncomment the lines if (PHP_VERSION_ID >= 50200 && extension_loaded('pdo_mysql')) $class = 'DbPDO'; else if (extension_loaded('mysqli')) $class = 'DbMySQLi'; Don't forget to active mysqli and mysql pdo extensions. What do you mean by " Don't forget to active mysqli and mysql pdo extensions. ?" could you please explain the steps how we do it? Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted August 26, 2014 Share Posted August 26, 2014 My line 212 is different public static function getClass() { $class = 'MySQL'; if (extension_loaded('mysql') && PHP_VERSION_ID < 50500) $class = 'MySQL'; elseif (extension_loaded('mysqli')) $class = 'DbMySQLi'; elseif (PHP_VERSION_ID >= 50200 && extension_loaded('pdo_mysql')) $class = 'DbPDO'; return $class; } Yet I have the same error. Me too Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted September 1, 2014 Share Posted September 1, 2014 I have solved it like this: 1. added the follow code on php.ini file extension=pdo.so extension=pdo_sqlite.so extension=sqlite.so extension=pdo_mysql.so extension=mysqli.so 2. added the follow code on .htaccess file to include the php.ini file. Add it at the end or 1-click upgrade will cancel it <IfModule mod_suphp.c> suPHP_ConfigPath /home/yourfilepath/ <Files php.ini> order allow,deny deny from all </Files> </IfModule> I hope it will help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now