Avada › Forums › Community Forum › SOLVED – Avada Live Builder errors when using SVG images from imported demo
Tagged: Error, image, javascript, svg, Live Builder, mimetype
-
AuthorPosts
-
Hi! First contribution here, hoping it can save some of you the precious time I’ve lost on this one.
After importing the “Avada Business Coach” demo on a fresh and clean install of WordPress, I had JS errors in the Avada Live Builder on every page: Cannot read properties of undefined (reading ‘full’).
Problem: the live builder JavaScripts couldn’t read the width/height attributes of the SVG images from the imported demo, and generated errors in the console. Sometimes a popup window appeared containing the error message.
Since my own uploaded SVG images worked perfectly, I finally figured that the problem was the way the demo images were stored in the database: their mime type appeared as “font/svg” instead of “image/svg+xml“.Solution: I manually changed their mimetype in the database. Not the cleanest solution, but working perfectly.
Procedure: open the wp_posts table in an SQL editor (like phpMyAdmin), filter on the “post_mime_type” column and change “font/svg” to “image/svg+xml” on the problematic images.
That’s it. No more errors.
Found 5 occurrences to change ….still generates the same trash (just not immediately)
Cannot read properties of undefined (reading 'full') TypeError: Cannot read properties of undefined (reading 'full') at n.buildContentAttr (https://abc.com/wp-content/plugins/fusion-builder/front-end/fusion-frontend-combined.min.js?ver=3.6.1:1:647147) at n.filterTemplateAtts (https://abc.com/wp-content/plugins/fusion-builder/front-end/fusion-frontend-combined.min.js?ver=3.6.1:1:641772) at n.getTemplateAtts (https://abc.com/wp-content/plugins/fusion-builder/front-end/fusion-frontend-combined.min.js?ver=3.6.1:1:201437) at n.getTemplate (https://abc.com/wp-content/plugins/fusion-builder/front-end/fusion-frontend-combined.min.js?ver=3.6.1:1:56496) at n.renderContent (https://abc.com/wp-content/plugins/fusion-builder/front-end/fusion-frontend-combined.min.js?ver=3.6.1:1:201930) at n.render (https://abc.com/wp-content/plugins/fusion-builder/front-end/fusion-frontend-combined.min.js?ver=3.6.1:1:198390) at n.addChildView (https://abc.com/wp-content/plugins/fusion-builder/front-end/fusion-frontend-combined.min.js?ver=3.6.1:1:319524) at p (https://abc.com/wp-includes/js/backbone.min.js?ver=1.4.0:2:3249) at f (https://abc.com/wp-includes/js/backbone.min.js?ver=1.4.0:2:2929) at a (https://abc.com/wp-includes/js/backbone.min.js?ver=1.4.0:2:841)
-
AuthorPosts
- You must be logged in to reply to this topic.