Title: PHP Strict Standards:  Non-static method PHPPC::get_option()
Last modified: August 30, 2016

---

# PHP Strict Standards: Non-static method PHPPC::get_option()

 *  [vahost](https://wordpress.org/support/users/vahost/)
 * (@vahost)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-strict-standards-non-static-method-phppcget_option/)
 * I was debugging something else and discovered a bug in your plugin in the process.
   In debug mode, it generated the following errors from debug.log:
 * [19-Jul-2015 16:02:17 UTC] PHP Strict Standards: call_user_func_array() expects
   parameter 1 to be a valid callback, non-static method PHPPC::register_admin_menu()
   should not be called statically in /home/omg/public_html/wp-includes/plugin.php
   on line 496
    [19-Jul-2015 16:02:30 UTC] PHP Strict Standards: call_user_func_array()
   expects parameter 1 to be a valid callback, non-static method PHPPC::register_admin_menu()
   should not be called statically in /home/omg/public_html/wp-includes/plugin.php
   on line 496 [19-Jul-2015 16:02:30 UTC] PHP Strict Standards: call_user_func_array()
   expects parameter 1 to be a valid callback, non-static method PHPPC::register_stylesheet()
   should not be called statically in /home/omg/public_html/wp-includes/plugin.php
   on line 496 [19-Jul-2015 16:02:30 UTC] PHP Strict Standards: Non-static method
   PHPPC::get_option() should not be called statically in /home/omg/public_html/
   wp-content/plugins/php-code-for-posts/PHPPostCode.php on line 212 [19-Jul-2015
   16:02:30 UTC] PHP Strict Standards: call_user_func_array() expects parameter 
   1 to be a valid callback, non-static method PHPPC::register_script() should not
   be called statically in /home/omg/public_html/wp-includes/plugin.php on line 
   496 [19-Jul-2015 16:02:30 UTC] PHP Strict Standards: Non-static method PHPPC::
   get_option() should not be called statically in /home/omg/public_html/wp-content/
   plugins/php-code-for-posts/PHPPostCode.php on line 228 [19-Jul-2015 16:02:30 
   UTC] PHP Strict Standards: call_user_func_array() expects parameter 1 to be a
   valid callback, non-static method PHPPC::do_admin_menu() should not be called
   statically in /home/omg/public_html/wp-includes/plugin.php on line 496 [19-Jul-
   2015 16:02:30 UTC] PHP Strict Standards: Non-static method PHPPC::check_post_vars()
   should not be called statically in /home/omg/public_html/wp-content/plugins/php-
   code-for-posts/PHPPostCode.php on line 288 [19-Jul-2015 16:02:30 UTC] PHP Strict
   Standards: Non-static method PHPPC::do_admin_menu_main() should not be called
   statically in /home/omg/public_html/wp-content/plugins/php-code-for-posts/PHPPostCode.
   php on line 308 [19-Jul-2015 16:02:30 UTC] PHP Strict Standards: Non-static method
   PHPPC::get_option() should not be called statically in /home/omg/public_html/
   wp-content/plugins/php-code-for-posts/PHPPostCode.php on line 646
 * [https://wordpress.org/plugins/php-code-for-posts/](https://wordpress.org/plugins/php-code-for-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [vahost](https://wordpress.org/support/users/vahost/)
 * (@vahost)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-strict-standards-non-static-method-phppcget_option/#post-6342560)
 * I was wondering if you plan to do anything about this bug?

Viewing 1 replies (of 1 total)

The topic ‘PHP Strict Standards: Non-static method PHPPC::get_option()’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-code-for-posts_0d1022.svg)
 * [PHP Code for posts](https://wordpress.org/plugins/php-code-for-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-for-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-for-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-for-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-for-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-for-posts/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [vahost](https://wordpress.org/support/users/vahost/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/php-strict-standards-non-static-method-phppcget_option/#post-6342560)
 * Status: not resolved