PHPBB Broken after Host Updated to PHP7.

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Suggested Hosts
Post Reply
rodincoil
Registered User
Posts: 5
Joined: Wed Sep 21, 2016 12:31 pm

PHPBB Broken after Host Updated to PHP7.

Post by rodincoil » Tue Sep 12, 2017 12:28 am

Support Request Template
What version of phpBB are you using? phpBB 3.1.10
What is your board's URL? http://www.kevinhartnell.com/phpbb
Who do you host your board with? midphase.com
How did you install your board? I used a tool provided by my host
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? Yes
Do you have any extensions installed? No
What version of phpBB3 did you update from? phpBB 3.1.7
What MODs do you have installed? mChat
What styles do you currently have installed? prosilver, black
What language(s) is your board currently using? English
Which database type/version are you using? I Don't Know
What is your level of experience? New to PHP but not phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? My hosting company updated to php 7 and broke the forum.
Please describe your problem. After the hosting company updated to php 7, I tried to access my phpbb and received this error. "
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."

I cannot access the ACP or the main phpbb pages. I have the entire phpbb and database backed up, which is 24 gigs compressed.
Generated by SRT Generator
Last edited by JimA on Tue Sep 12, 2017 2:48 pm, edited 2 times in total.
Reason: Moved from 3.2 Support to 3.1 Support Forum

User avatar
SalazarAG
Registered User
Posts: 664
Joined: Mon Mar 30, 2015 10:48 am

Re: PHPBB Broken after Host Updated to PHP7.

Post by SalazarAG » Tue Sep 12, 2017 12:35 am

Download phpbb from the official website and try to install.

EDIT: Forget what I said, it was a mistake.
I'm sorry for my English. Google Translator does a bad job. :D

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20271
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: PHPBB Broken after Host Updated to PHP7.

Post by RMcGirr83 » Tue Sep 12, 2017 1:09 am

mysql isn't available in PHP 7. Change the driver type in the config.php file to mysqli, purge the cache and it should then work.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
P_I
Registered User
Posts: 784
Joined: Tue Mar 01, 2011 8:35 pm
Location: Calgary
Contact:

Re: PHPBB Broken after Host Updated to PHP7.

Post by P_I » Tue Sep 12, 2017 11:49 am

rodincoil wrote:
Tue Sep 12, 2017 12:28 am
Support Request Template
What version of phpBB are you using? phpBB 3.1.10
Can the OP please confirm the phpBB version since this is (currently) posted in the [3.2.x] Support Forum.

phpBB 3.1.x is not compatible with PHP 7.x, see https://www.phpbb.com/support/docs/en/3 ... uirements/ which indicates
PHP >= 5.3.3, PHP < 7.0-dev
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams

rodincoil
Registered User
Posts: 5
Joined: Wed Sep 21, 2016 12:31 pm

Re: PHPBB Broken after Host Updated to PHP7.

Post by rodincoil » Tue Sep 12, 2017 1:07 pm

Thank you very much for your help. It is greatly appreciated! :)

rodincoil
Registered User
Posts: 5
Joined: Wed Sep 21, 2016 12:31 pm

Re: PHPBB Broken after Host Updated to PHP7.

Post by rodincoil » Tue Sep 12, 2017 1:09 pm

My apologies. I had intended to install the update from 3.1.10 to 3.2.x when I ran into this issue. Fortunately, RMcGirr83 had the correct answer that resolved the issue. Thanks again for the help!
P_I wrote:
Tue Sep 12, 2017 11:49 am
rodincoil wrote:
Tue Sep 12, 2017 12:28 am
Support Request Template
What version of phpBB are you using? phpBB 3.1.10
Can the OP please confirm the phpBB version since this is (currently) posted in the [3.2.x] Support Forum.

phpBB 3.1.x is not compatible with PHP 7.x, see https://www.phpbb.com/support/docs/en/3 ... uirements/ which indicates
PHP >= 5.3.3, PHP < 7.0-dev
Last edited by rodincoil on Tue Sep 12, 2017 2:47 pm, edited 1 time in total.

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7011
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: PHPBB Broken after Host Updated to PHP7.

Post by JimA » Tue Sep 12, 2017 2:14 pm

Be aware though that while this might solve from immediate problems, phpBB 3.1 is known to not function fully with PHP 7.0 as P_I said. You might experience problems with other areas of the board (e.g. posting) so it's recommended that you upgrade to phpBB 3.2 which does support the latest PHP versions.
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

rodincoil
Registered User
Posts: 5
Joined: Wed Sep 21, 2016 12:31 pm

Re: PHPBB Broken after Host Updated to PHP7.

Post by rodincoil » Tue Sep 12, 2017 2:46 pm

Thank you. I will attempt to update ASAP.

Post Reply

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 18 guests

cron