Allow PHP in Posts and Pages
PHP warning after upgrade to WordPress 3.6 - (3 posts)

  1. GaryStainburn
    Posted 2 years ago #

    This morning I upgraded to WordPress 3.6.

    Now I'm getting a number of Strict Standards warnings, including the following:

    Strict Standards: Non-static method allow_php_in_posts::option_get() should not be called statically in /home/wp-stainburn/public_html/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php on line 307

    As the plugin has not been upgraded with WP I don't know if the issue is with WP or the plugin


  2. torkild
    Posted 2 years ago #

    I have the same problem.
    I am using WP 3.6.1 and it does not work at all.

  3. BackuPs
    Posted 1 year ago #


    open allowphp.php and change line 290 in

    		static function option_get(){

    the you will probably get a new error on line 199 but the function is on line 395 in that file which you also need to change to

    		static function shortcode_advanced($args){

    Ps repeat for all the functions for which you get the same message in the admin backend.

    lookup the function in the file called allowphp.php by its name as mentions after the :: in the notifciation message and add the word 'static' in front of each function for which you get the error message,

    if i did count correctly total 16 instances need to be set to static

    Let me know if that works.

    maybe this for the author so he can change it in the code permanently



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Allow PHP in Posts and Pages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.