Support » Plugin: PHP Code for posts » Does not work with provided example

  • Provided example code:

    global $PHPPC;
    $PHPPC->$_vars["myvaridentifier"] = $myvar;

    When page is opened with shortcode, it crashes the site:

    Fatal error: Cannot access empty property in …/wp-content/plugins/php-code-for-posts/PHPPostCode.php(85) : eval()’d code on line 3

Viewing 1 replies (of 1 total)
  • Plugin Author Jamie Fraser


    Hi onyerleft,

    This is purely a mistake in the readme;

    It should read:

    global $PHPPC;
    $PHPPC->_vars["myvaridentifier"] = $myvar;


    global $PHPPC;
    $PHPPC::$_vars["myvaridentifier"] = $myvar;

    Both should work

Viewing 1 replies (of 1 total)
  • The topic ‘Does not work with provided example’ is closed to new replies.