Error on backup form CF4

wallyhowe 04 Nov, 2017
On trying to backup CF4 forms (to restore in a newer version) I am getting the error:
An error has occurred.
0 Call to undefined function ereg()

This is happening on all my CF4 forms.

Wallyhowe
GreyHead 04 Nov, 2017
Hi Wallyhowe,

I suspect that you don't have the latest release of CFv4 installed. If I recall correctly this is a bug due to ereg being deprecated in later versions of PHP.

Bob
wallyhowe 04 Nov, 2017
Hi Bob

This was my first thought so I downloaded and installed the 3 items again but same result:
Component date 20-07-2016
Module date 16-11-2013
Plugin date 16-11-2013

I will go through the process again.

Wally
GreyHead 04 Nov, 2017
Hi Wallyhowe,

If you set error reporting to Maximum do you see an error message that says where the error is occurring - the file and line number?

Bob
wallyhowe 04 Nov, 2017
Yes, component 4.0.7_j3

Cleared cache, reinstalled, same problem.

Wally
wallyhowe 04 Nov, 2017
No, just the same error message
wallyhowe 06 Nov, 2017
Well it is definately a PHP issue.

I have 2 different sites, both running PHP 7.0 and forms do not backup.

Downgraded one to PHP 5.6 and all worked fine.

Back to 7.0 and fails again.

Bob - do you have CF4 able to back up on PHP7.0?

Wally
GreyHead 07 Nov, 2017
Hi Wally,

I get a slightly more useful message "Call to undefined function ereg()
. . ./administrator/components/com_chronoforms/controller.php:321"
If you open that file and edit lines 321 and 324 to replace ereg( with preg_match( then the back up should work correctly.

Bob
wallyhowe 07 Nov, 2017
Thats great Bob

Many thanks

Wally
This topic is locked and no more replies can be posted.