carbon-fields icon indicating copy to clipboard operation
carbon-fields copied to clipboard

Error/bug: crbl10n in not defined

Open dameer opened this issue 9 years ago • 7 comments

There's some strange error in /plugins/carbon-fields/assets/js/sidebar-ui.js file ( line 10, col 3 ) causing other widgets not working properly.

For instance, I'm about to use SiteOrigin's Layout Builder widget in footer and it doesn't work because crbl10n in not defined.

crbl10n_undefined

dameer avatar Jan 09 '17 10:01 dameer

Hey @dameer, thanks for reporting this.

It seems that this occurs when you don't have a registered CF Widget.

We are working on a solution at the moment, so stay tuned.

m1r0 avatar Jan 09 '17 10:01 m1r0

@dameer,

The fix for this is in the latest commit in master (no numbered release, yet)

atanas-dev avatar Jan 09 '17 15:01 atanas-dev

For those wanting to see the changes 9031cd82274631db8db33255d1302d8ec598bf8a

Santana1053 avatar Jan 09 '17 19:01 Santana1053

This bug also happens when using the Sidebar field. Based on the docs, when you've added a sidebar you should be able to delete that sidebar on the widgets page. On a vanilla install of WordPress with just the sidebar field, I get the same error. To resolve this I created a dummy CF widget and the error went away.

In the context of the custom sidebar, the error prevents the trash icon from appearing.

SmashBrando avatar Feb 08 '17 02:02 SmashBrando

First of all I am new to this plugin. It seems like a very useful, developer friendly plugin! Thanks for sharing it.

I am seeing the same error (master branch) as the topic starter: ReferenceError: crbl10n is not defined sidebar-ui.js:10:3.

In my case it prevents the Black Studio TinyMCE Widget being added to the widgets overview, when it is freshly installed.

Will the fix will be included in the next release?

erikjoling avatar Apr 21 '17 11:04 erikjoling

@erikjoling ,

The fix will be included in 2.0 - in the mean time there's a dirty work-around that @SmashBrando mentioned:

To resolve this I created a dummy CF widget and the error went away.

(IIRC the widget does not need to be registered - it only needs to be defined)

atanas-dev avatar Apr 21 '17 11:04 atanas-dev

Ok, thanks :)

erikjoling avatar Apr 21 '17 12:04 erikjoling