-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Complete instructions for installing and activating MBR Cookie Consent on your WordPress website.
Ensure your WordPress installation meets these minimum requirements:
| Component | Minimum Version | Recommended |
|---|---|---|
| WordPress | 5.8 | Latest stable |
| PHP | 7.4 | 8.0+ |
| MySQL | 5.6 | 5.7+ or MariaDB 10.2+ |
| Web Server | Apache 2.4 or Nginx 1.18 | Latest stable |
| Memory Limit | 64MB | 128MB+ |
- Log into your WordPress admin
- Navigate to Tools > Site Health
- Click the Info tab
- Expand the Server section
- Check the PHP version field
If below 7.4, contact your hosting provider to upgrade.
The admin interface requires a modern browser:
- ✅ Chrome 90+
- ✅ Firefox 88+
- ✅ Safari 14+
- ✅ Edge 90+
This is the easiest method for most users.
- Visit the Releases page
- Download the latest
mbr-cookie-consent.zipfile - Do not unzip the file - WordPress needs the ZIP format
- Log into your WordPress admin panel
- Navigate to Plugins > Add New
- Click the Upload Plugin button at the top of the page
- Click Choose File and select the downloaded
mbr-cookie-consent.zip - Click Install Now
- Once installation completes, click Activate Plugin
- You'll be redirected to the plugins page
- Look for "MBR Cookie Consent" in your plugin list with a green "Active" indicator
- In the WordPress admin menu, you'll see a new Cookie Consent menu item
- Click it to access the plugin settings
That's it! The plugin is now installed and ready to configure.
For users who prefer FTP or have restrictions on the WordPress admin uploader.
- Download the latest
mbr-cookie-consent.zipfrom Releases - Extract the ZIP file on your computer
- You should see a folder named
mbr-cookie-consent
- Open your FTP client (FileZilla, Cyberduck, etc.)
- Connect to your web server using your FTP credentials
- Navigate to your WordPress installation directory
- Navigate to:
wp-content/plugins/ - Upload the entire
mbr-cookie-consentfolder to this directory - Ensure the full path is:
wp-content/plugins/mbr-cookie-consent/
Directory structure should look like:
wp-content/
└── plugins/
└── mbr-cookie-consent/
├── admin/
├── assets/
├── includes/
├── mbr-cookie-consent.php
└── readme.txt
Ensure proper file permissions:
- Folders: 755
- Files: 644
# SSH command (if you have access)
chmod 755 wp-content/plugins/mbr-cookie-consent/
chmod 644 wp-content/plugins/mbr-cookie-consent/*.php
- Log into WordPress admin
- Navigate to Plugins > Installed Plugins
- Find "MBR Cookie Consent"
- Click Activate
For developers and those comfortable with the command line.
- SSH access to your server
- WP-CLI installed (Installation guide)
# Download the plugin
cd /path/to/wordpress
wget https://github.com/harbourbob/mbr-cookie-consent/releases/latest/download/mbr-cookie-consent.zip
Install the plugin
wp plugin install mbr-cookie-consent.zip
Activate the plugin
wp plugin activate mbr-cookie-consent
Verify installation
wp plugin list
# If you already have the ZIP file
wp plugin install /path/to/mbr-cookie-consent.zip --activate
# Check plugin status
wp plugin status mbr-cookie-consent
Should output:
Plugin mbr-cookie-consent details:
Name: MBR Cookie Consent
Status: Active
Version: 1.0.7
After installation, follow these steps to complete setup.
The plugin automatically creates database tables on activation:
-
wp_mbr_cc_consent_log- Stores consent records -
wp_mbr_cc_blocked_scripts- Stores blocked scripts
Verify tables were created:
SHOW TABLES LIKE 'wp_mbr_cc_%';
If tables are missing, try deactivating and reactivating the plugin.
The plugin sets sensible defaults:
- Banner Position: Bottom
- Banner Layout: Bar
- Primary Color: #0073aa
- Show Reject Button: Yes
- Show Customize Button: Yes
- Cookie Expiry: 365 days
These can all be changed in Cookie Consent > Settings.
Ensure WordPress can write to necessary directories:
chmod 755 wp-content/plugins/mbr-cookie-consent/
- Open an incognito/private browser window
- Visit your website homepage
- You should see the cookie consent banner
- Test the Accept/Reject/Customize buttons
Via WordPress Admin:
- Go to Plugins > Installed Plugins
- Find "MBR Cookie Consent"
- Status should show Active in blue
Via WP-CLI:
wp plugin list --status=active | grep mbr-cookie-consent
- Clear all browser cookies for your site
- Open your site in a private/incognito window
- The cookie banner should appear immediately
If banner doesn't appear:
- Check browser console for JavaScript errors (F12)
- Verify no theme/plugin conflicts (disable other plugins temporarily)
- Check if banner is hidden by another element (use browser inspector)
- Look for Cookie Consent in the WordPress admin sidebar
- Click it to access settings
- You should see 4 tabs:
- Settings
- Cookie Scanner
- Consent Logs
- Policy Generator
Via phpMyAdmin:
- Open phpMyAdmin
- Select your WordPress database
- Look for tables:
wp_mbr_cc_consent_logandwp_mbr_cc_blocked_scripts
Via WP-CLI:
wp db query "SHOW TABLES LIKE 'wp_mbr_cc_%';"
Possible causes:
- PHP version too old (< 7.4)
- Missing required PHP extensions
- File permission issues
Solution:
- Check PHP version in Tools > Site Health
- Ensure these PHP extensions are enabled:
jsonmbstringmysqli
- Check file permissions (755 for folders, 644 for files)
Cause: PHP upload limits too low
Solution:
Edit php.ini (or ask your host):
upload_max_filesize = 10M
post_max_size = 10M
Or use FTP upload method instead.
Troubleshooting steps:
-
Clear browser cache and cookies
- Use Ctrl+Shift+Delete
- Or try incognito/private window
-
Check JavaScript console (F12)
- Look for errors
- Verify
banner.jsis loading
-
Check for conflicts
# Temporarily disable all other plugins wp plugin deactivate --all wp plugin activate mbr-cookie-consent -
Check theme compatibility
- Switch to a default theme (Twenty Twenty-Three)
- If banner appears, your theme has a conflict
-
Verify banner is in HTML
- View page source (Ctrl+U)
- Search for
mbr-cc-banner - If not found, plugin isn't loading properly
Possible causes:
- JavaScript error
- Browser caching old JS files
- Nonce timeout
Solution:
- Hard refresh settings page (Ctrl+Shift+R)
- Clear browser cache
- Check browser console for errors
- Try different browser
Solution:
Manually create tables via phpMyAdmin or WP-CLI:
-- Consent Log Table
CREATE TABLE IF NOT EXISTS `wp_mbr_cc_consent_log` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_ip` varchar(45) DEFAULT NULL,
`consent_data` text NOT NULL,
`user_agent` text DEFAULT NULL,
`page_url` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- Blocked Scripts Table
CREATE TABLE IF NOT EXISTS wp_mbr_cc_blocked_scripts (
id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
identifier text NOT NULL,
type varchar(50) NOT NULL,
category varchar(50) NOT NULL,
description text DEFAULT NULL,
created_at datetime NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Or deactivate and reactivate the plugin to trigger table creation.
This removes the plugin but keeps your settings and consent logs.
Via WordPress Admin:
- Navigate to Plugins > Installed Plugins
- Find "MBR Cookie Consent"
- Click Deactivate
- Click Delete
- Confirm deletion
Via WP-CLI:
wp plugin deactivate mbr-cookie-consent
wp plugin delete mbr-cookie-consent
What remains:
- Database tables (consent logs, blocked scripts)
- Settings in
wp_optionstable
This removes the plugin AND all data.
Before uninstalling:
- Export consent logs if needed (Cookie Consent > Consent Logs > Export CSV)
- Backup settings
Via WP-CLI:
# Deactivate plugin
wp plugin deactivate mbr-cookie-consent
Drop database tables
wp db query "DROP TABLE IF EXISTS wp_mbr_cc_consent_log;"
wp db query "DROP TABLE IF EXISTS wp_mbr_cc_blocked_scripts;"
Delete options
wp option delete mbr_cc_banner_position
wp option delete mbr_cc_banner_layout
... (repeat for all plugin options)
Delete plugin
wp plugin delete mbr-cookie-consent
Manual cleanup:
-- Remove database tables
DROP TABLE IF EXISTS wp_mbr_cc_consent_log;
DROP TABLE IF EXISTS wp_mbr_cc_blocked_scripts;
-- Remove options
DELETE FROM wp_options WHERE option_name LIKE 'mbr_cc_%';
✅ Plugin installed successfully!
Now proceed to:
Updated: February 2026 | Plugin Version: 1.4.1