Author Topic: Php 7 problem so any other software?  (Read 10778 times)

0 Members and 1 Guest are viewing this topic.

Offline viper357

  • Newbie
  • *
  • Posts: 23
    • View Profile
Php 7 problem so any other software?
« 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?

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: Php 7 problem so any other software?
« Reply #1 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

Offline viper357

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Php 7 problem so any other software?
« Reply #2 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

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: Php 7 problem so any other software?
« Reply #3 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?

Offline viper357

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Php 7 problem so any other software?
« Reply #4 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

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: Php 7 problem so any other software?
« Reply #5 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

Offline viper357

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Php 7 problem so any other software?
« Reply #6 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

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: Php 7 problem so any other software?
« Reply #7 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.

Offline viper357

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Php 7 problem so any other software?
« Reply #8 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:

Offline paulbu

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Php 7 problem so any other software?
« Reply #9 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