Unlimited Elements for Elementor – Roots Bedrock – Bug
-
Used:
Elementor Pro (3.17.1)
Unlimited Elements for Elementor (1.5.87)
Roots Bedrock setup (https://roots.io/bedrock/)Problem:
Having a uc_post_select field; when using the field in a widget it will show but will just show a static input field without any interaction.Cause:
“Unlimited Elements for Elementor” tries to load additional javascript required for its operation; but the console.log shows the files fail to load.
For example: It tries to include:
/wp/app/plugins/unlimited-elements-for-elementor/provider/core/plugins/unlimited_elements/elementor/assets/uc_editor_admin.js?ver=1.5.87
While the correct path is:
/app/plugins/unlimited-elements-for-elementor/provider/core/plugins/unlimited_elements/elementor/assets/uc_editor_admin.js?ver=1.5.87The reason the path is wrong is because the GlobalsUC::$url_base is set wrong at:
web/app/plugins/unlimited-elements-for-elementor/provider/provider_functions.class.php::71
It uses site_url() to set the $url_base.
But with Bedrock setup the site_url() returns the url to the /wp folder because that is where WordPress is located.Sollution:
Use home_url() instead of site_url() to set GlobalsUC::$url_base
- The topic ‘Unlimited Elements for Elementor – Roots Bedrock – Bug’ is closed to new replies.