Title: PHP Strict Standards
Last modified: August 21, 2016

---

# PHP Strict Standards

 *  [harsha](https://wordpress.org/support/users/harsha/)
 * (@harsha)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-strict-standards/)
 *     ```
       [17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Declaration of C_NextGen_Basic_Tagcloud_Installer::install() should be compatible with C_Gallery_Display_Installer::install($reset = false) in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_tagcloud/class.nextgen_basic_tagcloud_installer.php on line 21
       [17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Declaration of M_Widget::define() should be compatible with C_Component::define($context = false) in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/module.widget.php on line 54
       [17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Redefining already defined constructor for class nggdb in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/ngg-db.php on line 60
       [17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Redefining already defined constructor for class nggPostThumbnail in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/post-thumbnail.php on line 26[17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Redefining already defined constructor for class nggNavigation in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/navigation.php on line 50
       [17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Declaration of C_DataMapper_Driver_Base::define() should be compatible with C_Component::define($context = false) in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/datamapper/class.datamapper_driver_base.php on line 603
       [17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Declaration of C_DataMapper_Driver_Base::initialize() should be compatible with C_Component::initialize() in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/datamapper/class.datamapper_driver_base.php on line 603
       [17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Declaration of C_Lightbox_Library_Mapper::define() should be compatible with C_Component::define($context = false) in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/class.lightbox_library_mapper.php on line 7
       [17-Aug-2013 13:23:52 UTC] PHP Strict Standards:  Declaration of C_Lightbox_Library_Mapper::initialize() should be compatible with C_Component::initialize() in /var/www/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/class.lightbox_library_mapper.php on line 7
       ```
   
 * [http://wordpress.org/plugins/nextgen-gallery/](http://wordpress.org/plugins/nextgen-gallery/)

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

 *  [Anand Shah](https://wordpress.org/support/users/anandamd/)
 * (@anandamd)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-strict-standards/#post-4040066)
 * Bump!, Anyone? I am having the same issue as Harsha. Using WP 3.6.1 on PHP 5.4.4
   and Nextgen 2.0.23.
 * When I enable Nextgen my site’s front-end becomes inaccessible and in the logs
   I can see the same PHP Strict Standards errors that Harsha has posted. If I disable
   Nextgen my site’s front-end becomes alive.
 * One thing I noticed though is that if I am logged as admin, the front-end works
   fine, but if I am not logged in as admin the front-end is dead (by dead I mean
   I can’t access any page)
 * Thanks
 *  [WPReady](https://wordpress.org/support/users/wpready/)
 * (@wpready)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-strict-standards/#post-4040067)
 * Hi there,
    could you deactivate PHP Strict in the meantime? I know is not the
   best solution
 * [http://stackoverflow.com/questions/9983286/disabling-strict-standards-in-php-5-4](http://stackoverflow.com/questions/9983286/disabling-strict-standards-in-php-5-4)
 *  [Benjamin](https://wordpress.org/support/users/benjaminowens/)
 * (@benjaminowens)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-strict-standards/#post-4040068)
 * We’re working on removing these, but it may be another point release or two before
   it’s finished. If you’re doing development I recommend putting in your wp-config.
   php:
 * > error_reporting(E_ALL & ~E_STRICT);
 * otherwise you may want to add
 * > error_reporting(0);
 * to completely disable errors, warnings, information-notices, etc
 *  [Anand Shah](https://wordpress.org/support/users/anandamd/)
 * (@anandamd)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-strict-standards/#post-4040069)
 * [@wpready](https://wordpress.org/support/users/wpready/) and [@benjamin](https://wordpress.org/support/users/benjamin/),
   thank you guys for time. I have already tried disabling PHP Strict Standards 
   and that too doesn’t help. I followed the same thread that [@wpready](https://wordpress.org/support/users/wpready/)
   mentioned. Added the following code to .htaccess
 *     ```
       php_value display_errors 0
       php_value error_reporting 30719
       ```
   
 * another thread mentioned chaning the value of `error_reporting` to 30711 but 
   that too didn’t help. Adding `error_reporting(E_ALL & ~E_STRICT);` to wp-config.
   php also doesn’t work.
 * I also tried switching back to Nextgen version 2.0 but as soon as I switch back
   to version 2.0 the gallery links no longer work. Meaning clicking on a link that
   is pointing to a gallery doesn’t take me to the gallery page I stay on the same
   page.
 *  [techouse](https://wordpress.org/support/users/techouse/)
 * (@techouse)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-strict-standards/#post-4040077)
 * add this to your theme’s header.php
 *     ```
       // grant the error reporting only to super admins
       if (is_user_logged_in() && is_super_admin()) {
           error_reporting(-1);
       }
       else {
           error_reporting(0);
       }
       ```
   

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

The topic ‘PHP Strict Standards’ 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/)

 * 5 replies
 * 5 participants
 * Last reply from: [techouse](https://wordpress.org/support/users/techouse/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/php-strict-standards/#post-4040077)
 * Status: not resolved