• 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 https://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.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Some other ideas:
    – reset your permalinks
    – make sure you are running a default htaccess file:
    https://www.ads-software.com/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.www.ads-software.com/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://www.ads-software.com/plugins/query-monitor/

    Thread Starter Savvas Paraskevas

    (@ogenithikable)

    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://www.ads-software.com/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.

    Take this file and make sure it is the same as yours:
    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

    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://en-ca.www.ads-software.com/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.