Default settings not working
-
We have set marketing cookies to be enabled by default. If the user clicks accept from the banner, they are set, and the moove cookie is also set. However, if the user opens the Settings and then closes the settings without having changed any settings, the marketing cookies are removed and only the moove cookie is set — although the Marketing Cookies display as activated! On Version 1.3.0…
The page I need help with: [log in to see the link]
-
Hi there,
Thanks for using our plugins.
I’ve checked the site, and I’ve found an issue with the admin-ajax.php on your server, it seems the wp-admin area is protected on your site, but the admin-ajax.php is not excluded from this protection. Our plugin loads the script using admin-ajax.php, and if it’s blocked on your server, the plugin can’t load the scripts and work properly.
This is the URL which should be whitelisted: https://www.arithnea.de/wp-admin/admin-ajax.phpRead more about the wp-admin restrictions here:
https://www.wpbeginner.com/wp-tutorials/how-to-password-protect-your-wordpress-admin-wp-admin-directory/I hope this helps.
Hmmm, I can’t see that the wp-admin directory is password-protected at all. I created a wp-admin/.htaccess anyway and put the code in, but that hasn’t helped.
Shouldn’t I be getting a JavaScript error message if the necessary JavaScript isn’t available? Aren’t all your cookie settings to do with the Ajax, and none could be set if the ajax were inaccessible? It works fine if the user changes something and clicks on “Accept changes” — it’s only the default that doesn’t work without being explicitly saved.
Hi @genevievecory,
I can confirm the functionality of the plugin working as expected, by default the plugin loads the scripts defined in the “Marketing Cookies” tab, and the user can’t deactivate the “Strictly Necessary” cookies, in this step no moove cookie will be created, only the scripts will be injected, and inside the modal the switchers moved to ‘on’ position.
If the user doesn’t open the settings screen, the Cookie Banner will be visible on each page load and the default script added to the site.
If the user clicks to the “Accept” button on the Cookie Banner, the banner will be visible, and moove cookie created. The moove cookie stores the user perferences. The same thing happening when the user opens the Settings and without making changes close the popup, as this means the settings were been revised. If the visitor disable the “Marketing Cookies” and close the modal, the “Marketing Cookies” will not be injected, and the preferences stored to the moove cookie. So I can confirm the plugin works in this way on your site. If not, please more details regarding the browser (type, version), operating system and device.Regarding the wp-admin restriction, it’s not password protected, it’s just blocked and return 403 Forbidden error. If you can open the following URL the page is a 403 Forbidden: https://www.arithnea.de/wp-admin/admin-ajax.php
As noticed before, our plugin loads the cookies with Ajax, no scripts could be loaded if the ajax not working properly. Please ensure the wp-admin area is not whitelisted for some IP’s only, you should test from other devices or ask your hosting provider to fix this for you.
I’ve attached the JavaScript error message in the following link:I hope this makes sense.
Hi – darn, yes, admin-ajax.php is a 403 if accessed from *outside the company network*. Doh! I’ll get on that.
However — I’ve just tested the cookie settings on your own website, and you have the same problem! Your third-party cookies are also turned on by default, and if I close the banner without opening the popup, they are set. If I open the popup and then close it without changing anything, your third-party cookies are removed — even though they are clearly visible as being turned on by default with the green toggle!
And I can reach your https://www.mooveagency.com/wp-admin/admin-ajax.php from here with no problems, so access to that file may not be the source of the issue…
You wrote:
>>>The same thing happening when the user opens the Settings and without making changes close the popup, as this means the settings were been revised.
I don’t think that conclusion is correct. To me, if I open the popup and close it without making changes, then I have explicitly NOT revised the settings, and they should stay as the WordPress Admin set them.
The way the plugin functions now is certainly legally safe, but we would really like the third-party cookies to be set as long as the user does not actively deactivate that green toggle. We do not want people to have to actively opt-in to our third-party cookies.
Hi @genevievecory,
Thanks for your comments on this.
>>> I don’t think that conclusion is correct. To me, if I open the popup and close it without making changes, then I have explicitly NOT revised the settings, and they should stay as the WordPress Admin set them.
I can confirm if you don’t change anything it keeps and save the values as the WordPress Admin set them. As I’ve highlighted above, closing the popup is equals saving the settings (if you don’t make changes, the default state will be saved). You can set the default values to be enabled by default, and the Cookie Banner will be visible until the user opens the settings and revise the cookie settings.
In a future release we’ll try to make this ‘save on close’ feature optional, the current version save the preferences once you close the popup.
Also there is a floating button option, you can enable this feature, and your visitors can easily change their preferences anytime.I hope this helps.
The topic ‘Default settings not working’ is closed to new replies.