"error retrieving the JSON data" due to deprecated function | Report Bugs | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
"error retrieving the JSON data" due to deprecated function
December 29, 2013
3:03 am
Avatar
John
Member
Members
Forum Posts: 12
Member Since:
July 10, 2013
sp_UserOfflineSmall Offline

I am receiving a JSON data error trying to do a backup.  This worked previously, so I assumed it is due to the version of PHP, now set to 5.5.  I reset it back to 5.4, and it works.  I tested it out on another site by resetting to defaults and then ensuring the only change was the PHP version, and the error is reproducible:

There was an error retrieving the JSON data from the server, try again or contact the developers!

Details: parsererror -- Invalid JSON:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /{path redacted}/wp-content/plugins/xcloner-backup-and-restore/classes/mysqlBackup.class.php on line 108

{"newDump":1,"tableName":"wp_bad_behavior","databaseName":"cogpe001_wordpress_24884","totalRecords":"1048","startAtLine":2,"startAtRecord":0,"dumpfile":"\/{path redacted}/administrator\/backups\/database-sql.sql","dbbackup_comp":"","dbbackup_drop":"1"}

JSON url: index2.php?task=recurse_database&nohtml=1&dbbackup_comp=&dbbackup_drop=1

December 31, 2013
11:03 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

We will be switching to mysqli in the near future, so until then, you might need to disable the deprecated error messages display.

 

Ovidiu

December 31, 2013
4:55 pm
Avatar
John
Member
Members
Forum Posts: 12
Member Since:
July 10, 2013
sp_UserOfflineSmall Offline

I could do that or stick with the older version of PHP for now.  I see advantages and disadvantages of either.  Which would you recommend?

January 1, 2014
6:15 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

It depends on the disavantages you have with the new version of php, i would try and stick with that.

January 2, 2014
3:51 pm
Avatar
John
Member
Members
Forum Posts: 12
Member Since:
July 10, 2013
sp_UserOfflineSmall Offline

Well, I'm not sure why, but disabling deprecated errors still did not allow it to run, so I'm sticking to the older version of PHP for now.  Anyhow, just an update.

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Emmanuel Joachim
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0