"error retrieving the JSON data" due to deprecated function | Report Bugs | Free Forums

All Wordpress Forum requests have been moved to Wordpress Support Forums

 

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
"error retrieving the JSON data" due to deprecated function
December 29, 2013
3:03 am
Avatar
John
Member
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
XCloner! Support
Admin
Forum Posts: 2485
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

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
December 31, 2013
4:55 pm
Avatar
John
Member
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
XCloner! Support
Admin
Forum Posts: 2485
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.

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
January 2, 2014
3:51 pm
Avatar
John
Member
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: UTC 0

Most Users Ever Online: 867

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tom_1: 70

mlguru: 33

Django29: 29

Andy: 21

D: 21

Marcus: 20

Member Stats:

Guest Posters: 737

Members: 41546

Moderators: 1

Admins: 1

Forum Stats:

Groups: 3

Forums: 7

Topics: 2517

Posts: 8419

Newest Members:

Alex_samochkin Alex_samochkin

Moderators: Ovidiu - Support!: 0

Administrators: XCloner! Support: 2485

Quick contact

place

Hi there, my name is Ovidiu Liuta and i support the XCloner! project
XCloner is a Joomla backup component, Wordpress backup plugin and Free website backup tool.
Contact me here!

About company

XCloner.com is a dynamic company focusing on providing backup and recovery solutions for small to medium websites.
We are based in Romania and offer 24/7 support through forums and our private ticket system for Premium users support.

© 2020 XCloner - Website Backup and Restore made simple
All Rights Reserved | Privacy Policy