phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

My webhost just force upgraded me from PHP 5.6 to PHP 7.2

Goto page 1, 2, 3, 4, 5  Next
 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 19



PostPosted: Wed Feb 19, 2020 6:59 pm 
Post subject: My webhost just force upgraded me from PHP 5.6 to PHP 7.2

...and my forums are now broken.

(http://www.sydlexia.com/forums)

I have absolutely no background in coding whatsoever. How would I go about fixing this. The fixes when I was upgraded to PHP 5 were fairly simple. A quick search of the forums seems to make it seem like upgrading to 7 is much harder.

Can anyone help me with this?
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 628
Location: North West UK


flag
PostPosted: Wed Feb 19, 2020 8:24 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Hi -welcome aboard.
There are some members that have done this conversion and hopefully someone will pop in to give you some pointers. I see that your site just serves up a blank page at the moment.
As posts have appeared over the last two years I have copied any files which I have now added as an attachment for you. In the zip are some files that had been converted to PHP7 but just how useful they are to you would depend on how modded your forums are. I understand that the major change is to the database. Read the text document first. I am sure there are things that need to be done in addition to what is in that zip but that is all that I have.

There is another option of course which is to take a copy of your files and db to another host that has PHP5.2

Jim

Be sure to keep on one side a backup of your files before you start making changes.



upgrade.zip
 Description:

Download
 Filename:  upgrade.zip
 Filesize:  103.36 KB
 Downloaded:  552 Time(s)


_________________
The truth is out there.
Unfortunately they will not let you anywhere near it!
Back to top
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 19



PostPosted: Wed Feb 19, 2020 8:52 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Thank you for your reply! I followed the upgrade steps (after doing a backup) and they sadly did not work. One potential problem is that the I am using a custom theme and I noticed the replacement phpBB files include an updated CSS sheet for SubSilver.

I have included my theme's CSS sheet to see if there are any errors in there that need to be fixed.



fionefourocean.zip
 Description:

Download
 Filename:  fionefourocean.zip
 Filesize:  3.27 KB
 Downloaded:  551 Time(s)

Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 628
Location: North West UK


flag
PostPosted: Wed Feb 19, 2020 8:59 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

I'm not your man for checking that I am afraid. Not a coder - just a humble moderator and long time (16yrs) user of phpbb2.
Can you not just move to a different host? I think I have the problem sorted with my board as I have a VPS and the host will not change the version of PHP unless I ask them to (I hope!) but it comes at a cost. I am paying $109.95/month
I am sure someone will come on and give you some advice.

Jim

_________________
The truth is out there.
Unfortunately they will not let you anywhere near it!
Back to top
Vendethiel
Board Member



Joined: 26 Oct 2014

Posts: 220



PostPosted: Thu Feb 20, 2020 11:23 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Hi,

The custom theme shouldn't matter. Do you have PHP errors enabled?

_________________
Developer on EzArena, the ADR premod.
Developer on Icy Phoenix, the phpBB hybrid cms.
Developer on IntegraMOD, the full-featured premod.
Help me archive premods on github! (fixed for recent PHPs).
Back to top
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 19



PostPosted: Thu Feb 20, 2020 11:40 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Not to my knowledge. How would I do that?
Back to top
Vendethiel
Board Member



Joined: 26 Oct 2014

Posts: 220



PostPosted: Fri Feb 21, 2020 11:16 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

That depends on your host, it's hard to tell. If you could get the PHP log, we could take a look at what's broken, but following the series of posts I made should be a good start...
_________________
Developer on EzArena, the ADR premod.
Developer on Icy Phoenix, the phpBB hybrid cms.
Developer on IntegraMOD, the full-featured premod.
Help me archive premods on github! (fixed for recent PHPs).
Back to top
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 19



PostPosted: Sat Feb 22, 2020 10:36 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

I was able to find the error log.


error.zip
 Description:
error log for 2/20

Download
 Filename:  error.zip
 Filesize:  2.86 KB
 Downloaded:  540 Time(s)

Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 167
Location: Germany


flag
PostPosted: Sun Feb 23, 2020 8:29 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Code:
PHP Fatal error:  Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/axl/sydlexia.com/forums/common.php:29

set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed from PHP 7.0 on.

Comment that line out with // in front or just remove the line entirely from common.php. Be aware, that there will likely be other errors or warnings follow after doing that. PHP just stopped at this error at first.
Back to top
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 19



PostPosted: Mon Feb 24, 2020 10:18 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Fixed common.php.

Here are the error logs for 2-23 and 2-24
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 167
Location: Germany


flag
PostPosted: Mon Feb 24, 2020 10:54 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

You are using the old mysql extension for PHP. This has been deprecated since lots of PHP versions and finally removed as of 7.0.

Get mysqli.php and place it into the db/ directory. Then edit your config.php and change the value of $dbms from mysql to mysqli.
Back to top
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 19



PostPosted: Mon Feb 24, 2020 9:31 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Thank you. I've seen people suggest that you just rename the mysqli file to mysql and replace the mysql file, so I did that.

These are the current errors.

Code:
[Mon Feb 24 13:26:24.000176 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/axl/sydlexia.com/forums/db/mysql4.php:48: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.000326 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.000882 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: #0 /home/axl/sydlexia.com/forums/includes/db.php(60): sql_db->sql_db('forums.sydlexia...', 'REDACTED', 'REDACTED', 'REDACTED', false): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.001221 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: #1 /home/axl/sydlexia.com/forums/common.php(197): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.001576 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: #2 /home/axl/sydlexia.com/forums/index.php(26): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.001666 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: #3 {main}: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.001956 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215:   thrown in /home/axl/sydlexia.com/forums/db/mysql4.php on line 48: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 167
Location: Germany


flag
PostPosted: Tue Feb 25, 2020 5:14 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Syd Lexia wrote:
Thank you. I've seen people suggest that you just rename the mysqli file to mysql and replace the mysql file, so I did that.

These are the current errors.

Code:
[Mon Feb 24 13:26:24.000176 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/axl/sydlexia.com/forums/db/mysql4.php:48: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.000326 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.000882 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: #0 /home/axl/sydlexia.com/forums/includes/db.php(60): sql_db->sql_db('forums.sydlexia...', 'REDACTED', 'REDACTED', 'REDACTED', false): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.001221 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: #1 /home/axl/sydlexia.com/forums/common.php(197): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.001576 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: #2 /home/axl/sydlexia.com/forums/index.php(26): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.001666 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215: #3 {main}: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Mon Feb 24 13:26:24.001956 2020] [cgi:error] [pid 25006] [client 66.30.23.167:50806] AH01215:   thrown in /home/axl/sydlexia.com/forums/db/mysql4.php on line 48: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/

But you're using the mysql4 database driver from phpBB, not mysql from phpBB. The mysql4 database driver still uses the no longer available mysql_* functions. Check your config.php, what $dbms refers to.
Back to top
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 19



PostPosted: Tue Feb 25, 2020 10:17 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

I apologize. If I had just followed your instructions exactly, we'd already be on to the next thing. I will do so in the future.

These are the new errors.

Code:
[Tue Feb 25 02:11:01.127364 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: PHP Fatal error:  Uncaught Error: Class 'sql_db' not found in /home/axl/sydlexia.com/forums/includes/db.php:60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.127537 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.127800 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: #0 /home/axl/sydlexia.com/forums/common.php(197): include(): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.128135 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: #1 /home/axl/sydlexia.com/forums/index.php(26): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.128195 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: #2 {main}: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.128496 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215:   thrown in /home/axl/sydlexia.com/forums/includes/db.php on line 60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.970990 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: PHP Fatal error:  Uncaught Error: Class 'sql_db' not found in /home/axl/sydlexia.com/forums/includes/db.php:60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.971176 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.971444 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: #0 /home/axl/sydlexia.com/forums/common.php(197): include(): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.971785 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: #1 /home/axl/sydlexia.com/forums/index.php(26): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.971844 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: #2 {main}: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.972149 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215:   thrown in /home/axl/sydlexia.com/forums/includes/db.php on line 60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827110 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: PHP Fatal error:  Uncaught Error: Class 'sql_db' not found in /home/axl/sydlexia.com/forums/includes/db.php:60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827256 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827511 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: #0 /home/axl/sydlexia.com/forums/common.php(197): include(): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827837 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: #1 /home/axl/sydlexia.com/forums/index.php(26): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827893 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: #2 {main}: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.828185 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215:   thrown in /home/axl/sydlexia.com/forums/includes/db.php on line 60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 167
Location: Germany


flag
PostPosted: Tue Feb 25, 2020 5:20 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Syd Lexia wrote:
I apologize. If I had just followed your instructions exactly, we'd already be on to the next thing. I will do so in the future.

These are the new errors.

Code:
[Tue Feb 25 02:11:01.127364 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: PHP Fatal error:  Uncaught Error: Class 'sql_db' not found in /home/axl/sydlexia.com/forums/includes/db.php:60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.127537 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.127800 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: #0 /home/axl/sydlexia.com/forums/common.php(197): include(): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.128135 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: #1 /home/axl/sydlexia.com/forums/index.php(26): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.128195 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215: #2 {main}: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.128496 2020] [cgi:error] [pid 9459] [client 66.30.23.167:49382] AH01215:   thrown in /home/axl/sydlexia.com/forums/includes/db.php on line 60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.970990 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: PHP Fatal error:  Uncaught Error: Class 'sql_db' not found in /home/axl/sydlexia.com/forums/includes/db.php:60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.971176 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.971444 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: #0 /home/axl/sydlexia.com/forums/common.php(197): include(): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.971785 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: #1 /home/axl/sydlexia.com/forums/index.php(26): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.971844 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215: #2 {main}: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:01.972149 2020] [cgi:error] [pid 23318] [client 66.30.23.167:49384] AH01215:   thrown in /home/axl/sydlexia.com/forums/includes/db.php on line 60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827110 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: PHP Fatal error:  Uncaught Error: Class 'sql_db' not found in /home/axl/sydlexia.com/forums/includes/db.php:60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827256 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827511 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: #0 /home/axl/sydlexia.com/forums/common.php(197): include(): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827837 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: #1 /home/axl/sydlexia.com/forums/index.php(26): include('/home/axl/sydle...'): /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.827893 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215: #2 {main}: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/
[Tue Feb 25 02:11:02.828185 2020] [cgi:error] [pid 12431] [client 66.30.23.167:49386] AH01215:   thrown in /home/axl/sydlexia.com/forums/includes/db.php on line 60: /dh/cgi-system/php72.cgi, referer: http://www.sydlexia.com/

Now I'm somewhat lost. Did you download the mysqli.php from above and placed it inside db/? Also what does your config.php say about $dbms?
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 5 All times are GMT
Goto page 1, 2, 3, 4, 5  Next
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0989 seconds using 17 queries. (SQL 0.0026 Parse 0.0682 Other 0.0282)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo