Support Forum
Hi Rilwis, hope you are doing super duper 🙂
Might be this off topic because it is not about one of the extensions, but it is about the meta box plugin itself, I have included in my theme following this short tutorial: https://metabox.io/docs/include-meta-box-plugin-themes/
But in my dashboard all js and css files are loading with wrong url path, this is from chrome consolde:
GET http://myurl.com/wordpress/home/ifkas/Web/wordpress/wp-content/themes/vzvg/inc/plugins/meta-box/css/select.css?ver=4.5.7 404 (Not Found)
GET http://myurl.com/wordpress/home/ifkas/Web/wordpress/wp-content/themes/vzvg/inc/plugins/meta-box/js/autosave.js?ver=4.5.7
Etc etc, for all css and js files same error, as I can see from the url is wrong instead of:
http://myurl.com/wordpress/home/ifkas/Web/wordpress/wp-content/themes/vzvg/inc/plugins/meta-box/js/autosave.js
should be:
http://myurl.com/wordpress/wp-content/themes/vzvg/inc/plugins/meta-box/js/autosave.js
I have tested on another live website just to make sure and same happens there too, I have used your plugin lots of times, not sure why this happens now? I am using the latest version 4.5.7
I usually plugin and play with your plugin and extensions but I am hopeless now. Please any guidance, I would be grateful, thank you!
Hi Ivo,
Did you define 2 variables like this?
define( 'RWMB_DIR', get_template_directory() . '/inc/plugins/meta-box/' );
define( 'RWMB_URL', get_template_directory_uri() . '/inc/plugins/meta-box/' );
Also, please check symlink on your installation. I guess your server has problem with it (it converts URL to real path on server).
Hi Rilwis, thank you very much for your reply.
For some uknown reason I had defined like this:
define( 'RWMB_DIR', trailingslashit( get_template_directory() ) . 'inc/plugins/meta-box/' );
define( 'RWMB_URL', trailingslashit( get_template_directory() ) . 'inc/plugins/meta-box/' );
Which trailingslashit function made all those wrong url's, have no clue why I did this, probably in a hurry and did not double checked, now is all good, thanks for the heads up. Thanks!