PHP7 Compatability

HallofFamer

Habitué
Joined
Sep 6, 2010
Messages
1,318
The final versions of 3.8.11 & 4.2.5 were released earlier today, they conclude the 4.2.5 & 3.8.11 release schedule.
The also conclude my time as Project Manager for vB3 & vB4, and will most likely be the last ever releases for both the 3.x & 4.x series.
Despite your sarcastic and cynical attitude, I highly appreciate and respect what you've done for VB3/4. It was wonderful work, and good luck with whatever works you will end up with in future. Too bad though, after your time with IB is done, no one will be updating VB3/4 for future PHP versions. This means, once PHP 8 comes out every VB3/4 admin will have to migrate to a different platform, or be stuck with old PHP version.
 

Paul M

Limeade Addict
Joined
Jun 26, 2006
Messages
3,852
I dont think PHP 8 is going to be a worry for a while yet (2019 ?).

The more immediate issue will be PHP 7.2
However, PHP 7.0 & 7.1 will be around, and supported, for some time yet.
 

mysiteguy

Devotee
Joined
Feb 20, 2007
Messages
2,990
I dont think PHP 8 is going to be a worry for a while yet (2019 ?).

The more immediate issue will be PHP 7.2
However, PHP 7.0 & 7.1 will be around, and supported, for some time yet.
So true, look how long 5.4 and 5.6 hung around. 5.6 still has very widespread use.
 

mysiteguy

Devotee
Joined
Feb 20, 2007
Messages
2,990
In addition to quality, a great deal of the installed base of 5.6 applications which are of good quality either do not work with PHP 7.x, are still in transition or have not been fully tested with it. Considering the number of companies who rely on it we'll likely see PHP 5.6 support for some time... even if that means future PHP 7+ apps are written with backward compatibility in mind.

If the past has been any indication, the end of life schedule will be extended beyond the current schedule, and 7.x has a long future.
 

Snowhog

Retired in MN
Joined
Aug 12, 2017
Messages
12
This is a huge thread, and I apologize in advance for asking the following given that it's likely been asked/addressed somewhere in the previous 161 posts!

We just upgraded from 4.2.4 to 4.2.5. Our host (forum owner) said that he ended up having to upgrade PHP (I've asked him why; what was requiring him to do so), but regardless, we are now on PHP 7 and we are experiencing minor issues: inline images not displaying; smilies window closing after clicking on a smilie; posts submissions resulting in a blank page, necessitating pressing the URL refresh, resulting in the ubiquitous "
Are you sure you want to send a form again?" and subsequent 'double posting' message. My guess is that we will discover additional issues.

Is 4.2.5 fully compatible with PHP 7? I'm guessing 'no', and if that is the case, is the solution reverting back to PHP 5 (I believe that was what we were running)?
 

we_are_borg

Administrator
Joined
Jan 25, 2011
Messages
5,371
This is a huge thread, and I apologize in advance for asking the following given that it's likely been asked/addressed somewhere in the previous 161 posts!

We just upgraded from 4.2.4 to 4.2.5. Our host (forum owner) said that he ended up having to upgrade PHP (I've asked him why; what was requiring him to do so), but regardless, we are now on PHP 7 and we are experiencing minor issues: inline images not displaying; smilies window closing after clicking on a smilie; posts submissions resulting in a blank page, necessitating pressing the URL refresh, resulting in the ubiquitous "
Are you sure you want to send a form again?" and subsequent 'double posting' message. My guess is that we will discover additional issues.

Is 4.2.5 fully compatible with PHP 7? I'm guessing 'no', and if that is the case, is the solution reverting back to PHP 5 (I believe that was what we were running)?
Well you can better ask Paul M or BirdOPrey5 they know the limits of the versions and what you’ll need to do.
 

Snowhog

Retired in MN
Joined
Aug 12, 2017
Messages
12
With PHP 7.0 - Yes.
With PHP 7.1 - Yes.
With PHP 7.2 - No.
Thank you. We are now running PHP 7.0.27-1+ubuntu14.04.1+deb.sury.org+1, and as I posted, we are experiences issues.

We do have a lot of MOD's, many custom written for me by vBulletin.org members who are now here. Not sure how many of those MOD's may or may not be fully PHP 7 compatible.

The one issue that I'm sure isn't created by a MOD is the posting problem. Hit the Post button and you get a blank page (the post actually gets posted, but you aren't returned to the page you were on; just a blank screen). If we can get that fixed, I'll then start looking at our MOD's, disabling them all and activating them one at a time and seeing if any issues get presented.
 

cellarius

Aspirant
Joined
Sep 6, 2017
Messages
30
The one issue that I'm sure isn't created by a MOD is the posting problem. Hit the Post button and you get a blank page (the post actually gets posted, but you aren't returned to the page you were on; just a blank screen). If we can get that fixed, I'll then start looking at our MOD's, disabling them all and activating them one at a time and seeing if any issues get presented.
Are you really sure? Better double-check. That sounds like a classical addon-related issue (even a warning printed to the screen prevents the page refresh, due to AJAX you wouldn't necessarily see it).
 

Will_Watts

Habitué
Joined
Mar 1, 2013
Messages
1,080
We're on PHP 7.1 running vB 4.2.5 with no problems. We hide warnings, but all the site functionality is working correctly.

I would try testing this by disabling all add-ons and see if you still get the same issues. You can disable hooks in config.php as the easiest way to do this.

If the issue disappears, try disabling add ons one by one until you find the problem add-on.
 

Snowhog

Retired in MN
Joined
Aug 12, 2017
Messages
12
Are you really sure? Better double-check. That sounds like a classical addon-related issue (even a warning printed to the screen prevents the page refresh, due to AJAX you wouldn't necessarily see it).
You are correct, and not correct. ;)

It turns out that disabling the tapatalk plugin fixed the blank page posting issue, but in fact, it wasn't the plugin that was the root cause; it was PHP 7.0.27-1+ubuntu14.04.1+deb.sury.org+1 that we had upgraded to. Our forum host/owner downgraded PHP to 5.6.33-1+ubuntu14.04.1+deb.sury.org+1 last night, and so far, 'everything' we were experiencing as anomalous behavior appears to have been resolved.
 

cellarius

Aspirant
Joined
Sep 6, 2017
Messages
30
So it was the plugin after all. (of course a PHP downgrade will resolve plugin PHP incompatibility issues - but that's still not a php, but a plugin issue)
 

Snowhog

Retired in MN
Joined
Aug 12, 2017
Messages
12
Hehe. Okay, yes, I agree; it was the tapatalk plugins 'PHP incompatibility' that was the problem.
 

Paul M

Limeade Addict
Joined
Jun 26, 2006
Messages
3,852
but in fact, it wasn't the plugin that was the root cause; it was PHP
Nope, it wasnt php, its the plugin thats not compatible with php 7. You will likely get that issue with a few older plugins.
 

djbaxter

Tazmanian Veteran
Joined
Jun 6, 2006
Messages
10,485
If you still want to use Tapatalk, upgrade the Tapatalk plugin. The latest version(s) work with vB 4.2.5 and either PHP 5.6.x or PHP 7.1.x
 

Snowhog

Retired in MN
Joined
Aug 12, 2017
Messages
12
If you still want to use Tapatalk, upgrade the Tapatalk plugin. The latest version(s) work with vB 4.2.5 and either PHP 5.6.x or PHP 7.1.x
I already updated Tapatalk after we upgraded vBulletin to 4.2.5. The Tapatalk plugin is version 5.6.14, which according to post #167 at https://www.tapatalk.com/groups/tapatalksupport/tapatalk-for-vbulletin-plugin-release-announcement-t4104-s160.html, posted by MoleDJ, is the latest version for vBulletin 4.*. It's not compatible with the version of PHP 7 we upgraded to. It does work with PHP 5.6 that we downgraded to however.
 

djbaxter

Tazmanian Veteran
Joined
Jun 6, 2006
Messages
10,485
Working fine on two forums for me, one 5.6.x and one 7.1.x as stated above.
 
Top