Author Topic: PHP 7 - installation not running!  (Read 4310 times)

0 Members and 1 Guest are viewing this topic.

Offline HonkXL

  • Pre-Newbie
  • Posts: 1
    • View Profile
PHP 7 - installation not running!
« on: August 31, 2016, 12:46:15 PM »

I tried to install 4images on PHP 7.0.9.

I just got the error message below. When I switched back to PHP 5.6 it worked, but this is not the permanent solution.


Code: [Select]
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/vhosts/xyz/httpdocs/fotomanager/includes/db_mysql.php:39 Stack trace: #0 /var/www/vhosts/xyz/httpdocs/fotomanager/install.php(236): Db->Db('localhost', 'dbuser', 'PW', 'db-name') #1 {main} thrown in /var/www/vhosts/xyz/httpdocs/fotomanager/includes/db_mysql.php on line 39

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: PHP 7 - installation not running!
« Reply #1 on: August 31, 2016, 05:37:18 PM »

Sian there in patience.

Whether it will again provide an update or adapt to PHP 7.xx here looking not so accurate.

Meanwhile, I am probably the only one who still does a little help.

« Last Edit: August 31, 2016, 07:51:10 PM by nobby »

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: PHP 7 - installation not running!
« Reply #2 on: September 01, 2016, 01:55:22 AM »
I must state I am not part of the 4images development team but have been here for awhile now and I made a quick google search and it looks like MySQL is no longer an option in php version7.
One person on another board said that he went through his code and everywhere he saw MySQL he changed it to mysqli (notice the I on the end meaning improved) and after he made all those changes his PHP program began working again.
I cannot say that would be the case with 4images because I did not develop it. I have heard people say that the new mysqli has some flaws that crash their sites from time to time but not sure if any of the calls in 4images would cause that or not.
As technology get better developers are always trying to catch up or walk away. I would think if the developers where going to upgrade 4images to this new format then they would be testing it very hard before releasing the code.

Just like my facebook login mod stopped working because facebook updated their code. I am looking into trying to fix it so 4image users can continue to enjoy it.
Your lucky because I cannot get my host to upgrade to php 5.4 (They do not see it in the near future) yet alone php7

I hope I gave you a little help in seeing that php 7 is a whole different world that opened up in the coding.
Buddy Duke

Offline Nosferatu

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Project-Firepower
Re: PHP 7 - installation not running!
« Reply #3 on: October 21, 2016, 02:34:02 PM »
PHP7 Version comes in few weeks - but you can download the Beta Version;topicseen