4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: HonkXL on August 31, 2016, 12:46:15 PM

Title: PHP 7 - installation not running!
Post by: HonkXL on August 31, 2016, 12:46:15 PM
Hi,

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.

Error-message:

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
Title: Re: PHP 7 - installation not running!
Post by: nobby on August 31, 2016, 05:37:18 PM
Hello,

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.

nobby
Title: Re: PHP 7 - installation not running!
Post by: budduke 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.
Title: Re: PHP 7 - installation not running!
Post by: Nosferatu on October 21, 2016, 02:34:02 PM
PHP7 Version comes in few weeks - but you can download the Beta Version
http://www.4homepages.de/forum/index.php?topic=31879.0;topicseen