Buy Now
Sign in

Error on backup form CF4

wallyhowe , November 04 at 09:31
w
wallyhowe

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

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

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

w
wallyhowe

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

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

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

w
wallyhowe

Yes, component 4.0.7_j3

Cleared cache, reinstalled, same problem.

Wally

w
wallyhowe

No, just the same error message

w
wallyhowe

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

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

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

w
wallyhowe

Thats great Bob

Many thanks

Wally