WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. GaryStainburn
    Member
    Posted 7 months 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

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

  2. torkild
    Member
    Posted 7 months ago #

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

  3. BackuPs
    Member
    Posted 1 month ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.