Resolving Common Issues with the Disable Comments Plugin
Content
The Disable Comments plugin is a powerful tool for managing and removing the comment system from your WordPress site. However, like any software, users may occasionally encounter issues. This guide compiles the most common problems reported by the community and provides clear, step-by-step solutions to get your site back on track.
1. Update and Installation Failures
Users sometimes report errors during plugin installation or updates, such as "Plugin update failed" or "Could not remove the old plugin."
Why it happens: This is almost always a file permissions issue on your web server. The WordPress application does not have the necessary rights to delete the old plugin files or write the new ones.
Solution: The most reliable fix is to contact your web hosting provider and ask them to correct the file permissions for your WordPress installation. Alternatively, if you have server access, you can use an FTP client (like FileZilla) or your hosting control panel's file manager to manually delete the wp-content/plugins/disable-comments/ folder. You can then install a fresh copy of the plugin.
2. PHP Errors and Warnings
Errors such as "Trying to get property 'post_type' of non-object" or "array_unshift() expects parameter 1 to be array" may appear in your server logs or on-screen.
Why it happens: These notices often occur when the plugin code expects a certain variable to be an object or array, but it is instead null or a different data type. This can happen on pages that are dynamically generated by other plugins or themes.
Solution: The development team for Disable Comments is typically very responsive to these reports and releases patches quickly. First, ensure your plugin is updated to the latest version, as the fix may already be available. If the error persists on the latest version, check the plugin's official support forum for any existing threads or patches related to the specific error.
3. Conflicts with Other Plugins or Themes
The plugin might sometimes conflict with other elements of your site, such as causing a calendar plugin's menu item to disappear, breaking a syntax highlighter in the editor, or interfering with a payment form's functionality.
Why it happens: WordPress has many interconnected parts. A plugin that modifies core behaviors, like the admin menu or post types, can sometimes have unintended side effects on other code.
Solution: The standard troubleshooting process is key here:
- Disable all other plugins. Switch to a default WordPress theme (like Twenty Twenty-One).
- Check if the problem persists. If it stops, you know a conflict exists.
- Re-enable elements one by one, checking each time, until you find the specific plugin or theme causing the conflict.
4. Comments or Spam Still Getting Through
Even with comments disabled, some spam may still arrive via email notification or appear in the database.
Why it happens: Spambots can attempt to submit comments through other channels beyond the standard web form, primarily XML-RPC and the WordPress REST API.
Solution: Within the Disable Comments settings, navigate to the "Extra" section. Ensure you have enabled both "Disable Comments via REST API" and "Disable Comments via XML-RPC". These options are crucial for blocking all avenues of comment submission.
5. Gravatar Requests Continue
Even in persistent mode, your site may still make requests to gravatar.com, slowing down page loads.
Why it happens: WordPress uses Gravatars for more than just comments; they are integrated into user profiles, post author bios, and the admin area. Disabling this core functionality is beyond the scope of the Disable Comments plugin.
Solution: To block Gravatar requests, you will need a dedicated solution. Consider using a separate plugin designed for this purpose, such as "Disable User Gravatar" or "Add New Default Avatar."
6. Persistent Admin Notifications
A feedback request message ("Want to help make Disable Comments even better?") may reappear frequently after dismissal.
Solution: This is a known bug that has been addressed by the plugin's developers. Simply updating the Disable Comments plugin to the latest version should permanently resolve this recurring notification.
General Troubleshooting Tips
- Clear Your Cache: If you use a caching plugin or server-level cache, clear it entirely after making any changes to your settings. A stale cache is a common cause of unexpected behavior.
- Check Error Logs: For critical errors (like a 500 Internal Server Error after an update), your server's PHP error log is the most important source of information. Your web host can help you access these logs.
- Manual Plugin Removal: If your site crashes and you cannot access the admin dashboard, use FTP or your host's file manager to delete the
disable-commentsfolder fromwp-content/plugins/. This will immediately deactivate the plugin and often restore site access.
By following these steps, you can resolve the vast majority of issues encountered with the Disable Comments plugin. For more specific or persistent problems, the WordPress.org support forums are an excellent resource where the plugin's team and community actively provide help.
Related Support Threads Support
-
Blank screen after saving posts and pageshttps://wordpress.org/support/topic/blank-screen-after-saving-posts-and-pages/
-
[Plugin: Disable Comments] I am getting numerous harrasing emails…https://wordpress.org/support/topic/plugin-disable-comments-i-am-getting-numerous-harrasing-emails/
-
Save Changes Button Not Workinghttps://wordpress.org/support/topic/save-changes-button-not-working-9/
-
Gutenberg error: `Block “core/latest-comments” is not registered`https://wordpress.org/support/topic/gutenberg-error-block-core-latest-comments-is-not-registered/
-
Unable to edit "Close Comments Days Old" settingshttps://wordpress.org/support/topic/unable-to-edit-close-comments-days-old-settings/
-
Betheme Theme conflicthttps://wordpress.org/support/topic/betheme-theme-conflict/
-
PHP Notice: Trying to get property ‘post_type’ of non-objecthttps://wordpress.org/support/topic/php-notice-trying-to-get-property-post_type-of-non-object-2/
-
Syntax error in 1.4.1https://wordpress.org/support/topic/syntax-error-in-141/
-
Want to help make Disable Comments even betterhttps://wordpress.org/support/topic/want-to-help-make-disable-comments-even-better/
-
Disable Comments and WordPress 5.4?https://wordpress.org/support/topic/disable-comments-and-wordpress-5-4/
-
Incorrect comments alert when using The Events Calendarhttps://wordpress.org/support/topic/incorrect-comments-alert-when-using-the-events-calendar/
-
PHP 8.2 compatibilityhttps://wordpress.org/support/topic/php-8-2-compatibility-3/
-
WordPress still connecting with gravatar.comhttps://wordpress.org/support/topic/wordpress-still-connecting-with-gravatarcom/
-
Warning: Attempt to read property “post_type” on nullhttps://wordpress.org/support/topic/warning-attempt-to-read-property-post_type-on-null/
-
PHP Error (informational)https://wordpress.org/support/topic/php-error-informational/
-
Comments RSS feed still therehttps://wordpress.org/support/topic/comments-rss-feed-still-there/
-
Gravatar scripts still active even after plugin activehttps://wordpress.org/support/topic/gravatar-scripts-still-active-even-after-plugin-active/
-
Disable comment plugin injects potentially harmful script from CloudFront?https://wordpress.org/support/topic/disable-comment-plugin-injects-potentially-harmful-script-from-cloudfront/
-
JavaScript Error in Adminhttps://wordpress.org/support/topic/javascript-error-in-admin-2/
-
Gravatar Disappeared?https://wordpress.org/support/topic/gravatar-disappeared-2/
-
jQuery Errorhttps://wordpress.org/support/topic/jquery-error-43/
-
Update caused sidebar to appear below contenthttps://wordpress.org/support/topic/update-caused-sidebar-to-appear-below-content/
-
Does This Block Scripts & 'Bots?https://wordpress.org/support/topic/does-this-block-scripts-bots/
-
[Plugin: Disable Comments] Conflict with plugin WP Calendarhttps://wordpress.org/support/topic/plugin-disable-comments-conflict-with-plugin-wp-calendar/
-
Disable Comments 1.10.0 breaks YOAST SEOhttps://wordpress.org/support/topic/disable-comments-1-10-0-breaks-yoas-seo/
-
Error with Gutenberg Gallerieshttps://wordpress.org/support/topic/error-with-gutenberg-galleries/
-
WP-CLI PHP 8.2 deprecationhttps://wordpress.org/support/topic/wp-cli-php-8-2-deprecation/
-
Still see the occasional comment notificationhttps://wordpress.org/support/topic/still-see-the-occasional-comment-notification/
-
conflic with elementor Prohttps://wordpress.org/support/topic/conflic-with-elementor-pro/
-
Plugin delete access to feed pagehttps://wordpress.org/support/topic/plugin-delete-access-to-feed-page/
-
Weirdness with Gravity Forms + PayPal on Chrome iOShttps://wordpress.org/support/topic/weirdness-with-gravity-forms-paypal-on-chrome-ios/
-
“Plugin isn’t configured” message due to compability issue with SecuPresshttps://wordpress.org/support/topic/plugin-isnt-configured-message-due-to-compability-issue-with-secupress/
-
Incomming comment-spam to custom-post-typehttps://wordpress.org/support/topic/incomming-comment-spam-to-custom-post-type/
-
Redundant js at the end of my HTMLhttps://wordpress.org/support/topic/redundant-js-at-the-end-of-my-html/
-
Accidentally deletes WooCommerce Order Notes?https://wordpress.org/support/topic/accidentally-deletes-woocommerce-order-notes/
-
Bizarre flashing URL box problem seemingly related to this pluginhttps://wordpress.org/support/topic/bizarre-flashing-url-box-problem-seemingly-related-to-this-plugin/
-
Notice keeps showing on blog admin of networkhttps://wordpress.org/support/topic/notice-keeps-showing-on-blog-admin-of-network/
-
Configuration contains hardcoded external hosted webfontshttps://wordpress.org/support/topic/configuration-contains-hardcoded-external-hosted-webfonts/
-
Comment Spam Sneaking Through on CPThttps://wordpress.org/support/topic/comment-spam-sneaking-through-on-cpt/
-
BUG: Button Disable Comments via REST API failurehttps://wordpress.org/support/topic/bug-button-disable-comments-via-rest-api-failure/
-
Latest version caused site problems Disable Comments/WordPresshttps://wordpress.org/support/topic/latest-version-caused-site-problems-disable-commentswordpress/
-
[Plugin: Disable Comments] Fatal Errorhttps://wordpress.org/support/topic/plugin-disable-comments-fatal-error/
-
Error in wp-admin: "Warning: array_key_exists()…"https://wordpress.org/support/topic/error-in-wp-admin-warning-array_key_exists/
-
Dashboard: CSS instead of jQueryhttps://wordpress.org/support/topic/dashboard-css-instead-of-jquery/
-
Stops WooCommerce order notes (from customer) when activatedhttps://wordpress.org/support/topic/stops-woocommerce-order-notes-from-customer-when-activated/
-
Removing the 'comment-reply.min.js' filehttps://wordpress.org/support/topic/removing-the-comment-replyminjs-file/
-
"Please manually invalidate…" what does this meanhttps://wordpress.org/support/topic/please-manually-invalidate-what-does-this-mean/
-
[NSFW] disable_comments_options wrong valuehttps://wordpress.org/support/topic/disable_comments_options-wrong-value/
-
Unable to update Disable commentshttps://wordpress.org/support/topic/unable-to-update-disable-comments/
-
[Plugin: Disable Comments] This Plugin is Brokenhttps://wordpress.org/support/topic/plugin-disable-comments-this-plugin-is-broken/
-
[Plugin: Disable Comments] Version number probably wrong.https://wordpress.org/support/topic/plugin-disable-comments-version-number-probably-wrong/
-
Conflict with Threaded Commentshttps://wordpress.org/support/topic/conflict-with-threaded-comments/
-
Update from 1.4 to 1.5 crashhttps://wordpress.org/support/topic/update-from-14-to-15-crash/
-
Trouble with using hook to hide Persistent Mode optionshttps://wordpress.org/support/topic/trouble-with-using-hook-to-hide-persistent-mode-options/
-
Installed on 2 WP Sites, and half script/media don't load now even after Uninstahttps://wordpress.org/support/topic/installed-on-2-wp-sites-and-half-scriptmedia-dont-load-now-even-after-uninsta/
-
WP Cron job do_pingshttps://wordpress.org/support/topic/wp-cron-job-do_pings/
-
are you compaitble with wordpress 4.6 rc2?https://wordpress.org/support/topic/are-you-compaitble-with-wordpress-46-rc2-2/
-
Trouble installinghttps://wordpress.org/support/topic/trouble-installing-18/
-
Comments Are Still Getting Throughhttps://wordpress.org/support/topic/comments-are-still-getting-through/
-
Upgrading to 0.9 crashed whole wordpress environmenthttps://wordpress.org/support/topic/installing-09-crashed-whole-wordpress-environment/
-
File different in Word Press sourcehttps://wordpress.org/support/topic/file-different-in-word-press-source/
-
Disable comments v.1.10.1 breaks HTML Editor Syntax Highlighterhttps://wordpress.org/support/topic/disable-comments-v-1-10-1-breaks-html-editor-syntax-highlighter/
-
Do I still need Akismet?https://wordpress.org/support/topic/do-i-still-need-askimet/