Title: V.'s Replies | WordPress.org

---

# V.

  [  ](https://wordpress.org/support/users/mypixels/)

 *   [Profile](https://wordpress.org/support/users/mypixels/)
 *   [Topics Started](https://wordpress.org/support/users/mypixels/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mypixels/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mypixels/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mypixels/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mypixels/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mypixels/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpdraftPlus: WP Backup & Migration Plugin] Fatal error when accessing the plugin administration.](https://wordpress.org/support/topic/fatal-error-when-accessing-the-plugin-administration/)
 *  [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/fatal-error-when-accessing-the-plugin-administration/#post-18864404)
 * Thank you for quick solution!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpdraftPlus: WP Backup & Migration Plugin] Fatal error when accessing the plugin administration.](https://wordpress.org/support/topic/fatal-error-when-accessing-the-plugin-administration/)
 *  [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/fatal-error-when-accessing-the-plugin-administration/#post-18863201)
 * **Same here – after update**:
 * Uncaught ValueError: Missing format specifier at end of string in /public_html/
   www/wp-content/plugins/updraftplus/methods/dropbox.php:622
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookies and Content Security Policy] Microsoft Clarity – Consent V2](https://wordpress.org/support/topic/microsoft-clarity-consent-v2/)
 *  Thread Starter [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/microsoft-clarity-consent-v2/#post-18727484)
 * Yes, I have GCM v2 enabled on all sites I’m working on, but no luck.
 * So I will have to manually link it to some event from your plugin – as soon as
   cookies are approved or rejected. <span class=”HwtZe” lang=”en”><span class=”
   jCAhz ChMk0b”><span class=”ryNqvb”>The second option is to test at some interval
   whether the cookie exists and what its status is.</span></span></span>
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Multiple domains for languages](https://wordpress.org/support/topic/multiple-domains-for-languages/)
 *  Thread Starter [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/multiple-domains-for-languages/#post-17989639)
 * **I have a working solution for my case.**
 * **This needs to be inserted in wp-config.php**
   define(‘WP_SITEURL’, ‘[http://&#8217](http://&#8217);.
   $_SERVER[‘HTTP_HOST’]);define(‘WP_HOME’, ‘[http://&#8217](http://&#8217); . $
   _SERVER[‘HTTP_HOST’]);
 * The domain with the translation then “holds” the correct URLs and the languages​​
   are not mixed together with the primary domain and language.
 * *If used as above, the language switcher stops working (all URLs go to the currently
   selected language mutation) – I’m not currently dealing with it because I end
   up using it statically and not generated via Polylang.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookies and Content Security Policy] Slow: cookies-and-content-security-policy-error-message.php](https://wordpress.org/support/topic/slow-cookies-and-content-security-policy-error-message-php/)
 *  [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/slow-cookies-and-content-security-policy-error-message-php/#post-16476179)
 * Thank you! That fixed the issue. Missing iframes and stuff are somewhat pain 
   in the… but I think I can live with it 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ninja Forms - The Contact Form Builder That Grows With You] Uncaught TypeError: MutationObserver.observe: Argument 1 is not an object](https://wordpress.org/support/topic/uncaught-typeerror-mutationobserver-observe-argument-1-is-not-an-object/)
 *  [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/uncaught-typeerror-mutationobserver-observe-argument-1-is-not-an-object/#post-16288021)
 * I have the same problem.
    I tried to clear the settings, turn off all plugins,
   etc. Nothing helped.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookies and Content Security Policy] Missing JS file in 1.97 release](https://wordpress.org/support/topic/missing-js-file-in-1-97-release/)
 *  Thread Starter [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/missing-js-file-in-1-97-release/#post-15440660)
 * Thanks for the info. The stickers are nice, but I take it that if the plugin 
   is “free” (it costs a lot of your time), I will at least support a little of 
   my own work and I will not generate additional costs for you 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookies and Content Security Policy] Google Analytics missing users from Ads](https://wordpress.org/support/topic/google-analytics-missing-users-from-ads/)
 *  Thread Starter [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-missing-users-from-ads/#post-15432551)
 * I don’t currently have enough traffic to experiment on this. For now, it seems
   like a working solution, but I can’t say for sure.
 * In the example above, there is an error regarding disabled parameter passing.
 * I am currently looking for someone more experienced who will help me validate
   the solution 🙂
 *     ```
       <script>
           // Define dataLayer and the gtag function.
           // https://developers.google.com/tag-platform/devguides/consent
           window.dataLayer = window.dataLayer || [];
           function gtag(){dataLayer.push(arguments);}
           gtag('consent', 'default', {
               'ad_storage': 'denied',
               'analytics_storage': 'denied',
               'wait_for_update': 500,
           });
           gtag('set', 'url_passthrough', true);
           gtag('set', 'ads_data_redaction', false);
   
           // Check if cookie exists
           // modified https://www.w3schools.com/js/js_cookies.asp
           function checkCookie(cname) {
               let username = getCookie(cname);
               if (username != "") {
                   return true;
               } else {
                   return false;
               }
           }
   
           // Get cookie
           // umodified https://www.w3schools.com/js/js_cookies.asp
           function getCookie(cname) {
               let name = cname + "=";
               let decodedCookie = decodeURIComponent(document.cookie);
               let ca = decodedCookie.split(';');
               for(let i = 0; i <ca.length; i++) {
                   let c = ca[i];
                   while (c.charAt(0) == ' ') {
                       c = c.substring(1);
                   }
                   if (c.indexOf(name) == 0) {
                       return c.substring(name.length, c.length);
                   }
               }
               return "";
           }
   
           // Check if cookie from plugin "Cookies and Content Security Policy" exists
           if (checkCookie('cookies_and_content_security_policy') == true) {
               consent_cookie = getCookie('cookies_and_content_security_policy');
   
               if (consent_cookie.includes("statistics")) {
                   // Google Analytics allowed
                   gtag('set', 'ads_data_redaction', false);
                   gtag('consent', 'update', {
                       'ad_storage': 'granted',
                       'analytics_storage': 'granted',
                       // 'functionality_storage': 'granted',
                       // 'personalization_storage': 'granted',
                       // 'security_storage': 'granted',
                   });
               } else {
                   // Google Analytics disallowed
                   gtag('set', 'ads_data_redaction', true);
                   gtag('consent', 'default', {
                       'ad_storage': 'denied',
                       'analytics_storage': 'denied',
                   });
               }
           } else {
               // Cookie from plugin "Cookies and Content Security Policy" doesn't exists
           }
       </script>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookies and Content Security Policy] Anchor is reloading the page while configuring settings](https://wordpress.org/support/topic/anchor-is-reloading-the-page-while-configuring-settings/)
 *  [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/anchor-is-reloading-the-page-while-configuring-settings/#post-15425216)
 * This often happens when a smooth scrolling or similar script is fired at # anchors.
   
   At least in my case it was like this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookies and Content Security Policy] Google Analytics missing users from Ads](https://wordpress.org/support/topic/google-analytics-missing-users-from-ads/)
 *  Thread Starter [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-missing-users-from-ads/#post-15422594)
 * So far, I have only prepared a rough prototype for testing purposes.
 * **I would appreciate feedback from someone with technical experience with Google
   Analytics. My specialization lies elsewhere than GA / GTM and JS.** I’m not sure
   if I understood everything correctly, but it seems that the parameters are not
   passed 🙁 From what I see Google Tag Assistant does not report problems and cookies
   are not stored until you agree with that.
 * The prerequisite for functionality is the correctly set consent settings in GTM
   [https://support.google.com/analytics/answer/9976101](https://support.google.com/analytics/answer/9976101)
   and the addition of GTM / Analytics among the always allowed scripts.
 *     ```
       <script>
           // Define dataLayer and the gtag function.
           // https://developers.google.com/tag-platform/devguides/consent
           window.dataLayer = window.dataLayer || [];
           function gtag(){dataLayer.push(arguments);}
           gtag('set', 'url_passthrough', true);
           gtag('set', 'ads_data_redaction', true);
           gtag('consent', 'default', {
               'ad_storage': 'denied',
               'analytics_storage': 'denied',
               'wait_for_update': 500,
           });
           // Check if cookie exists
           // modified https://www.w3schools.com/js/js_cookies.asp
           function checkCookie(cname) {
               let username = getCookie(cname);
               if (username != "") {
                   return true;
               } else {
                   return false;
               }
           }
           // Get cookie
           // umodified https://www.w3schools.com/js/js_cookies.asp
           function getCookie(cname) {
               let name = cname + "=";
               let decodedCookie = decodeURIComponent(document.cookie);
               let ca = decodedCookie.split(';');
               for(let i = 0; i <ca.length; i++) {
                   let c = ca[i];
                   while (c.charAt(0) == ' ') {
                       c = c.substring(1);
                   }
                   if (c.indexOf(name) == 0) {
                       return c.substring(name.length, c.length);
                   }
               }
               return "";
           }
           // Check if cookie from plugin "Cookies and Content Security Policy" exists
           if (checkCookie('cookies_and_content_security_policy') == true) {
               consent_cookie = getCookie('cookies_and_content_security_policy');
   
               if (consent_cookie.includes("statistics")) {
                   // Google Analytics allowed
                   gtag('set', 'ads_data_redaction', false);
                   gtag('consent', 'update', {
                       'ad_storage': 'granted',
                       'analytics_storage': 'granted',
                       // 'functionality_storage': 'granted',
                       // 'personalization_storage': 'granted',
                       // 'security_storage': 'granted',
                   });
               } else {
                   // Google Analytics disallowed
                   gtag('set', 'ads_data_redaction', true);
                   gtag('consent', 'default', {
                       'ad_storage': 'denied',
                       'analytics_storage': 'denied',
                   });
               }
           } else {
               // Cookie from plugin "Cookies and Content Security Policy" doesn't exists
           }
       </script>
       ```
   
    -  This reply was modified 4 years, 4 months ago by [V.](https://wordpress.org/support/users/mypixels/).
    -  This reply was modified 4 years, 4 months ago by [V.](https://wordpress.org/support/users/mypixels/).
    -  This reply was modified 4 years, 4 months ago by [V.](https://wordpress.org/support/users/mypixels/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookies and Content Security Policy] Google Analytics missing users from Ads](https://wordpress.org/support/topic/google-analytics-missing-users-from-ads/)
 *  Thread Starter [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-missing-users-from-ads/#post-15418581)
 * I see.
 * Theoretically, this could be hooked up to [https://developers.google.com/tag-platform/devguides/consent#gtag.js](https://developers.google.com/tag-platform/devguides/consent#gtag.js)
   consent status and passed on only with users consent.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cookies and Content Security Policy] Missing JS file in 1.97 release](https://wordpress.org/support/topic/missing-js-file-in-1-97-release/)
 *  Thread Starter [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/missing-js-file-in-1-97-release/#post-15180120)
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Watermark] Plugin conflict with Real Media Library](https://wordpress.org/support/topic/plugin-conflict-with-real-media-library/)
 *  [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-conflict-with-real-media-library/#post-12449492)
 * Hello,
    I think that’s the same issue as [I’ve described here](https://wordpress.org/support/topic/conflict-with-wp-media-folder-plugin/).
   Looking forward to solution. This plugin is otherwise perfect 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Permalinks Customizer] same slug for all the posts](https://wordpress.org/support/topic/same-slug-for-all-the-posts/)
 *  [V.](https://wordpress.org/support/users/mypixels/)
 * (@mypixels)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/same-slug-for-all-the-posts/#post-11066357)
 * I have exactly the same problem. When I’m creating a new post (with Permalinks
   Customizer plugin active), the post slug is saved like “automatically-created-
   concept” instead text entered in post title.
 * Situation is the same with Gutenberg or Classic editor. When is your plugin disabled,
   everything works good – slug is made from text entered in “title”.
 * Second bug: slug for every new page is saved like “uncategorized/page-title” 
   which is weird because I hadn’t even set rewrite rule for pages.
 * Plugin itself is excelent (it’s fast!) for me, except this bugs which make it
   unusable.

Viewing 14 replies - 1 through 14 (of 14 total)