Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Enforced upgrade from php 5.6 -> php 7.2 has disabled my forum

Aloittaja gbh2, maaliskuu 05, 2020, 08:27:32 IP

« edellinen - seuraava »

gbh2

It is possible that this doubleposted, more or less. I'm sorry about that, I didn't see the other one on the 2.0.x board.


Dreamhost warned its users, including me, that they were going to enforce an upgrade to php 7.2.

I did some due diligence and stepped through upgrading my msgboard at hxxp:kinship.strayhold.com [nonactive] to version 2.0.17. This seemed to go smoothly.

When March 5th came, Dreamhost did as they said, and there is no going back. I cannot access my msg board.

As with the rest of my sites, I thought I would be able to pick through my php.log to see if anything else I could fix it. Sadly, it is beyond my powers.

What are my options? Will a clean install of a version of SMF get my msg board back, though I am loathe to do so, as it would wipe out a lot of customizations I have done over the past 14 years.

Is there something I can do to recover my board? I thought v2.0.17 would be compatible with php 7.2.

I can post excerpts of my error log if you like.

shawnb61

Mods installed?

Any errors in your error log?  (If you cannot launch the app, you can look in your log_errors table.)

Any errors in your apache log?   

I think the real symptom here will be in your apache log.  Your forum is returning an http 500, which is usually associated with a root cause issue in your apache log.

My first ***guess***, in a graphics heavy forum, is that you need the Image Processing Memory Limit mod:
https://custom.simplemachines.org/mods/index.php?mod=4111
You may need to install it by hand with the forum down. 

Hope this helps,
A question worth asking is born in experience & driven by necessity. - Fripp

drewactual

2.0.17 supports 7.2php, but... many mods don't and won't. 

you can upload a new set of files (2.0.17) in another directory and then point it to the 'old' database and see if it works... if the 'old' install uses hooks, you may have to clear them from that db (save the contents of that field in a separate place), but... you should be functional. 

then, go through the mods one by one- either by installing them or at least seeking out their author/support and seeing if they are updated to support...

all that said.... are you CERTAIN your host removed all but 7.2?  reason i ask, you can TRY this in htaccess:

AddHandler application/x-httpd-php71 .php .php5 .php4 .php3


IF that works, all you're doing is taking advantage of a lessor php which is part of the package.... don't rely on it... IF it works, use it to learn what mods won't support 7.2 by eliminating them all, then one by one reinstalling them (and removing the htaccess line above between each).

there are folks a LOT better at this than me... but i think what i offer insofar as 'new files in a new directory' will work and will let you know where you 'stand'.

edited: pay more attention to shawn than me, but.. try that htaccess call too.


gbh2

Lainaus käyttäjältä: shawnb61 - maaliskuu 05, 2020, 10:06:35 IP
Mods installed?

Quite a bit of custom functionality, but I'm willing to lose it all if I can get the forum back.

What should I do to get the forum back to a usable state? Can/should I install 2.0.17 over the top?

vbgamer45

I would first check your apache error log or php error log.
That might give a clue on what is causing the issue. Fresh files could help in most cases unless it is caused by a bad hook but again you would loose your custom changes.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gbh2

Lainaus käyttäjältä: vbgamer45 - maaliskuu 08, 2020, 11:22:27 AP
I would first check your apache error log or php error log.
That might give a clue on what is causing the issue. Fresh files could help in most cases unless it is caused by a bad hook but again you would loose your custom changes.

Well I did the "large upgrade" to 2.0.17, but I'm still out of luck. Here is the error I receive when I hit the msg board:

[08-Mar-2020 12:06:20 America/Indiana/Indianapolis] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/grehar34/kinship.strayhold.com/Sources/Load.php(2229) : eval()'d code:183
Stack trace:
#0 /home/grehar34/kinship.strayhold.com/Sources/Load.php(1941): template_body_above()
#1 /home/grehar34/kinship.strayhold.com/Sources/Subs.php(3399): loadSubTemplate('body_above', true)
#2 /home/grehar34/kinship.strayhold.com/Sources/Subs.php(2844): template_header()
#3 /home/grehar34/kinship.strayhold.com/Sources/Errors.php(333): obExit(NULL, true, false, true)
#4 /home/grehar34/kinship.strayhold.com/Sources/Errors.php(161): setup_fatal_error_context('Call to undefin...')
#5 /home/grehar34/kinship.strayhold.com/index.php(130): fatal_error('Call to undefin...', 'critical')
#6 [internal function]: {closure}(Object(Error))
#7 {main}
  thrown in /home/grehar34/kinship.strayhold.com/Sources/Load.php(2229) : eval()'d code on line 183


Seems like some evaluated code has a mysql_connect call?

gbh2

And what's a "hook"? Maybe one of my mods put a script in my db somewhere that has the call to mysql_query in it?

gbh2

Apparently it was something custom I did in one of my themes. It is working now, thanks for the help!

boardhead

Interesting.  I'm on dreamhost using php 7.1 quite happily, and haven't received any emails about a requirement to upgrade to 7.2, but I just found this notice.

I guess I should upgrade.  Should I expect any problems upgrading to php 7.2 with SMF 2.0.17?

- Phil

boardhead

Hmmm.  And it looks like the same problem will repeat itself in November...

PHP 7.2 is supported only until Nov 20, 2020 (see here).

:( :( :(

- Phil

vbgamer45

2.0.x does work fine with 7.3 unofficially. Does not work well php 7.4 currently.
I run it on 7.3
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


Advertisement: