Settings: Adding "Custom code" shows blank page

Description:

After clicking on “Add” in the “Custom code” section I get a blank page.

Console error says:
Uncaught ReferenceError: CodeMirror is not defined in css.js
My installation is currently on localhost.
Tested in Firefox and Chrome.

Environment info

  • WordPress version: 6.1.1
  • Gutenberg Plugin version: -
  • Cwicly Plugin version: newest
  • Cwicly Theme version: newest

Hi there @Jugibur,

Sorry for not getting back earlier on this one.
This does seem unusual as we enqueue CodeMirror from the start on the Settings page.

Is there any plugin on your installation that might be affecting CodeMirror or enqueuing it?

Thanks in advance.

Cheers,

Hi Louis,

no problem about waiting, I just wanted to try out something.

It’s really strange:
I did a clean install, it works there.
Then on the other installation I disabled all plugins and it still doesn’t work.
On both installs I’m using the Cwicly template, the same WP version and I haven’t changed anything in functions.php either.

I will continue to monitor and investigate the matter, somewhere there must be a cause…
If I find a solution, I will of course post it here.

Hi @Jugibur,

Thanks for your reply.
Looking at your error code once again, I’ll add a check in the next update which will hopefully remove this error.

Thanks for getting back to me and letting me know, really appreciate it.

Cheers,

Hi @Jugibur,

1.2.9.1 should address this hopefully.

I would be grateful if you could let me know if this fixed things.

Thanks in advance.

Good morning @Louis,

great, after installing the new version I can open the code editor successfully! Thanks for this fix!

1 Like