Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » content area of gallery pages only displayed with 5.6 php after wp 4.9.1

  • Resolved designguide

    (@designguide)


    tonight autupdate from WP 4.9. to 4.9.1
    had to switch back to php 5.6 as
    only php 5.6 is displaying gallery pages since today

    • This topic was modified 1 year, 9 months ago by  designguide.
    • This topic was modified 1 year, 9 months ago by  designguide.
Viewing 15 replies - 1 through 15 (of 19 total)
  • same problem

    It has nothing do to with WP 4.9.1, I had this already with WP 4.9 starting two days ago.

    Same problem here, had to switch back to PHP 5.6 to get the galleries working again.

    Plugin Author Imagely

    (@imagely)

    @designguide, @rederstreet, @zebra812 – 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

    If the above is not relevant to your site please start your own topic so we can try to help you with your specific issue on your specific site.

    See https://make.wordpress.org/support/handbook/forum-welcome/#post-in-the-best-place

    Thanks!

    – Cais.

    Thanks for the info Cais. Hopefully the new PHP version will be released soon.

    Dear Cais,
    Thank you for your answer. Does this mean you are not envisaging a solution on your side for the moment ? Any idea when the new PHP source code will be distributed ?

    Plugin Author Imagely

    (@imagely)

    @rederstreet – Given the nature of the PHP bug it would require an epic refactoring of our code to address every magic method instance (as well as a few others we are seeing problems with due to the PHP bug) and as PHP has a commit for the fix already made it makes much more sense to wait for their release and/or roll back to an earlier version of PHP to correct the issue.

    Thanks!

    – Cais.

    Plugin Support edanzer

    (@edanzer)

    I also wanted to repost a longer response of my own that I added to another thread here for everyone:

    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

    Plugin Support edanzer

    (@edanzer)

    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.

    @edanzer Thank you very much for this information. I did do the latest NGG update and now the galleries show the code and no longer the sentence “We cannot display this gallery”. I am having PHP 7.1.12 on my server. Would you know when this PHP version will be fixed ? And then: Once this is done, will your latest NGG update then show the galleries again or would you have to release another NGG update again then? I am asking this because you (as per your explanations) deactivated NGG for 7.1.12 and I wonder now if it would be automatically detected by your plugin that 7.1.12 had been fixed?

    • This reply was modified 1 year, 9 months ago by  rederstreet.
    • This reply was modified 1 year, 9 months ago by  rederstreet.

    Regarding my earlier post, I think I missunderstood something: PHP 7.2.0 is the actual fix for 7.1.12, correct? In that case my earlier post would become obsolete.

    But then again, I now see posts that 7.2.0 does not seem to work either, at least for some of the users….?

    • This reply was modified 1 year, 9 months ago by  rederstreet.
    Plugin Author Imagely

    (@imagely)

    @rederstreet – The PHP 7.2.0 must be the full RELEASE version and not a release candidate (RC#, for example 7.2.0-RC6 can still expect to cause issues) as some of those versions still did not have the correct update patched into them yet.

    Thanks!

    – Cais.

    Thank you for answering Cais. I do well understand the issue with the full release of 7.2.0 but am I correct that 7.2.0 is to be considered the fix for the bug(s) in 7.1.12 ?

    Plugin Author Imagely

    (@imagely)

    @rederstreet – To the best of our expectations and understanding, we expect the PHP 7.2.x (stable release) branch to address this specific issue.

    Unfortunately, we have little control or influence over what the good folks at PHP do although we greatly appreciate them addressing this as quickly as they have.

    – Cais.

    I now have been rolled back to PHP 5.6.6.by my Webhoster and everything is fine except that I am unable to upload any new photos into my galleries. I will open a new post for that problem.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘content area of gallery pages only displayed with 5.6 php after wp 4.9.1’ is closed to new replies.