Jump to content
TNG Community
Sign in to follow this  
ton van lil

Backup not working under PHP 7.4

Recommended Posts

ton van lil

Hello

I am running my website under TNG V13.01.

My backup does not work under PHP 7.4. If I downgrade to PHP 5.6 backup works.

Am I doing something wrong?

Greetings

Ton van Lil

Share this post


Link to post
Share on other sites
Ken Roy

Backup works fine on my hosting service running PHP 7.4.9  Do you have any mods that might make changes to admin_backup.php

You can find that in the Mod Manager - Analyze TNG Files tab.  If the tab is not shown, click the Options tab, expand the Display Settings, and change the Show Analyze TNG Files tab:  to Yes

Share this post


Link to post
Share on other sites
ton van lil

Ken

Thanks for your quick replay.

Indeed I have three mods changing admin_backup.php. Sosa_mod, Censusplus mod an Validations_check mod.

I will try and switch these of and see if its works.

Greetings

Ton van Lil

Share this post


Link to post
Share on other sites
ton van lil

Ken,

Uninstalled Sosa_mod, Censusplus mod an Validations_check mod. No effect.

Still no backing up under PHP 7.4.7.

Back to PHP 5.6 no problems backing up.

Greetings

Ton van Lil

Share this post


Link to post
Share on other sites
Ken Roy

I run the first two but not the Validations Check, and have no problem with backup.  Something else must be at play

 

Share this post


Link to post
Share on other sites
tngrlkrz

Which backup are you referring to? The TNG Admin:Utilities Backup & Restore?  If so, what specific errors are you encountering when you run the backup?

I have seen older versions of the Validation checks mod, even if uninstalled, leaving a table in the database, which the backup will not like and display an error.  However, the rest of the tables backup  OK, as evidenced by looking at your designated backup folder and the display of dates tables were backed up. 

Share this post


Link to post
Share on other sites
ton van lil

Indead I try to use the TNG Admin:Utilities Backup & Restore.

I get the HTTP Error 500.

The funny thing is that it works under PHp 5.6.

 

Share this post


Link to post
Share on other sites
Ken Roy

PHP error reporting changed between PHP 5.6 and 7.4, so you are likely getting a fatal error or something.

You could try uninstalling the mods that update admin_backup.php and then replacing that module with the one provided by TNG and see if you can create your backup before re-installing your mods

Share this post


Link to post
Share on other sites
ton van lil

Thanks for all your input.

I will try after the weekend.

Greetings

Ton van Lil

 

Share this post


Link to post
Share on other sites
ton van lil

Ken

Tried your suggestion. Alas it did not work.

There must be something else wrong.

Greetings Ton

 

Share this post


Link to post
Share on other sites
Bernard

Ton,

I had the same problem when switching tot PHP 7.  I had to change the following extensions used by the server:

  • unselect 'mysqli'
  • select 'nd_mysqli

You can't use both. 
MySQL_ND and MySQL PHP extensions are different sets of drivers. They are provided by the different teams of developers (MySQL and PHP, respectively). The most important is the fact that they are mutually exclusive - you can not select them both simultaneously or mix them in any way. Otherwise, the php code will throw errors about the connection to the MySQL database.

Don't ask me why but that worked for me

 

with kind regards, 

Bernard Wortelboer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×