Text fopen(); gives 503 error (3 posts)

  1. alexi02
    Posted 8 years ago #

    Hi all,

    On my WordPress 2.2.1 blog I'm trying to post some PHP code examples on using files in PHP.

    I am trying to post the text "fopen($filename, 'a');" but whenever I post this text or any other text like "fopen();" in a new post I get a 503 error saying:

    Service Temporarily Unavailable

    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

    I'm unsure as to why WordPress is trying to perform this fopen command even though I have it wrapped around a [php] [/php] code bracket (iG:Syntax Hiliter) and it should not parse any PHP code but rather display the code only.

    If anyone has any ideas or solutions they would be much appreciated.


  2. whooami
    Posted 8 years ago #

    mod_security .. you can double check by seeing if you can post the word fopen in a comment. If you cant, that confirms it.

    you can disable mod_security for your entire wp-admin area or on a file by file basis. Ive covered this elsewhere so Ill just point out those posts and let you read those


    those posts should cover just about every permutation possible for disabling it.

  3. alexi02
    Posted 8 years ago #

    Thank you whooami for that information about mod_security. It's now working, cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic