Usually I set up my links in cwicly such that they link to a wordpress page rather than a static URL. This way, if the page’s permalink changes, all links to that page update automatically. Right now this does not work anymore. When I type in the page’s title in the link modal, it’s stuck loading.
Step-by-step reproduction instructions:
Add a couple pages
Open the Post Editor/Site Editor
Add any block and add a link to it
Select link source as static
Type in any page’s title
Notice that the search bar stays in loading mode and never suggests any wordpress page to link to
When I’m in the cwicly editor and refresh the page I get a bunch of warnings and this one error:
[Error] Unhandled Promise Rejection: TypeError: n.createElement is not a function. (In 'n.createElement("style")', 'n.createElement' is undefined)
(anonymous function) (index.js:3:281929)
promiseReactionJob
And when I start typing anything into the search field inside the link modal, I get the following error:
[Error] SyntaxError: Invalid regular expression: invalid group specifier name
RegExp (block-editor.min.js:21:221660)
(anonymous function) (block-editor.min.js:21:221660)
qa (block-editor.min.js:21:221714)
(anonymous function) (block-editor.min.js:21:222392)
updateSuggestions (block-editor.min.js:21:209696)
updateSuggestions
p (compose.min.js:9:17293)
I have no idea if these two are related in any way. Has anybody encountered this error before and knows if there’s a fix or is this something the cwicly team needs to tackle?
I can confirm that the same thing happens when using a core Gutenberg block (I tested with Gutenberg paragraph and heading).
It does not happen inside the Classic Editor block, though (either inside the cwicly editor or outside when editing CPTs where I disabled editor mode from the ACF settings)
Thanks for checking @jornes ! Since I’m the only one facing this issue, I tested the following on a copy of the project:
Deactivate all plugins except cwicly
Clean the database with WP Optimize
Check the cwicly editor (1.4.1.8) and try to link to a page => fail
Update cwicly to latest version (1.4.4)
Clean database again
Regenerate HTML, CSS, Tailwind, etc
Check the cwicly editor and try to link to a page => fail
Is there anything else I can try for debugging on my end or is this the point where the support team needs to check on my installation? If so, I’ll be happy to grant you access
Cheers
Marc
EDIT: I also checked installing cwicly 1.4.1.8 on a completely fresh Wordpress installation and there everything works fine.
Please send me a PM with your site details if possible so I can take a quick look at what is happening.
It would seem that this isn’t related to Cwicly specifically (we’re using the default Gutenberg link component).
Hi @Louis thanks for the offer, really appreciate it!
Fortunately, it won’t be necessary. I just found out that the root cause is somehow linked to my browser cache . I logged into my site using another browser where I could safely wipe all browser data, cache, etc and there the page linking works fine. I had previously cleared the site data on my main browser specifically for the site hosting my wordpress installation, but it seems that a complete browser cache wipe was necessary in my case.
Thanks everyone for checking and helping me narrow down the issue. I’m sorry that in the end the solution is not too exciting