Title: Strict Standards Errors with PHP 5.4
Last modified: August 21, 2016

---

# Strict Standards Errors with PHP 5.4

 *  Resolved [ram108](https://wordpress.org/support/users/ram108/)
 * (@ram108)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/)
 *     ```
       Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method easyFancyBox::enqueue_styles() should not be called statically in /.../wp-includes/plugin.php on line 429
   
       Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method easyFancyBox::register_scripts() should not be called statically in /.../wp-includes/plugin.php on line 429
   
       Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method easyFancyBox::main_script() should not be called statically in /.../wp-includes/plugin.php on line 429
   
       Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method easyFancyBox::on_ready() should not be called statically in /.../wp-includes/plugin.php on line 429
       ```
   
 * When I deactivate the plugin, these errors do not appear.
 * [http://wordpress.org/plugins/easy-fancybox/](http://wordpress.org/plugins/easy-fancybox/)

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

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276512)
 * Hi ram108, could you test the development version from [http://wordpress.org/plugins/easy-fancybox/developers/](http://wordpress.org/plugins/easy-fancybox/developers/)(
   under Other Versions) ? It should no longer have these warnings… Please let me
   know if you still see them or see other warnings instead 🙂
 *  Thread Starter [ram108](https://wordpress.org/support/users/ram108/)
 * (@ram108)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276519)
 * Ravan, thank you. I have new errors with development version on activation:
 *     ```
       Strict Standards: Non-static method easyFancyBox::register_settings() should not be called statically in /.../wp-content/plugins/easy-fancybox/easy-fancybox-class.php on line 532
   
       Strict Standards: Non-static method easyFancyBox::register_settings() should not be called statically in /.../wp-content/plugins/easy-fancybox/easy-fancybox-class.php on line 315
   
       Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method easyFancyBox::add_action_link() should not be called statically in /.../wp-includes/plugin.php on line 199
       ```
   
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276522)
 * OK, I treated these two functions the same way in the new dev version. Could 
   you install that one? And if you find any more of these errors, please let me
   know 🙂
 *  Thread Starter [ram108](https://wordpress.org/support/users/ram108/)
 * (@ram108)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276524)
 * There are no errors on plugin activation now but still one error on every blog
   page:
 * `Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback,
   non-static method easyFancyBox::main_script() should not be called statically
   in /../wp-includes/plugin.php on line 429`
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276526)
 * Uploading fix now… You’ve been VERY helpful. Thanks! 🙂
 *  Thread Starter [ram108](https://wordpress.org/support/users/ram108/)
 * (@ram108)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276528)
 * Something is wrong again. With last version there are no errors. But no fancybox
   apearing, plain image is shown at the end of the document.
 *  Thread Starter [ram108](https://wordpress.org/support/users/ram108/)
 * (@ram108)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276529)
 * Can you check please, I sent you email at your site contact form.
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276530)
 * Will have to test… Can you share a link to your site?
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276531)
 * Hang on… I found it. Submitting fix now 🙂
 *  [OnTrack](https://wordpress.org/support/users/ecomlearning/)
 * (@ecomlearning)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276592)
 * Just wanted to add to this.
    I’ve just loaded the dev version 1.5.6 but, while
   fewer errors, I still have a page full.
 * On the Settings>Media page:
    Strict Standards: call_user_func() expects parameter
   1 to be a valid callback, non-static method easyFancyBox::settings_section() 
   should not be called statically in …./wp-admin/includes/template.php on line 
   1139 Strict Standards: call_user_func() expects parameter 1 to be a valid callback,
   non-static method easyFancyBox::settings_fields() should not be called statically
   in …./wp-admin/includes/template.php on line 1176 Strict Standards: Non-static
   method easyFancyBox::settings_fields() should not be called statically in …./
   wp-content/plugins/easy-fancybox/easy-fancybox-class.php on line 352
 * And so on.
 * Some info that may be helpful:
    WP Version: WP 3.7.1 Web Server Info: Apache 
   PHP Version: 5.4.14 MySQL Version: 5.0.95-log WP Memory Limit: 64 MB WP Debug
   Mode: Yes
 * This is on a development site so if you need me to do some testing I’d be happy
   to help.
 * Cheers.
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276593)
 * Hi ecomlearning, thankd for reporting. Just made these two methods static too.
   Could you try the new dev version? You can replace only easy-fancybox-class.php
   if you want 🙂
 *  [OnTrack](https://wordpress.org/support/users/ecomlearning/)
 * (@ecomlearning)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276594)
 * RavanH, Thanks for the response.
    Seems fine on my system, warnings on the Media
   screen have gone, back to nice neat settings screen.
 * Cheers.

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

The topic ‘Strict Standards Errors with PHP 5.4’ is closed to new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [OnTrack](https://wordpress.org/support/users/ecomlearning/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/strict-standards-errors-with-php-54/#post-4276594)
 * Status: resolved