WordPress.org

Forums

Allow PHP in Posts and Pages
I can't use this plugin on multi site. (5 posts)

  1. miyuki1201
    Member
    Posted 2 years ago #

    I'm using this usable plugin.
    But it on child-site can't work.

    The following error is displayed.
    Parse error: syntax error, unexpected end of file, expecting ';' in /usr/home/web/***************.com/htdocs/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373) : eval()'d code on line 5.

    How should it be settled?

    http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/
    in detail
    following function is not working on child-site in multi-site.
    'for($i=0;$i<****;$i++){
    }'

  2. bubi
    Member
    Posted 2 years ago #

    I'm getting the same error in for loop, while if statement and plain mathematical calculations work OK. What can be done to escape error for for loop?

  3. jani74
    Member
    Posted 2 years ago #

    same here :(

  4. jani74
    Member
    Posted 2 years ago #

    solved, moved the whole php stuff into a php file and included that...

  5. dondela
    Member
    Posted 1 year ago #

    How exactly did you do that? Where did you include the php file?
    Thanks dondela

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

Tags

No tags yet.