wpsnoop: fix Prevent Files / Folders Access plugin conflicts, errors & issues

When the plugin Prevent Files / Folders Access 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 Prevent Files / Folders Access, plus learn which plugins and/or themes could be in conflict with Prevent Files / Folders Access.


Troubleshooting theme and plugin conflicts is easier when you know what Prevent Files / Folders Access 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 Prevent Files / Folders Access


What does Prevent Files / Folders Access version 2.4.3 add to WordPress? Answers Here.

This is an automatically generated report - it is possible for Prevent Files / Folders Access to perform differently in your installation, previous versions before 2.4.3 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 2.4.3 of Prevent Files / Folders Access 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 Prevent Files / Folders Access 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 Prevent Files / Folders Access add to WordPress?

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

Type & Path Size Conflicts
wp-content/plugins/prevent-file-access/ 1.45MB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/ 1.40MB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/class-media-restriction-admin.php 28.90kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/class-media-restriction-customer.php 14.48kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/css/ 229.71kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/css/bootstrap.min.css 152.11kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/css/font-awesome.min.css 28.26kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/css/jquery.dataTables.min.css 13.30kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/css/media-restriction-admin.css 4.74kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/css/phone.css 13.04kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/css/style.css 18.25kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/fonts/ 884.95kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/fonts/fontawesome-webfont.eot 74.42kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/fonts/fontawesome-webfont.svg 381.97kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/fonts/fontawesome-webfont.ttf 148.79kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/fonts/fontawesome-webfont.woff 88.03kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/fonts/fontawesome-webfont.woff2 70.08kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/fonts/FontAwesome.otf 121.66kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/images/ 64.64kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/images/flags16.png 61.80kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/images/logo.png 2.84kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/index.php 26.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/js/ 154.87kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/js/custom.js 1.71kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/js/jquery.dataTables.min.js 79.95kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/js/media-restriction-admin.js 55.74kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/js/phone.js 17.47kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/partials/ 57.40kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/partials/media-restriction-admin-display.php 49.61kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/admin/partials/media-restriction-feedback.php 7.79kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/includes/ 14.05kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/includes/class-media-restriction-activator.php 665.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/includes/class-media-restriction-deactivator.php 675.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/includes/class-media-restriction-i18n.php 972.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/includes/class-media-restriction-loader.php 4.89kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/includes/class-media-restriction.php 6.88kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/includes/index.php 26.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/index.php 26.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/languages/ No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/languages/media-restriction.pot No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/LICENSE.txt 18.00kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/media-restriction.php 2.29kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/ 6.26kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/class-media-restriction-public.php 2.67kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/css/ No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/css/media-restriction-public.css No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/images/ 3.27kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/images/logo.png 2.84kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/images/miniorange.png 446.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/index.php 26.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/js/ No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/js/media-restriction-public.js No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/partials/ 302.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/public/partials/media-restriction-public-display.php 302.00B No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/README.txt 6.08kB No known conflicts with other themes or plugins.
wp-content/plugins/prevent-file-access/uninstall.php 1.06kB No known conflicts with other themes or plugins.

Which new shortcodes does Prevent Files / Folders Access add to WordPress?

Which new database tables are created by the WordPress plugin Prevent Files / Folders Access?

Which new options are added to the wp-options table by Prevent Files / Folders Access?

Option Name   Known Conflicts
host_name Potential conflict with 9 plugins or themes
mo_enable_media_restriction The mo_enable_media_restriction option doesn't have any known conflicts with other themes or plugins.

During use Prevent Files / Folders Access 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 Prevent Files / Folders Access declare when it is active?

Function   Conflicts Common Errors
activate_media_restriction 0 conflicts Fatal error: Cannot redeclare activate_media_restriction()
deactivate_media_restriction 0 conflicts Fatal error: Cannot redeclare deactivate_media_restriction()
mo_media_restrict_account_setup 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_account_setup()
mo_media_restrict_directory_has_subdirectory 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_directory_has_subdirectory()
mo_media_restrict_directory_print 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_directory_print()
mo_media_restrict_file_restriction 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_file_restriction()
mo_media_restrict_folder_restriction 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_folder_restriction()
mo_media_restrict_licensing_tab 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_licensing_tab()
mo_media_restrict_page_restriction 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_page_restriction()
mo_media_restrict_page_ui 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_page_ui()
mo_media_restrict_protected_folder 0 conflicts Fatal error: Cannot redeclare mo_media_restrict_protected_folder()
mo_media_restriction_feedback_request 0 conflicts Fatal error: Cannot redeclare mo_media_restriction_feedback_request()
mo_prevent_show_bfs_note 0 conflicts Fatal error: Cannot redeclare mo_prevent_show_bfs_note()
run_media_restriction 0 conflicts Fatal error: Cannot redeclare run_media_restriction()

Using Prevent Files / Folders Access 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 Prevent Files / Folders Access from the command line with WP-CLI

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

wp plugin install prevent-file-access


How to activate Prevent Files / Folders Access from the command line with WP-CLI

To immediately activate Prevent Files / Folders Access after WP-CLI downloads the latest version you can use the following command:

wp plugin install prevent-file-access --activate


How to reinstall Prevent Files / Folders Access from the command line with WP-CLI

To force a reinstallation of Prevent Files / Folders Access which overwrites the current plugin without asking for confirmation you can use the following command:

wp plugin install prevent-file-access --force


How to update Prevent Files / Folders Access to the latest version from the command line with WP-CLI

wp plugin update prevent-file-access


How to delete Prevent Files / Folders Access from the command line with WP-CLI

wp plugin delete prevent-file-access

Where can you download earlier versions of Prevent Files / Folders Access?

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 Prevent Files / Folders Access 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 Prevent Files / Folders Access

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