wpsnoop: fix WP-PostViews plugin conflicts, errors & issues

When the plugin WP-PostViews conflicts or throws a PHP error we hope wpsnoop can help you to fix the issue quickly.


Discover which shortcodes wp-options PHP functions database tables and files are created by WP-PostViews, plus learn which plugins and/or themes could be in conflict with WP-PostViews.


Troubleshooting theme and plugin conflicts is easier when you know what WP-PostViews leaves behind after uninstalling it from a WordPress installation, there is a list down below for your convenience.

Expert advice is recommended if you are not technically proficient with PHP, MySQL etc. View support options for WP-PostViews

Get professional support for WP-PostViews here

When you need professional help with WordPress: get help here


What does WP-PostViews version 1.76.1 add to WordPress? Answers Here.

This is an automatically generated report - it is possible for WP-PostViews to perform differently in your installation, previous versions before 1.76.1 may have created a different set of shortcodes, used different function names or could have created entirely different database tables to store settings and operate. This is not an exhaustive list but shows how version 1.76.1 of WP-PostViews behaves when installed and removed on a clean installation of WordPress.

We have not tested individual shortcodes, features or settings of this plugin but instead have concentrated on the potential for obvious errors and conflicts which can occur, if you need help with the plugin in your local installation you can get WordPress help and support for WP-PostViews by clicking here.

Our testing covered the free version of this plugin there may or may not be a paid version or premium version available for purchase that unlocks additional features and could behave in a slightly or very different manner.

Which new files does WP-PostViews add to WordPress?

This section will populate with a table showing an icon, size and filepath.

Type & Path Size Conflicts
wp-content/plugins/wp-postviews/ 63.82kB No known conflicts with other themes or plugins.
wp-content/plugins/wp-postviews/postviews-cache.js 133.00B No known conflicts with other themes or plugins.
wp-content/plugins/wp-postviews/postviews-options.php 10.75kB No known conflicts with other themes or plugins.
wp-content/plugins/wp-postviews/readme.txt 7.55kB No known conflicts with other themes or plugins.
wp-content/plugins/wp-postviews/uninstall.php 772.00B No known conflicts with other themes or plugins.
wp-content/plugins/wp-postviews/wp-postviews.php 37.15kB No known conflicts with other themes or plugins.
wp-content/plugins/wp-postviews/wp-postviews.pot 7.49kB No known conflicts with other themes or plugins.

Which new shortcodes does WP-PostViews add to WordPress?

ShortCode   Known Plugin or Theme conflicts
[views] The views shortcode doesn't have any known conflicts with other themes or plugins.

Note: We have not yet checked to see if these shortcodes work as expected in pages, posts, sidebar widgets, or when set as the page title, in content, in the excert, in menus or anywhere else within a WordPress installation. A shortcode could produce errors due to parameters added when it is used, or if the plugin is updated and the format of the shortcode has changed.

Which new database tables are created by the WordPress plugin WP-PostViews?

Which new options are added to the wp-options table by WP-PostViews?

Option Name   Known Conflicts
views_options Potential conflict with 1 plugin or theme
widget_views Potential conflict with 1 plugin or theme

During use WP-PostViews may or may not create more options depending on how the plugin is configured and depending on which other themes and plugins are active in your specific hosting environment.

What new PHP functions does WP-PostViews declare when it is active?

Function   Conflicts Common Errors
add_views_fields 1 conflict Fatal error: Cannot redeclare add_views_fields()
get_most_viewed 2 conflicts Fatal error: Cannot redeclare get_most_viewed()
get_most_viewed_category 1 conflict Fatal error: Cannot redeclare get_most_viewed_category()
get_most_viewed_tag 1 conflict Fatal error: Cannot redeclare get_most_viewed_tag()
get_totalviews 1 conflict Fatal error: Cannot redeclare get_totalviews()
process_postviews 1 conflict Fatal error: Cannot redeclare process_postviews()
snippet_text 5 conflicts Fatal error: Cannot redeclare snippet_text()
the_views 1 conflict Fatal error: Cannot redeclare the_views()
views_options_parse 1 conflict Fatal error: Cannot redeclare views_options_parse()
widget_views_init 1 conflict Fatal error: Cannot redeclare widget_views_init()
add_postviews_column 0 conflicts Fatal error: Cannot redeclare add_postviews_column()
add_postviews_column_content 0 conflicts Fatal error: Cannot redeclare add_postviews_column_content()
get_least_viewed 0 conflicts Fatal error: Cannot redeclare get_least_viewed()
get_least_viewed_category 0 conflicts Fatal error: Cannot redeclare get_least_viewed_category()
get_least_viewed_tag 0 conflicts Fatal error: Cannot redeclare get_least_viewed_tag()
increment_views 0 conflicts Fatal error: Cannot redeclare increment_views()
postviews_menu 0 conflicts Fatal error: Cannot redeclare postviews_menu()
postviews_page_admin_general_stats 0 conflicts Fatal error: Cannot redeclare postviews_page_admin_general_stats()
postviews_page_admin_most_stats 0 conflicts Fatal error: Cannot redeclare postviews_page_admin_most_stats()
postviews_page_general_stats 0 conflicts Fatal error: Cannot redeclare postviews_page_general_stats()
postviews_page_most_stats 0 conflicts Fatal error: Cannot redeclare postviews_page_most_stats()
postviews_round_number 0 conflicts Fatal error: Cannot redeclare postviews_round_number()
postviews_textdomain 0 conflicts Fatal error: Cannot redeclare postviews_textdomain()
postviews_wp_stats 0 conflicts Fatal error: Cannot redeclare postviews_wp_stats()
should_views_be_displayed 0 conflicts Fatal error: Cannot redeclare should_views_be_displayed()
sort_postviews 0 conflicts Fatal error: Cannot redeclare sort_postviews()
sort_postviews_column 0 conflicts Fatal error: Cannot redeclare sort_postviews_column()
views_activation 0 conflicts Fatal error: Cannot redeclare views_activation()
views_fields 0 conflicts Fatal error: Cannot redeclare views_fields()
views_join 0 conflicts Fatal error: Cannot redeclare views_join()
views_orderby 0 conflicts Fatal error: Cannot redeclare views_orderby()
views_shortcode 0 conflicts Fatal error: Cannot redeclare views_shortcode()
views_sorting 0 conflicts Fatal error: Cannot redeclare views_sorting()
views_variables 0 conflicts Fatal error: Cannot redeclare views_variables()
views_where 0 conflicts Fatal error: Cannot redeclare views_where()
wp_postview_cache_count_enqueue 0 conflicts Fatal error: Cannot redeclare wp_postview_cache_count_enqueue()

Using WP-PostViews from the command line with WP-CLI

The following commands are provided for convenience and should only be used if you understand how WP-CLI works. These commands refer to a single WordPress instance and may need to be modified if you are working with a Multisite installation.


How to install WP-PostViews from the command line with WP-CLI

Navigate to the root of your WordPress installation and type the following command:

wp plugin install wp-postviews


How to activate WP-PostViews from the command line with WP-CLI

To immediately activate WP-PostViews after WP-CLI downloads the latest version you can use the following command:

wp plugin install wp-postviews --activate


How to reinstall WP-PostViews from the command line with WP-CLI

To force a reinstallation of WP-PostViews which overwrites the current plugin without asking for confirmation you can use the following command:

wp plugin install wp-postviews --force


How to update WP-PostViews to the latest version from the command line with WP-CLI

wp plugin update wp-postviews


How to delete WP-PostViews from the command line with WP-CLI

wp plugin delete wp-postviews

Where can you download earlier versions of WP-PostViews?

Whenever possible you should use the latest version of plugins and themes, however if you have recently updated and discovered that you need to install an earlier version you may be able to download other versions of WP-PostViews from the WordPress repository by visiting this link.

Please note that installing earlier versions of a theme or plugin is not generally a recommended course of action for most users and could re-introduce security, stability or other issues in WP-PostViews

About our testing enviroment

Tests were conducted using Apache 2.4.29, PHP 7.2 on Ubuntu 18.04, MySQL 5.7.33 and WordPress 5.9

It is very possible that different versions of PHP such as PHP 8.0, PHP 7.4, or PHP 7.3 could behave differently with WP-PostViews. Different versions of WordPress could implement the features of this plugin in slightly different ways as well.