4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: viper357 on September 06, 2019, 10:48:12 AM

Title: Php 7 problem so any other software?
Post by: viper357 on September 06, 2019, 10:48:12 AM
Hi, so php 7.3 is not working, is there any other software that I can use that will import my pictures from 4images?
Title: Re: Php 7 problem so any other software?
Post by: Sunny C. on September 08, 2019, 04:11:14 PM
Yes, 4images also runs under 7.3.
What do you get for error messages?

Take a look here:
https://www.4homepages.de/forum/index.php?topic=31932.msg168211#msg168211
Title: Re: Php 7 problem so any other software?
Post by: viper357 on September 08, 2019, 05:14:12 PM
Not getting any error message, just a blank screen when I enable php 7 or 7.3. I have to run php 5.6 on my server for 4images to work. I've been running 4images for a few years but just get a blank page when switching on php 7
Title: Re: Php 7 problem so any other software?
Post by: Sunny C. on September 09, 2019, 03:25:33 PM
So it's not about an installation?
You installed 4images some time ago?
Which version are you currently using?
Title: Re: Php 7 problem so any other software?
Post by: viper357 on September 09, 2019, 03:30:27 PM
Quote
So it's not about an installation?
No
Quote
You installed 4images some time ago?
Yes
Quote
Which version are you currently using?
1.8
Title: Re: Php 7 problem so any other software?
Post by: Sunny C. on September 09, 2019, 04:45:12 PM
Open your index.php

Search <?php
add after
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Open your Site
Title: Re: Php 7 problem so any other software?
Post by: viper357 on September 09, 2019, 04:53:57 PM
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/reefclip/public_html/includes/db_mysql.php:37 Stack trace: #0 /home/reefclip/public_html/global.php(400): Db->__construct('localhost', 'reefclip_image', '*****', 'reefclip_image') #1 /home/reefclip/public_html/index.php(33): include('/home/reefclip/...') #2 {main} thrown in /home/reefclip/public_html/includes/db_mysql.php on line 37
Title: Re: Php 7 problem so any other software?
Post by: Sunny C. on September 09, 2019, 06:32:08 PM
This is due to the db_mysql.php file.
In the appendix you can find the right one.
Replace your includes/db_mysql.php with the one from my attachment.
Title: Re: Php 7 problem so any other software?
Post by: viper357 on September 09, 2019, 06:53:11 PM
This is due to the db_mysql.php file.
In the appendix you can find the right one.
Replace your includes/db_mysql.php with the one from my attachment.
It is working now, thank you very much for the help.  :mrgreen: :mrgreen: :mrgreen: :mrgreen:
Title: Re: Php 7 problem so any other software?
Post by: paulbu on November 13, 2023, 05:47:52 PM
Hi Sunny
I made an update from 1.7.6 to 1.10 and at the same time PHP 5. to PHP 8.2 almost without problems :-)
The only problem I encountered was the file db_mysql.php
With your zip file the problem was solved, thank you very much.

Best regards
Paul