Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author htmlBurger

    (@htmlburger)

    Hey @taiko-media,

    It appears you’re running into a JavaScript error, preventing the fields from being rendered. Is there any error in your browser console? If so, can you please send it along, so we can see what is going on?

    Also, it would be useful to provide us with additional information, such as:

    * The WordPress version you’re using
    * List of plugins you have installed and activated
    * Theme you’re using

    Looking forward to your reply.

    Thread Starter Taiko Media

    (@taiko-media)

    Yes, all of the plugin assets return a 404 error in console

    https://mysite.dev/wp/srv/www/mysite.dev/current/web/app/plugins/carbon-fields/assets/css/main.css?ver=4.4.2 Failed to load resource: the server responded with a status of 404 (Not Found)
    jquery-migrate.js?ver=1.2.1:21 JQMIGRATE: Logging is active
    https://mysite.dev/wp/srv/www/mysite.dev/current/web/app/plugins/carbon-fields/assets/js/app.js?ver=4.4.2 Failed to load resource: the server responded with a status of 404 (Not Found)
    https://mysite.dev/wp/srv/www/mysite.dev/current/web/app/plugins/carbon-fields/assets/js/containers.js?ver=4.4.2 Failed to load resource: the server responded with a status of 404 (Not Found)
    https://mysite.dev/wp/srv/www/mysite.dev/current/web/app/plugins/carbon-fields/assets/js/fields.js?ver=4.4.2 Failed to load resource: the server responded with a status of 404 (Not Found)
    https://mysite.dev/wp/srv/www/mysite.dev/current/web/app/plugins/carbon-fields/assets/js/ext.js?ver=4.4.2 Failed to load resource: the server responded with a status of 404 (Not Found)
    https://mysite.dev/wp/srv/www/mysite.dev/current/web/app/plugins/carbon-fields/assets/css/main.css?ver=4.4.2 Failed to load resource: the server responded with a status of 404 (Not Found)

    I’m running:

    – WordPress 4.4.2 on a local Vagrant environment (Trellis / Bedrock)
    Sage theme
    – I have deactivated all plugins, except Carbon Fields and my own very basic Carbon Fields plugin. The 404 errors persist.

    Plugin Author htmlBurger

    (@htmlburger)

    It appears that this is because in Bedrock the WordPress core is in the /wp directory, and the wp-content is actually in a separate /app directory.

    Quick fix for this: in your Bedrock config/application.php, add the following line:

    define( 'Carbon_Fields\\URL', WP_CONTENT_URL . '/plugins/carbon-fields' );

    This will point the Carbon Fields assets to the right URL.

    Looking forward to your reply, and whether this solution worked for you.

    Thread Starter Taiko Media

    (@taiko-media)

    Awesome, that fixed it. Thanks for the support!

    Plugin Author htmlBurger

    (@htmlburger)

    Glad to hear that. Have fun ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Container displays no fields in backend’ is closed to new replies.