PHP7.0.19 broke my 3.1 forum, can't access.... help please

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
J_M
Registered User
Posts: 283
Joined: Wed Jul 20, 2005 12:26 pm

PHP7.0.19 broke my 3.1 forum, can't access.... help please

Post by J_M »

My webhost updated to PHP7.0.19 last night and now I get the following error:

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

I found the following on a discussion for v3.2 -
You need to use the mysqli-driver, because mysql-driver is long deprecated (since php 5.4 or similar) and removed in php 7.0

Edit your config.php, add a little "i" at the end of the driver name, save and clear board cache
would this help? does adding the "i" force it to use the mysqli-driver (already installed) and since I can't access the site how would I clear the board cache.

I appreciate any help thanks!
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: PHP7.0.19 broke my 3.1 forum, can't access.... help please

Post by david63 »

Using mysqli will help to some extent but phpBB 3.1 is not compatible with PHP7 - you will need to either upgrade to phpBB 3.2 or downgrade the version of PHP on your server.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
mrgtb
Registered User
Posts: 603
Joined: Wed Oct 03, 2007 10:51 am

Re: PHP7.0.19 broke my 3.1 forum, can't access.... help please

Post by mrgtb »

As said, you cannot run phpBB 3.1 on PHP 7
J_M
Registered User
Posts: 283
Joined: Wed Jul 20, 2005 12:26 pm

Re: PHP7.0.19 broke my 3.1 forum, can't access.... help please

Post by J_M »

Hi David

I can only find the following in the config.php file within the phpBB3/config folder > $dbms = 'mysql';

I tried changing that to $dbms = 'mysqli'; but it didn't work.

Am I not looking in the right place, and how would I clear the cache as mentioned in the original thread?

thanks again,

j
J_M
Registered User
Posts: 283
Joined: Wed Jul 20, 2005 12:26 pm

Re: PHP7.0.19 broke my 3.1 forum, can't access.... help please

Post by J_M »

-
Last edited by J_M on Tue May 23, 2017 3:26 pm, edited 1 time in total.
User avatar
SiteSplat
Registered User
Posts: 87
Joined: Sun Sep 07, 2014 7:17 pm
Contact:

Re: PHP7.0.19 broke my 3.1 forum, can't access.... help please

Post by SiteSplat »

J_M wrote: Tue May 23, 2017 3:09 pm My webhost updated to PHP7.0.19 last night and now I get the following error:

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

I found the following on a discussion for v3.2 -
You need to use the mysqli-driver, because mysql-driver is long deprecated (since php 5.4 or similar) and removed in php 7.0

Edit your config.php, add a little "i" at the end of the driver name, save and clear board cache
would this help? does adding the "i" force it to use the mysqli-driver (already installed) and since I can't access the site how would I clear the board cache.

I appreciate any help thanks!
Hey J,

PhpBB 3.1 is not fully compatible with PHP 7.
However you can patch it to make it compatible so you can still run phpBB 3.1 with PHP 7.
Here's the "how to" http://forum.dion-designs.com/t9150/mak ... th-php-70/


Regarding clearing the cache manually, from your FTP navigate to your forum root then enter the "cache" folder and delete everything except for the following files: ".htaccess" and "index.htm"

Let me know how it goes and if you need further help.

Cheers!
Dave
- FLATBOOTS - phpBB 3.3 Flat Design - Bootstrap Framework
- Deploy an SSD cloud server in 55s. Sign up and get 2 months free.
- phpBB Community & Premium Themes & Premium Extensions
- Contact me Via PM or e-mail for Custom phpBB work and Web Development needs
🎨phpBB Professional Premium Themes🔥
J_M
Registered User
Posts: 283
Joined: Wed Jul 20, 2005 12:26 pm

Re: PHP7.0.19 broke my 3.1 forum, can't access.... help please

Post by J_M »

thank you! I will give it try. And hopefully be updating to 3.2 later today.

thanks again,

j
J_M
Registered User
Posts: 283
Joined: Wed Jul 20, 2005 12:26 pm

Re: PHP7.0.19 broke my 3.1 forum, can't access.... help please

Post by J_M »

Hi Dave

Success!

I did the following step and cleared the cache, the forum is back up. I didn't install the patch that was on the link yet. If I am going to update to 3.2 now should I install the patch (on the link that you posted) or should I skip that step?
If your config.php
file contains either of the following lines:

$dbms = 'mysql';
$dbms = 'phpbb\\db\\driver\\mysql';

you must change it to this:

$dbms = 'phpbb\\db\\driver\\mysqli';
Locked

Return to “[3.1.x] Support Forum”