• Resolved cigarjack

    (@cigarjack)


    I spent about four hours trying to figure out what the heck was wrong with my comments. Out of nowhere I started getting 404 errors when trying to post comments. Turns out my host had upgraded to PHP 5.2 and I had to add a php.ini file to get comments to work again. I’m hoping I can save someone else my frustration. Here are the details.

    By default remote code inclusion is not allowed in Php 5.2. This is an important security improvement over the previous versions.

    However, some scripts may require to include remote code in order to work properly. For this purpose create a php.ini file and specify the following line:

    allow_url_include=on

    This will change the default Php directive and allow you to include remote code in your scripts. Copy this php.ini file in each directory you’d like to have the setting applied.

  • The topic ‘404 Error on wp-comments-post.php’ is closed to new replies.