Jump to content

[Solved] Javascript error (parseJSON) detected for action "upgradeNow". Starting restoration...


Recommended Posts

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.

  • Like 1
Link to comment
Share on other sites

  • 5 weeks later...

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.
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...
  • 1 month later...

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

  • 1 month later...

 

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...