Title: Is compatible with php7?
Last modified: August 31, 2016

---

# Is compatible with php7?

 *  [mirekk](https://wordpress.org/support/users/mirekk/)
 * (@mirekk)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/is-compatible-with-php7/)
 * It is plugin full compatible with php 7?
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-7327866)
 * [@mirekk](https://wordpress.org/support/users/mirekk/) – We do a great deal of
   the development using PHP 7 and are not finding any specific issues … is there
   something that you are specifically seeing to point to an incompatibility with
   PHP 7 and not some specific environment setting?
 * Thanks!
 * – Cais.
 *  [twykr](https://wordpress.org/support/users/twykr/)
 * (@twykr)
 * [10 years ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-7328004)
 * No, NextGen Gallery does not (yet) function with PHP7.
 * The plugin is built to require PHP functionality that has been deprecated in 
   the newest version of PHP, and the developer are working on rewriting the functionality
   to support the changes (but haven’t finished yet, apparently).
 * If you need to use NextGen, or are considering upgrading a site that uses it 
   to PHP7 – I’d recommend you hold off until the NGG developers have finished recoding
   the plugin to be PHP7-compatible.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-7328005)
 * [@twykr](https://wordpress.org/support/users/twykr/) – Again, is there something
   specifically not working in PHP 7 environments? We are not seeing any issues 
   with general usage ourselves.
 * – Cais.
 *  [twykr](https://wordpress.org/support/users/twykr/)
 * (@twykr)
 * [10 years ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-7328006)
 * Hi Cais –
 * I’ve setup a fresh / clean Ubuntu 16.04 LTS box for testing my Photocrati / NextGen
   setup before I upgrade my actual hosting server, and there are plenty of errors.
   The primary one for NextGen Gallery is:
 *  Deprecated: Non-static method NextGEN_Gallery_Pro::load_product() should not
   be called statically in /-{snip path}-/wp-includes/plugin.php on line 525
 * And the same issue shows up separately on individual gallery pages (separate 
   example of the same type of deprecated code problems):
 *  Deprecated: Non-static method M_NextGen_Pro_Ecommerce::get_checkout_page_url()
   should not be called statically in /-{snip path}-/wp-content/plugins/nextgen-
   gallery-pro/modules/ecommerce/module.nextgen_pro_ecommerce.php on line 705
 * (Those are without Photocrati by the way, which is completely broken on PHP7 –
   and I realize a wholly separate issue).
 * I would note that with the latest release (v 2.1.43), I am now able to see the
   individual images for the galleries load (they didn’t previously) and get the
   lightbox functionality to trigger – although positioning is pretty off… but that
   I can fix with CSS adjustments if necessary.
 * twykr.
 *  [twykr](https://wordpress.org/support/users/twykr/)
 * (@twykr)
 * [10 years ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-7328007)
 * Addendum / update:
 * Apologies – I realized this morning that, after the last update, the issue is
   with NextGen Pro and not with NextGen Gallery itself.
 * I am now able to get it to run without the Pro enabled, although I have to reconfigure
   all of my galleries to get that to work…
 * Sorry!
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-7328008)
 * [@twykr](https://wordpress.org/support/users/twykr/) – Please contact our support
   team directly with these PHP7 concerns in NextGEN Pro via your member’s area 
   at [https://imagely.com/account/](https://imagely.com/account/)
 * We’ll still want to look into those as needed.
 * Thanks!
 * – Cais.
 *  [ossser](https://wordpress.org/support/users/ossser/)
 * (@ossser)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-8841919)
 * Hi Cais,
 * As at today, 24/02/2017 .Is Nextgen gallery compatible with PHP7 ?
 * Ossser.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-8845047)
 * [@ossser](https://wordpress.org/support/users/ossser/) – We do not have any reports
   of NextGEN Gallery not working with PHP 7.0.x, if you are seeing something specific
   you would like to report 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](https://make.wordpress.org/support/handbook/forum-welcome/#post-in-the-best-place)
 * Thanks!
 * – Cais.
 *  [coolman111](https://wordpress.org/support/users/coolman111/)
 * (@coolman111)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-8850673)
 * [@photocrati](https://wordpress.org/support/users/photocrati/) – Hi, I’m new 
   to WordPress and I have encountered a problem with NextGEN Gallery and PHP 7.1.1.
   Some messages come up on the site background, always the same, repeated like 
   this:
    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query_where() expected
   to be a reference, value given in C:\xampp\htdocs\site1\wp-includes\class-wp-
   hook.php on line 298
 * When I deactivate NextGEN Gallery, the site is normal.
    On another server with
   PHP 5.x, NextGEN Gallery works without Warnings. My developement configuration
   is: Windows 7 Home Premium SP1 WordPress 4.7.2 – Theme Twenty Fifteeen – NextGEN
   Gallery 2.1.79 running on XAMPP for Windows 7.1.1 (Control Center 3.2.2) – with
   Apache 2.4.25 – MySQL (MariaDB 10.1.21) – PHP 7.1.1
 * Can you help?
    PS: When you google the message text, you can find several websites
   running with exact the same warnings on the background area. Thanks. Coolman111

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Is compatible with php7?’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/is-compatible-with-php7/#post-8845047)
 * Status: not a support question