Title: PHP 7.4 Deprecated Warning in package.module.nextgen_admin.php
Last modified: July 7, 2020

---

# PHP 7.4 Deprecated Warning in package.module.nextgen_admin.php

 *  Resolved [doffine](https://wordpress.org/support/users/doffine/)
 * (@doffine)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/)
 * Hey Imagely-team,
 * we just deployed a WordPress installation containing your “WordPress Gallery 
   Plugin – NextGEN Gallery” with Duplicator Pro. There we got a Deprecation warning
   in PHP 7.4. We think that you will want to fix this.
 * Here is the warning:
 *     ```
       SCRIPT FILE TEST: /[SERVER-PATH]/wp-login.php
   
       E_DEPRECATED Unparenthesized <code>a ? b : c ? d : e</code> is deprecated. Use either <code>(a ? b : c) ? d : e</code> or <code>a ? b : (c ? d : e)</code>
       	FILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_admin/package.module.nextgen_admin.php[368]
       	--- TRACE ---
       	FUNCTION: include_once                  FILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/vendor/imagely/pope-framework/lib/class.base_module.php[70]
       	CLASS___: C_Base_Module->load           FILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/vendor/imagely/pope-framework/lib/class.component_registry.php[180]
       	CLASS___: C_Component_Registry->load_moduleFILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/product.photocrati_nextgen.php[114]
       	CLASS___: P_Photocrati_NextGen->define  FILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/vendor/imagely/pope-framework/lib/class.base_module.php[30]
       	CLASS___: C_Base_Module->__construct    FILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/product.photocrati_nextgen.php[121]
       	FUNCTION: require_once                  FILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/vendor/imagely/pope-framework/lib/class.component_registry.php[61]
       	CLASS___: C_Component_Registry->require_module_fileFILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/vendor/imagely/pope-framework/lib/class.component_registry.php[100]
       	CLASS___: C_Component_Registry->add_module_pathFILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/nggallery.php[331]
       	CLASS___: C_NextGEN_Bootstrap->_load_popeFILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/nggallery.php[173]
       	CLASS___: C_NextGEN_Bootstrap->__constructFILE: /[SERVER-PATH]/wp-content/plugins/nextgen-gallery/nggallery.php[1078]
       	FUNCTION: include_once                  FILE: /[SERVER-PATH]/wp-settings.php[371]
       	FUNCTION: require_once                  FILE: /[SERVER-PATH]/wp-config.php[116]
       	FUNCTION: require_once                  FILE: /[SERVER-PATH]/wp-load.php[37]
       	FUNCTION: require                       FILE: /[SERVER-PATH]/wp-login.php[12]
       ```
   
 * Many greetings,
    -doffine
    -  This topic was modified 5 years, 11 months ago by [doffine](https://wordpress.org/support/users/doffine/).

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

 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/#post-13093561)
 * Hi [@doffine](https://wordpress.org/support/users/doffine/),
 * Thanks for your report. We have already reached our dev team ref the warning 
   that is being displayed if using PHP 7.4 and this is going to be fixed in one
   of the next NGG updates.
 * In the meantime, you ca try to turn off these warnings by adding these lines 
   to your
    wp-config.php file:
 *     ```
       @ini_set( 'display_errors', 0 );
       define( 'WP_DEBUG_DISPLAY', false );
       ```
   
 *  Anonymous User 8804248
 * (@anonymized-8804248)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/#post-13103902)
 * Thank you.
    Will work now. regards
 *  [williampatton](https://wordpress.org/support/users/williampatton/)
 * (@williampatton)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/#post-13116346)
 * I am waiting on this next update as NGG is the only remaining blocker for us 
   moving to PHP 7.4. Is there any update available for the ETA of that release?
 * I would STRONGLY recommend that nobody disables error logging on their system
   as a way of dealing with PHP compat warnings.
    -  This reply was modified 5 years, 11 months ago by [williampatton](https://wordpress.org/support/users/williampatton/).
 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/#post-13121221)
 * Hi [@williampatton](https://wordpress.org/support/users/williampatton/),
 * We don’t have a ETA of the release where this warning is going to be fixed but
   I am assuming that will happen in one of the recent updates ( it may not get 
   included in the next update as it isn’t categorized as critical )
 *  [williampatton](https://wordpress.org/support/users/williampatton/)
 * (@williampatton)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/#post-13121297)
 * Hi [@mihaiimagely](https://wordpress.org/support/users/mihaiimagely/), I am glad
   that it is still expected in an update soon, thank you for the reply.
 * If my vote can make a difference to how critical this is considered then I would
   like to place a vote on it being expedited. The code changes are trivial to make(
   under 30 minutes of a developers time – I verified such changes myself, all that
   is needed is to add some brackets around small code blocks and it introduces 
   no backwards compatibility breakages).
 * The benefits are an increased userbase that will not suffer from PHP warnings(
   and failing code as the ternaries used in the plugin which are not compatible
   do not function with PHP 7.4).
    -  This reply was modified 5 years, 11 months ago by [williampatton](https://wordpress.org/support/users/williampatton/).
      Reason: Adding a small piece of relevant information
 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/#post-13137545)
 * Thank you so much, we have shared your feedback inside the bug report.
 *  Anonymous User 17818406
 * (@anonymized-17818406)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/#post-13391479)
 * Hi, is it finally compatible with 7.4 ?
 * Thank you!

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

The topic ‘PHP 7.4 Deprecated Warning in package.module.nextgen_admin.php’ 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/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [deprecation](https://wordpress.org/support/topic-tag/deprecation/)
 * [php 7.4](https://wordpress.org/support/topic-tag/php-7-4/)

 * 7 replies
 * 6 participants
 * Last reply from: Anonymous User 17818406
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/php-7-4-deprecated-warning-in-package-module-nextgen_admin-php/#post-13391479)
 * Status: resolved