WordPress.org

Ready to get started?Download WordPress

Forums

Exec-PHP plugin not working (13 posts)

  1. spellmankm
    Member
    Posted 7 years ago #

    Hi,

    I've installed Exec-PHP 3.2 plugin and have fulfilled all the requirements and even assigned the proper roles with Role Manager plugin, but it still doesn't work. Any suggestions or thoughts on how to get it to work?

    Thanks,
    spellmank

  2. thepete
    Member
    Posted 7 years ago #

    It's not working for me, either. WordPress, itself, seems to reformat my php code so that it simply displays inside a post with a space in between the "<" and the "?php" thus stopping any php from actually executing. Any ideas why this is happening?

  3. Samuel B
    moderator
    Posted 7 years ago #

    You must have the wysiwyg editor turned off for it to work.

  4. thepete
    Member
    Posted 7 years ago #

    Thanks for your reply, but I do have it turned off. I hate that thing. I like to see the actual code.

    Any other possibilities?

  5. chinaman
    Member
    Posted 7 years ago #

    I have run into the same problem. There is an extra space between the "<" and the "?php"

    I have turned of WYSIWYG as well as WordPress should correct invalidly nested XHTML automatically

    Any help much appreciated.

  6. McShelby
    Member
    Posted 7 years ago #

    Third requirement a post author must match: The author needs the 'unfiltered_html' capability. By default this is assigned to Administrators and Editors.

  7. chinaman
    Member
    Posted 7 years ago #

    Thanks McShelby. Also fulfilled that requirement:)

  8. McShelby
    Member
    Posted 7 years ago #

    Hmm, one last point: Which WordPress version are you using?

  9. dbasulto
    Member
    Posted 7 years ago #

    doesn't work for me on wp 2.1.1
    it adds <p> tags on the executed result from the php.

  10. chinaman
    Member
    Posted 7 years ago #

    Thanks McShelby. I use 2.0.7 and it seems my problem is not so much with exec-php, I updated to the latest version and that extra space was solved. Still have a slight problem with the way external rss feeds are displayed within a page but that's another thread:)

  11. McShelby
    Member
    Posted 7 years ago #

    @dbasulto: The <p> tags are added by WP not by the Exec-PHP plugin.

  12. sniffernet
    Member
    Posted 6 years ago #

    Here is the solution for 9 months of nothing.. I just did it. It's the initial version but works.

    I will improve it tomorrow.

    Download it: http://wysiwyg-php.sniffer.net/

    My PuTTY bash prompt Theme page http://elite4putty.sniffer.net and my webpage http://www.sniffer.net/

    Best wishes,
    Bruno Ratnieks

  13. Pospiech
    Member
    Posted 6 years ago #

    I experience the same problem with wp 2.3.2 and version 4.3 of php-exec. The code is output enclosed in <p> tags.

Topic Closed

This topic has been closed to new replies.

About this Topic