wpsnoop: fix Grain theme conflicts, errors & issues

When the theme Grain 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 Grain, plus learn which plugins and/or themes could be in conflict with Grain.


Troubleshooting theme and plugin conflicts is easier when you know what Grain 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 Grain

Get professional support for Grain here

When you need professional help with WordPress: get help here


What does Grain version 0.0.7.7 add to WordPress? Answers Here.

This is an automatically generated report - it is possible for Grain to perform differently in your installation, previous versions before 0.0.7.7 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 0.0.7.7 of Grain behaves when installed and removed on a clean installation of WordPress.

We have not tested individual shortcodes, features or settings of this theme 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 Grain by clicking here.

Our testing covered the free version of this theme 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 Grain add to WordPress?

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

Type & Path Size Conflicts
wp-content/themes/grain/ 3.25MB No known conflicts with other themes or plugins.
wp-content/themes/grain/404.php 570.00B No known conflicts with other themes or plugins.
wp-content/themes/grain/archive.php 3.52kB No known conflicts with other themes or plugins.
wp-content/themes/grain/attachment.php 4.52kB No known conflicts with other themes or plugins.
wp-content/themes/grain/author.php 3.34kB No known conflicts with other themes or plugins.
wp-content/themes/grain/category.php 3.27kB No known conflicts with other themes or plugins.
wp-content/themes/grain/comments.php 2.41kB No known conflicts with other themes or plugins.
wp-content/themes/grain/custom.css 28.00B No known conflicts with other themes or plugins.
wp-content/themes/grain/editor-style.css 3.46kB No known conflicts with other themes or plugins.
wp-content/themes/grain/footer.php 1.54kB No known conflicts with other themes or plugins.
wp-content/themes/grain/functions.php 11.53kB No known conflicts with other themes or plugins.
wp-content/themes/grain/header.php 2.87kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/ 3.08MB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/backgrounds/ 209.33kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/backgrounds/bluebg.png 62.67kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/backgrounds/bright-bluebg.png 23.71kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/backgrounds/greenbg.png 82.94kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/backgrounds/red-yellowbg.png 10.36kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/backgrounds/redbg.png 29.65kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/ 2.87MB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/cat-thumbnail.png 16.15kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/cat.png 260.08kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/grass-thumbnail.png 31.55kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/grass.png 523.00kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/leaf-thumbnail.png 26.44kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/leaf.png 329.44kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/mount-thumbnail.png 21.31kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/mount.png 276.23kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/path-thumbnail.png 26.93kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/path.png 405.33kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/scene-thumbnail.png 19.20kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/scene.png 293.12kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/sky-thumbnail.png 22.93kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/sky.png 376.96kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/sunset-thumbnail.png 18.81kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/headers/sunset.png 290.03kB No known conflicts with other themes or plugins.
wp-content/themes/grain/images/rss.png 3.37kB No known conflicts with other themes or plugins.
wp-content/themes/grain/index.php 3.19kB No known conflicts with other themes or plugins.
wp-content/themes/grain/license.txt 14.77kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options.php 2.25kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/ 36.21kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/css/ 3.98kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/css/grain-options-style.css 3.98kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/grain-options-framework.php 9.27kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/grain-options-interface.php 4.40kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/grain-options-medialibrary-uploader.php 8.78kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/grain-options-sanitize.php 699.00B No known conflicts with other themes or plugins.
wp-content/themes/grain/options/js/ 9.10kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/js/grain-options-custom.js 2.67kB No known conflicts with other themes or plugins.
wp-content/themes/grain/options/js/grain-uploader.js 6.43kB No known conflicts with other themes or plugins.
wp-content/themes/grain/page.php 724.00B No known conflicts with other themes or plugins.
wp-content/themes/grain/readme.txt 334.00B No known conflicts with other themes or plugins.
wp-content/themes/grain/screenshot.png 61.95kB No known conflicts with other themes or plugins.
wp-content/themes/grain/search.php 3.64kB No known conflicts with other themes or plugins.
wp-content/themes/grain/sidebar.php 878.00B No known conflicts with other themes or plugins.
wp-content/themes/grain/single.php 3.66kB No known conflicts with other themes or plugins.
wp-content/themes/grain/style.css 12.67kB No known conflicts with other themes or plugins.
wp-content/themes/grain/tag.php 3.03kB No known conflicts with other themes or plugins.

Which new shortcodes does Grain add to WordPress?

Which new database tables are created by the WordPress theme Grain?

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

Option Name   Known Conflicts
current_theme Potential conflict with 8753 plugins or themes
theme_mods_twentytwentytwo Potential conflict with 8767 plugins or themes
theme_switched Potential conflict with 8753 plugins or themes
theme_mods_grain The theme_mods_grain option doesn't have any known conflicts with other themes or plugins.

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

What new PHP functions does Grain declare when it is active?

Function   Conflicts Common Errors
of_get_default_values 71 conflicts Fatal error: Cannot redeclare of_get_default_values()
of_sanitize_enum 72 conflicts Fatal error: Cannot redeclare of_sanitize_enum()
of_sanitize_upload 72 conflicts Fatal error: Cannot redeclare of_sanitize_upload()
grain_add_page 0 conflicts Fatal error: Cannot redeclare grain_add_page()
grain_admin_header_style 0 conflicts Fatal error: Cannot redeclare grain_admin_header_style()
grain_adminbar 0 conflicts Fatal error: Cannot redeclare grain_adminbar()
grain_cats_meow 0 conflicts Fatal error: Cannot redeclare grain_cats_meow()
grain_commenter_link 0 conflicts Fatal error: Cannot redeclare grain_commenter_link()
grain_custom_pings 0 conflicts Fatal error: Cannot redeclare grain_custom_pings()
grain_custom_scripts 0 conflicts Fatal error: Cannot redeclare grain_custom_scripts()
grain_excerpt_length 0 conflicts Fatal error: Cannot redeclare grain_excerpt_length()
grain_excerpt_more 0 conflicts Fatal error: Cannot redeclare grain_excerpt_more()
grain_get_option 0 conflicts Fatal error: Cannot redeclare grain_get_option()
grain_get_page_number 0 conflicts Fatal error: Cannot redeclare grain_get_page_number()
grain_init 0 conflicts Fatal error: Cannot redeclare grain_init()
grain_is_sidebar_active 0 conflicts Fatal error: Cannot redeclare grain_is_sidebar_active()
grain_load_sanitization 0 conflicts Fatal error: Cannot redeclare grain_load_sanitization()
grain_load_scripts 0 conflicts Fatal error: Cannot redeclare grain_load_scripts()
grain_load_styles 0 conflicts Fatal error: Cannot redeclare grain_load_styles()
grain_page 0 conflicts Fatal error: Cannot redeclare grain_page()
grain_post_image_html 0 conflicts Fatal error: Cannot redeclare grain_post_image_html()
grain_rolescheck 0 conflicts Fatal error: Cannot redeclare grain_rolescheck()
grain_setdefaults 0 conflicts Fatal error: Cannot redeclare grain_setdefaults()
grain_setup 0 conflicts Fatal error: Cannot redeclare grain_setup()
grain_styles 0 conflicts Fatal error: Cannot redeclare grain_styles()
grain_tag_ur_it 0 conflicts Fatal error: Cannot redeclare grain_tag_ur_it()
grain_validate 0 conflicts Fatal error: Cannot redeclare grain_validate()
grain_widgets_init 0 conflicts Fatal error: Cannot redeclare grain_widgets_init()

Using Grain 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 Grain from the command line with WP-CLI

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

wp theme install grain


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

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

wp theme install grain --activate


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

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

wp theme install grain --force


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

wp theme update grain


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

wp theme delete grain --force

Where can you download earlier versions of Grain?

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 Grain 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 Grain

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 Grain. Different versions of WordPress could implement the features of this plugin in slightly different ways as well.