Does not work with PHP 7.1

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
User avatar
Canoran
Registered User
Posts: 88
Joined: Thu May 17, 2018 3:56 pm

Does not work with PHP 7.1

Post by Canoran » Wed Oct 09, 2019 9:50 pm

Hello,
today I have updated two forums to the release 3.2.8, everything go correctly with PHP 5.6 but when I have switched to PHP 7.1 they don't work any more and both give me this error:

Code: Select all

	
General Error
SQL ERROR [ mysql4 ]

mysql_connect function does not exist, is mysql extension installed? []

An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
After a search I find [urlhttps://www.phpbb.com/community/viewtopic.php?f=556&t=2399941]this thread[/url] and I have added the "i" after "mysql" and one of the two start to work properly.

But the other one gives this new error:

Code: Select all

	
General Error
SQL ERROR [ mysqli ]

Unknown MySQL server host 'localhost:3306' (-2) [2005]

An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Please can you tell me how solve this problem?

Thank you

User avatar
Canoran
Registered User
Posts: 88
Joined: Thu May 17, 2018 3:56 pm

Re: Does not work with PHP 7.1

Post by Canoran » Wed Oct 09, 2019 10:06 pm

Solved!

In config.php I have correted the line:

Code: Select all

$dbhost = 'localhost:3306';
like this:

Code: Select all

$dbhost = 'localhost';
$dbport = '3306';
And now it is working! ;)

User avatar
Lumpy Burgertushie
Registered User
Posts: 66728
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Does not work with PHP 7.1

Post by Lumpy Burgertushie » Thu Oct 10, 2019 12:10 am

in that file,you also need to make sure it says mysqli instead of mysql

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
canonknipser
Registered User
Posts: 2086
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Does not work with PHP 7.1

Post by canonknipser » Thu Oct 10, 2019 4:16 am

Lumpy Burgertushie wrote:
Thu Oct 10, 2019 12:10 am
in that file,you also need to make sure it says mysqli instead of mysql
Canoran wrote:
Wed Oct 09, 2019 9:50 pm
and I have added the "i" after "mysql"
Canoran wrote:
Wed Oct 09, 2019 10:06 pm
Solved!
...

And now it is working!
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB

User avatar
Canoran
Registered User
Posts: 88
Joined: Thu May 17, 2018 3:56 pm

Re: Does not work with PHP 7.1

Post by Canoran » Thu Oct 10, 2019 6:17 am

Thank you for your attention.

Now, may I use PHP 7.2 or 7.3 with these forums or I have to update something else?

User avatar
Lumpy Burgertushie
Registered User
Posts: 66728
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Does not work with PHP 7.1

Post by Lumpy Burgertushie » Thu Oct 10, 2019 6:34 am

sorry, I missed that you had already done the mysqli thing.

you should be able to switch to php 7.2 now but not 7.3
phpbb is not compatible with 7.3 yet.

luck,
robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Canoran
Registered User
Posts: 88
Joined: Thu May 17, 2018 3:56 pm

Re: Does not work with PHP 7.1

Post by Canoran » Thu Oct 10, 2019 7:24 am

Thank you Robert, I will keep in mind.

kwakaphp
Registered User
Posts: 23
Joined: Mon Dec 22, 2008 10:46 am
Name: Bazz

Re: Does not work with PHP 7.1

Post by kwakaphp » Thu Oct 10, 2019 11:55 am

As of 3.2.8
Just for completeness and a note re: PHP versions, in the full phpBB3 package under /docs, clicking on the INSTALL.html and under the heading:
2. Requirements
phpBB 3.2.x has a few requirements which must be met before you are able to install and use it.

A webserver or web hosting account running on any major Operating System with support for PHP
A SQL database system, one of:
MySQL 3.23 or above (MySQLi supported)
MariaDB 5.1 or above
PostgreSQL 8.3+
SQLite 3.6.15+
MS SQL Server 2000 or above (via ODBC or the native adapter)
Oracle
PHP 5.4.7+ but less than PHP 7.3 with support for the database you intend to use.
The following PHP modules are required:
json
getimagesize() function must be enabled.
Presence of the following modules within PHP will provide access to additional features, but they are not required:
zlib Compression support
Remote FTP support
XML support
GD Support

If your server or hosting account does not meet the requirements above then you will be unable to install phpBB 3.2.x.
As recent as 3.2.7 had this advisory only: PHP 5.4.7+ with support for the database you intend to use.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66728
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Does not work with PHP 7.1

Post by Lumpy Burgertushie » Thu Oct 10, 2019 7:56 pm

just to be accurate. my version and the one you can download from phpbb.com of 3.2.7 has the same as 3.2.8
there is no download of 3.2.6 and the 3.2.5 version has what you said.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

kwakaphp
Registered User
Posts: 23
Joined: Mon Dec 22, 2008 10:46 am
Name: Bazz

Re: Does not work with PHP 7.1

Post by kwakaphp » Fri Oct 11, 2019 6:47 am

Yes, you're probably right but irrespective of when it changed or which version, it is obvious that the requirement has been changed.
Looking at my Automatic Upgrade 3.2.7->3.2.8, it does state: PHP 5.4.7+ but less than PHP 7.3 with support for the database you intend to use.

At the very least, the change in wording makes it very clear which PHP versions can and cannot be used and that's a good thing for all of us. :)

User avatar
3Di
Former Team Member
Posts: 14226
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Does not work with PHP 7.1

Post by 3Di » Fri Oct 11, 2019 7:06 am

kwakaphp wrote:
Fri Oct 11, 2019 6:47 am
At the very least, the change in wording makes it very clear which PHP versions can and cannot be used and that's a good thing for all of us.
Yeah, that's changed since 3.2.6 as per Bug #15926
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

Post Reply

Return to “[3.2.x] Support Forum”