• Resolved jmessick9

    (@jmessick9)


    I am receiving the following error after updating to the latest release:

    Strict Standards: Declaration of C_DataMapper_Driver_Base::define() should be compatible with that of C_Component::define() in /home/content/74/5020774/html/wp-content/plugins/nextgen-gallery/pope/lib/class.component_registry.php on line 939
    
    Strict Standards: Declaration of C_Lightbox_Library_Mapper::define() should be compatible with that of C_CustomPost_DataMapper_Driver::define() in /home/content/74/5020774/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/class.lightbox_library_mapper.php on line 7

    I have debug turned off in the wp-config file, I have added turing off error reporting in the php.ini and .htaccces file also. I rolled back to an older version and still receive the error.

    Any ideas on how to get this error to go away?

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jmessick9

    (@jmessick9)

    Found something on the net after one more look. Dropped it into a plugin errors are gone.

    $ignore = E_STRICT;
    if (defined('DEBUG_IGNORE_DEPRECATED') && DEBUG_IGNORE_DEPRECATED) {
        $ignore |= E_DEPRECATED;
    }
    error_reporting(E_ALL ^ $ignore);
    ini_set('log_errors', 0);
    ini_set('display_errors', 0);
    ini_set('error_log', WP_CONTENT_DIR . '/debug.log');
    Plugin Contributor photocrati

    (@photocrati)

    @jmessick9 – Thanks for sharing this work-around. Usually the “Strict Standards” messages are only shown if the error reporting is set too high and the snippet you shared is correcting for that.

    – Cais.

    @jmessick9,

    Would you mind expanding on what you mean by ‘Dropped it into a plugin’?

    Have located the script (debug-log-not-strict.php) but not sure where to put it.

    Thanks in advance for any assistance,
    Chris

    OK found the solution myself!
    Dropped it into the Plugins folder and activated on the plugin page of the wordpress backend!
    Chris

    Plugin Contributor photocrati

    (@photocrati)

    @chrisonga – Thanks for sharing your experience.

    – Cais.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Strict Standards Error’ is closed to new replies.