You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Theme option fields should be shown in theme option page.
Should not display errors in console.
Actual Behavior
Theme option fields are not displayed.
Error in console:
TypeError: u is undefined core.min.js:10:19659
TypeError: a is undefined metaboxes.min.js:1:6563
TypeError: d is undefined blocks.min.js:11:5870
TypeError: cf.core is undefined admin.php:1819:10
Steps to Reproduce the Problem
Require carbon fields with composer in theme and set theme option
Install site kit by google
Go to theme option page
Comments
Please add any other comments here
The text was updated successfully, but these errors were encountered:
I'm getting TypeError: cf.core is undefined too, but without "Site Kit by Google" being installed. cf is defined. cf.core is not.
One step deeper: most CBF assets hits 404 (at least on Bedrock), this is because \Carbon_Fields\URL is empty which is wrong what comes down to Carbon_Fields::directory_to_url( \Carbon_Fields\DIR ) )
(See also #457)
I really think there is too much magic here and should be simplified to match WordPress standard (and simplicity). All this assets' loading is specific to WordPress as such, it should be part of the WordPress plugin which can use the plugins_url* function.
I also think that when such a bug occurs a much informative error must be thrown. Eg: console.error("Can't load CBF");
Version
Expected Behavior
Theme option fields should be shown in theme option page.
Should not display errors in console.
Actual Behavior
Theme option fields are not displayed.
Error in console:
Steps to Reproduce the Problem
Comments
Please add any other comments here
The text was updated successfully, but these errors were encountered: