PHP 7 Support | General Questions and Support | 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
sp_TopicIcon
PHP 7 Support
July 19, 2017
11:17 am
Avatar
Tim
Member
Members
Forum Posts: 4
Member Since:
November 2, 2014
sp_UserOfflineSmall Offline

Hi,

I've moved all my sites to PHP 7.0 as advised by the Joomla advisory and for general security on other sites.

However, it appears xcloner is not compatible with PHP 7.0 as shown in my error log:

[19-Jul-2017 05:04:02 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/xxxx/public_html/xcloner/common.php:66
Stack trace:
#0 /home/xxxx/public_html/xcloner/cloner.cron.php(98): require_once()
#1 {main}
thrown in /home/xxxx/public_html/xcloner/common.php on line 66
[19-Jul-2017 09:23:50 UTC] PHP Fatal error: 'continue' not in the 'loop' or 'switch' context in /home/xxxx/public_html/xcloner/restore/TAR.php on line 1446

mysql_connect is removed in PHP 7
break not permitted outside a for, foreach or switch statement in PHP 7

Can you advise when a PHP 7compatible version will be available?

Many thanks

TT

May 4, 2018
5:19 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi there, please feel free to download for now the updated XCloner version for php 7 https://github.com/o.....master.zip , let me know if you have any issues with it

Regards, Ovidiu

December 23, 2018
5:34 am
Avatar
Morten_1
New Member
Members
Forum Posts: 2
Member Since:
August 30, 2015
sp_UserOfflineSmall Offline

I just tried follow your instructions to restore a website on a PHP 7 enabled server. Unfortunately, it fails big time. First TAR.php fails due to small missing fixes. However, I was able to fix TAR.php myself with two small code changes. Then database connection fails due to PHP 7 doesn't have mysql_connect available. This was too big for me to change consistently. My conclusion is that for now it is unsafe to rely on XCloner as backup tool for PHP 7 websites and very very soon older PHP versions are unsupported. Any chance that XCloner will become PHP 7 compliant?

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
D: 21
Andy: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 737
Members: 9453
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Vladimir Smitka
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0