Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » 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 3 months, 2 weeks ago by doffine.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support mihai-imagely

    (@mihaiimagely)

    Hi @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 );

    Thank you.
    Will work now.
    regards

    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.

    Plugin Support mihai-imagely

    (@mihaiimagely)

    Hi @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 )

    Hi @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 3 months, 1 week ago by williampatton. Reason: Adding a small piece of relevant information
    Plugin Support gabyimagely

    (@gabyimagely)

    Thank you so much, we have shared your feedback inside the bug report.

    Hi, is it finally compatible with 7.4 ?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.