Pockets Plugin - Unable to update "Page not found" error
I updated to Pockets plugin 1.2 on Vanilla Forums 2.3.1 due to a weird issue I had with v1.1.x (as described in this thread https://open.vanillaforums.com/discussion/34366/pocket-add-on-html-is-being-stripped-out ). However, now I'm unable to update some of the pockets. When I try to update them, I get "Page Not Found" error. The URL at which I get is the same as that for the Pocket edit page with a ? at the end like so:
<my-site-url>/settings/pockets/edit/4?
The content inside that pocket is the Google Analytics tracking code:
<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXX-X"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXXX-X'); </script>
If I refresh the page, it brings me back to the edit page, but my changes are not saved. For some other pockets, I'm able to edit them just fine. I tried creating a brand new pocket with the same GA code, but got the same error.
Am I missing something?
Comments
Have you tried to put the code in a div ?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I tried it just now but it didn't work either. Same result.
Ok, how about try the plugin Widgets and add the code in a module, I mean the pocket is a module too but maybe we can get to the bottom of this if you use that plugin instead and try to add the google code in there instead. However if it's for adverts , your own browser might be blocking the adverts. I would add that code in the master tpl inside {literal}codehere{/literal} tags. The pocket plugin is made for content, not scripts that are not rendered.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌