Title: wp-comments-post.php error
Last modified: February 12, 2022

---

# wp-comments-post.php error

 *  [Savvas Paraskevas](https://wordpress.org/support/users/ogenithikable/)
 * (@ogenithikable)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/wp-comments-post-php-error-2/)
 * Hello there,
    I have a problem with my page, I cannot publish any comment. Every
   time someone makes a comment a blank page with the address [http://agiamarinaalikou.gr/wp-comments-post.php](http://agiamarinaalikou.gr/wp-comments-post.php)
   appears and nothing happens…no comments appears in any post. I googled a little,
   I tried some thinks but nothing. Can you please help me on that? Some of the 
   things I tried:
 * 1. I made sure all plugins are all updated to their latest versions.
    2. I cleared
   cache content and disabled caching plugin via it’s settings. 3. I installed the
   WP official Health check plugin, activate the troubleshooting mode, deactivated
   all the plugins. 4. I changed the PHP version at the hosting provider. 5. I changed
   the permissions of the “wp-comments-post.php” file from 744 to 755. 6. I changed
   the theme. 7. I enabled debug ( ‘WP_DEBUG’, true ) to see what the problem is
   but nothing happened. I am not sure if I did it right.
 * Any advice?
    Thank you.
    -  This topic was modified 4 years, 2 months ago by [Savvas Paraskevas](https://wordpress.org/support/users/ogenithikable/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-comments-post-php-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/wp-comments-post-php-error-2/#post-15358669)
 * Some other ideas:
    – reset your permalinks – make sure you are running a default
   htaccess file: [https://wordpress.org/support/article/htaccess/#basic-wp](https://wordpress.org/support/article/htaccess/#basic-wp)–
   download the latest version of WordPress, and only upload the /wp-admin and /
   wp-includes folders to your server: [https://en-ca.wordpress.org/download/](https://en-ca.wordpress.org/download/)–
   what did you change your php version to? – login to your control panel and check
   your php error logs – if you set define( ‘WP_DEBUG_LOG’, true ); properly, there
   should be a file in your /wp-content/ directory called debug.log – use the logs
   from Query Monitor: [https://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)
 *  Thread Starter [Savvas Paraskevas](https://wordpress.org/support/users/ogenithikable/)
 * (@ogenithikable)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/wp-comments-post-php-error-2/#post-15359169)
 * Hello Corrina and thank you very much for your help.
    I did all these: – reset
   your permalinks: changed from “post name” to “plain”…nothing. Back to “post name…
   nothing happened. – make sure you are running a default htaccess file: my htaccess
   file: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase/
   RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond%{
   REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress–
   download the latest version of WordPress, and only upload the /wp-admin and /
   wp-includes folders to your server: Nothing happened. – what did you change your
   php version to? from 7.4.27 to 8.1.2 and back to 7.4.27 again…nothing happened.–
   login to your control panel and check your php error logs Cannot find php error
   logs in my control panel (probably because it is free host provider). – if you
   set define( ‘WP_DEBUG_LOG’, true ); properly, there should be a file in your /
   wp-content/ directory called debug.log I did it but there is no such debug.log
   file…sorry. [https://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)`
   installed it…in overview tab there are 2 warnings… 1.Persistent object cache 
   plugin not in use Speak to your web host about enabling an object cache extension
   such as Redis or Memcached 2.Opcode cache not in use Speak to your web host about
   enabling an opcode cache such as OPcache. Do you think might be something of 
   these warnings? I do not understand hot to use this plugin exactly
 * Thank you very much for your help…sorry, I know I am an idiot on these things.
    -  This reply was modified 4 years, 2 months ago by [Savvas Paraskevas](https://wordpress.org/support/users/ogenithikable/).
    -  This reply was modified 4 years, 2 months ago by [Savvas Paraskevas](https://wordpress.org/support/users/ogenithikable/).
 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/wp-comments-post-php-error-2/#post-15360293)
 * Take this file and make sure it is the same as yours:
    [https://github.com/WordPress/WordPress/blob/master/wp-comments-post.php](https://github.com/WordPress/WordPress/blob/master/wp-comments-post.php)
 * Echo out in this file to see if it is being accessed at all, i.e.
    [https://pastebin.com/X4dJ0CpN](https://pastebin.com/X4dJ0CpN)
 * Install a local server like xampp, and migrate your site so you can troubleshoot
   properly:
    [https://themeisle.com/blog/install-xampp-and-wordpress-locally/?sscid=21k6_d7zvo](https://themeisle.com/blog/install-xampp-and-wordpress-locally/?sscid=21k6_d7zvo)
   [https://en-ca.wordpress.org/plugins/all-in-one-wp-migration/](https://en-ca.wordpress.org/plugins/all-in-one-wp-migration/)
 * You really need to see your error logs.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-comments-post.php error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/wp-comments-post-php-error-2/#post-15360293)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
