Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » Update: Fix for known issue with PHP 7.0.26, 7.1.12, 7.2

  • Plugin Author Imagely

    (@imagely)


    UPDATE:

    We’ve now implemented a work around that ensures NextGEN Gallery fully loads and works for specific versions of PHP that have a known bug.

    You can also download and manually install (replacing the existing current NextGEN Gallery version) the following NextGEN Gallery version. This version of NextGEN Gallery should work on any version of PHP, including the bugged versions listed below:

    https://imagely.com/wp-content/staging/nextgen-gallery.2.2.20.zip

    ORIGINAL ISSUE:

    NextGEN Gallery makes extensive use of PHP Magic Methods to encapsulate our various data models.

    The latest releases of PHP, including versions 7.0.26, 7.1.12, 7.2RC6, and 7.2.0 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. We expect that PHP will release these fixes in late December or early January.

    More information may be found here, specifically in the comments: https://bugs.php.net/bug.php?id=75573

    Because of the potential seriousness of this bug, we released two versions of NextGEN (2.2.17, 2.2.18) that simply prevent most of NextGEN Gallery from loading on servers with the problematic versions of PHP.

    By contrast, our latest version 2.2.20 implements a complete workaround/solution so that NextGEN Gallery will fully load and work with those problematic PHP versions.

    Thanks to everyone for your patience and understanding as we’ve worked through these issues caused by the latest releases of PHP.

    – Erick & The Imagely Team

    • This topic was modified 5 months, 1 week ago by  Imagely.
  • The topic ‘Update: Fix for known issue with PHP 7.0.26, 7.1.12, 7.2’ is closed to new replies.