• 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

    http://wordpress.org/plugins/allow-php-in-posts-and-pages/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem.
    I am using WP 3.6.1 and it does not work at all.

    hi

    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

    http://www.mediafire.com/download/zg9pb3jadn9tdwu/allow-php-in-posts-and-pages.zip

    Thnx

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP warning after upgrade to WordPress 3.6 –’ is closed to new replies.