• I just upgraded the plugin and now I cannot do anything on my site. It just displays these error codes.

    Warning: Use of undefined constant _FILE_ – assumed ‘_FILE_’ (this will throw an Error in a future version of PHP) in …/plugins/delete-all-comments-of-website/delete-all-comments-of-wordpress-website.php on line 13

    Warning: Cannot modify header information – headers already sent by (output started at …/plugins/delete-all-comments-of-website/delete-all-comments-of-wordpress-website.php:13) in …/wp-includes/pluggable.php on line 1281

    I will probably just reinstall wordpress as I was redoing my site anyway, so this is just a warning to others and a heads up to the plugin creator.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author royalnavneet

    (@royalnavneet)

    @mheiselberg thanks for the report it will be fix and update today.
    Thanks

    When will the fix be published?

    In Version 2.6 is the bug still available.

    AH01071: Got error ‘PHP message: PHP Warning: Use of undefined constant _FILE_ – assumed ‘_FILE_’ (this will throw an Error in a future version of PHP) in /var/www/wp-content/plugins/delete-all-comments-of-website/delete-all-comments-of-wordpress-website.php on line 13′,

    Hello,

    same problem for me: Just updated the plugin on my site https://consultus.org, and now I cannot access the site anymore. When I go to the WP login page, I get:

    Warning: Use of undefined constant _FILE_ – assumed ‘_FILE_’ (this will throw an Error in a future version of PHP) in /kunden/165714_10437/webseiten/cus/wp-content/plugins/delete-all-comments-of-website/delete-all-comments-of-wordpress-website.php on line 13

    Warning: Cannot modify header information – headers already sent by (output started at /kunden/165714_10437/webseiten/cus/wp-content/plugins/delete-all-comments-of-website/delete-all-comments-of-wordpress-website.php:13) in /kunden/165714_10437/webseiten/cus/wp-includes/pluggable.php on line 1265

    Warning: Cannot modify header information – headers already sent by (output started at /kunden/165714_10437/webseiten/cus/wp-content/plugins/delete-all-comments-of-website/delete-all-comments-of-wordpress-website.php:13) in /kunden/165714_10437/webseiten/cus/wp-includes/pluggable.php on line 1268

    The site itself can still be accessed by users, but it also shows an ugly warning message on top. Please URGENTLY fix this – this is my business site! I am losing customers if the site doesn’t work properly.

    I deleted the “Delete all comments” plugin before logging out, but that didn’t help.

    @consultus deactivate the debug modus. Set it from true to false.

    See here how to do this: https://www.jaba.hosting/hrf_faq/debug-modus-aktivieren/

    @jb-1985 Thank you! But how do I do this if I can’t log into my site at https://consultus.org/cus/wp-admin/?

    @consultus via FTP.

    Download the wp-config.php, edit and upload and replace with the old wp-config.php.

    @jb-1985 Sorry to be a pest but … I checked via FTP and it turns out the debug mode is already set to “false”. So this won’t help.

    But I also noticed that the plugin “delete-all-comments-of-website” is still listed under /webseiten/cus/wp-content/plugins. What if I simply deleted that entire folder via FTP? Should solve the problem, shouldn’t it?

    Or can I do more damage?
    Cheers!

    Yes, delete the Plugin via FTP from /webseiten/cus/wp-content/plugins

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error in plugin’ is closed to new replies.