Getting 503 with php version 7.0 and above
-
Hi,
All pages having nggallery shortcode in sidebar displaying 503 error and as soon i move back to php version 5.4 all seems good but with php 7.0 and above getting 503.Please help ASAP
Thanks & Regards,
AmitThe page I need help with: [log in to see the link]
-
same here.
also please fix and this bug, because i’am stuck on previous version
i have the same problem. Only works with php 5.6
Exactly the same problem here. Friends of mine too. Seems to be a major problem.
Please excuse the double post.
Here is a Link to Plesk forum that might help:
https://support.plesk.com/hc/en-us/articles/115000649345-WordPress-website-shows-503-Service-Temporarily-Unavailable-AH01075-Error-dispatching-request-toMy error log looks like this:
AH01067: Failed to read FastGCIheader
(104)Connection reset by peer: AH01075: Error dispatching request to:Webhoster says it is an library problem, not a NextGEN problem.
@amitv, @aldon, @karpin, and @sfrueh – NextGEN Gallery makes extensive use of PHP Magic Methods to encapsulate our various data models.
The latest releases of PHP, versions 7.1.12 and 7.0.26, include some changes how reference counting of strings is conducted in the __get() magic method that is breaking NextGEN and various WordPress sites. The problem is reproducible using standard PHP code, where both a subclass and it’s parent are using the __get() magic method, and are defined to return-by-reference.
A patch and commit has been accepted into the PHP source code repository but hasn’t yet been released or distributed.
More information may be found here, specifically in the comments: https://bugs.php.net/bug.php?id=75573
Although we are hoping for a new release of the relevant PHP versions to clear up this problem we are also currently recommending not using PHP versions 7.1.12 and 7.0.26 at this time.
Thanks!
– Cais.
@cais thank you for your response.
For this bug you have me any progress?
https://www.litespeedtech.com/support/forum/threads/nextgen-gallery-image-upload-error.15522/@aldon – That appears to have been addressed in the forum topic, or will be by its author. We are not involved in this issue with LiteSpeed.
Thanks!
– Cais.
Hey all – CEO of Imagely here. I wanted to post an additional note on this. The root cause for this is a bug in two specific versions of PHP. The powers that be have already patched this on the PHP side, though have not yet released it.
The nature of the bug means that it would be an epic task for us to ‘fix’ it in NextGEN Gallery. The bug relates to PHP logic that we use throughout the plugin.
All that means that we do not intend to fix it on our side, but rather wait for PHP to release its own patch.
In the meantime, we are going to push a release that deactivates most NextGEN Gallery functionality on any servers that are running the two problem versions of PHP. This fix is being tested now, and will be released in the next couple of hours.
–
As a side note, I should emphasize that the PHP bugs have ramifications well beyond NextGEN Gallery. Mixed with a variety of other products or environments, the PHP bugs can cause server crashes. We know from internal conversations that Cloudways, for example, tried updating to 7.1.12 and then rolled back due to related issues. So if your servers are running the problem versions, they *should* be rolled back, or upgraded once the patches are released – in general and not just because of NextGEN Gallery.
If you have further questions, let us know.
– Erick
I should emphasize that as far as we know, and as Cais’s comment indicates, this only affects PHP versions 7.1.12 and 7.0.26. See Cais’s link above for details. If you see it on any other version, please let us know.
Hi !
Same issue here, running PHP Version 7.0.26, have the whole website down at the moment due this problem, with the following on my error_log file:[30-Nov-2017 16:55:21 UTC] PHP Fatal error: Couldn’t execute method C_Display_Type::__get in Unknown on line 0
I’m running a bunch of sites with NextGen Galleries on 7.2.0RC6 and have the issue. The weird thing is I didn’t have a problem with it prior to updating to the latest WordPress version.
I believe PHP 7.2 was released today, however I use cpanel / WHM and it doesn’t appear that they have it packaged yet. Not sure if it is fixed with this new release.
Hi all. Update: From what we can see, including a test to confirm on our side, this issue is fixed in PHP 7.2.0, released this morning. We’ve also just released a NextGEN release that deactivates most functionality of NGG when it’s run on the two problem versions of PHP.
Not available in EasyApache4.
Annoyingly PHP 7.0.0 which I have running on a localhost installation works fine with NextGen. But you can’t get that in EasyApache4 either.
@digbymaass – Thanks for sharing…
– Cais.
Hey all – We’ve been working on this and finally have a work around for the PHP bug.
The following copy of NextGEN 2.2.20 should run with any version of PHP (including the bugged versions: 7.0.26, 7.1.12, 7.2RC6, and 7.2.0). Feel free to give it a try and let us know if you have issues.
We’d like to get a few confirmations before we release it officially.
The topic ‘Getting 503 with php version 7.0 and above’ is closed to new replies.