
Tagged: audio player, avia editor, Enfold 7.0
-
AuthorPosts
-
March 19, 2025 at 9:55 am #1479703
Hello.
Since Enfold 7.0. it is no longer possible to use the audio player element in the Avia Layout Editor with Firefox & Safari. After adding any audio file the playlist remains empty and an error is displayed in the developer console of the browser. I have observed this in two browsers and on three different Enfold-based websites.Error message from Safari 18.3:
[Error] TypeError: update_html.indexOf is not a function. (In 'update_html.indexOf( '###avia64###:' )', 'update_html.indexOf' is undefined) (anonyme Funktion) (avia-builder.js:2324) each (jquery.min.js:2:3134) update_builder_html (avia-builder.js:2251) (anonyme Funktion) (avia-media.js:553) I (underscore.min.js:2:9612) (anonyme Funktion) (backbone.min.js:2:1130) (anonyme Funktion) (avia-media.js:413) p (backbone.min.js:2:3705) (anonyme Funktion) (backbone.min.js:2:3499) a (backbone.min.js:2:694) (anonyme Funktion) (backbone.min.js:2:3382) _onModelEvent (backbone.min.js:2:14082) p (backbone.min.js:2:3763) (anonyme Funktion) (backbone.min.js:2:3510) a (backbone.min.js:2:694) (anonyme Funktion) (backbone.min.js:2:3382) click (media-views.min.js:2:72101) click (media-views.min.js:2:51096) dispatch (jquery.min.js:2:40041)
Best Regards,
MischaMarch 19, 2025 at 7:49 pm #1479741Hey Mischa,
I can’t reproduce this in Firefox. Did you check if maybe there is a plugin or custom code conflict?
Best regards,
RikardMarch 20, 2025 at 10:02 am #1479784Thank you for your help.
Unfortunately, the problem also occurs for me from version 7.0 onwards, even without a child theme.
I have made a short video demonstrating the issue:
(see private content)Audio files can be selected and rearranged, but after adding them, the playlist remains empty in the settings window.
Best regards,
Mischa—
Enfold 7.1 (with and without Child-Theme)
WordPress 6.7.2
Web server Apache
PHP version 8.2.28
Browsers: Firefox 128.8.0esr, Chrome 134.0.6998.118, Safari 18.3Console-Error-Message:
avia-builder.js?ver=6.7.2-7.1 Uncaught TypeError: update_html.indexOf is not a function at HTMLDivElement.<anonymous> (avia-builder.js?ver=6.7.2-7.1:2324:27) at ce.each (jquery.min.js?ver=3.7.1:2:3129) at e.<computed>.each (jquery.min.js?ver=3.7.1:2:1594) at $.AviaBuilder.update_builder_html (avia-builder.js?ver=6.7.2-7.1:2251:23) at avia-media.js?ver=7.1:553:36 at m.I (underscore.min.js?ver=1.13.7:2:9610) at n.map (backbone.min.js?ver=1.6.0:2:1129) at h.Collection.<anonymous> (avia-media.js?ver=7.1:413:24) at p (backbone.min.js?ver=1.6.0:2:3700) at f (backbone.min.js?ver=1.6.0:2:3497)
PS:
I have created a temporary fix for the avia-builder.js from line 2324.// Put this in avia-builder.js at line 2324: $(this).each(function() { // Check if update_html is a string or an array before using indexOf if (typeof update_html === 'string' || Array.isArray(update_html)) { if (update_html.indexOf('avia_builder_') !== -1) { // code to process the update ... if( update_html.indexOf( '###avia64###:' ) !== -1 ) { // encode base64 string update_html = update_html.replace( '###avia64###:', '' ); update_html = atob( update_html ); } } } else { // Handle the case where update_html is not a string or array console.error('update_html is not a string or array:', update_html); } });
-
This reply was modified 1 week, 6 days ago by
Mischa.
March 21, 2025 at 12:56 pm #1479862Hi,
Thanks for that, I’m still not able to reproduce this problem though. I’d be happy to give you access to a test installation so that you can check it for yourself.
Best regards,
RikardMarch 21, 2025 at 4:56 pm #1479874Hi Rikard.
I’ll send you WordPress and FTP credentials asap.
Have a nice weekend!
MishaMarch 24, 2025 at 10:30 am #1480036Good Morning Rikard!
With a fresh WordPress 6.7.2 & Enfold 7 installation using the Enfold “DJ Demo,” the error did not initially occur.
After installing YOAST SEO and adjusting a few Enfold settings to match my standard configuration, the issue reappeared.I went through each setting step-by-step and identified a clear cause:
When setting the option “Integrated (Bundled) LayerSlider Plugin” to “Deactivate but leave plugin files in theme folder,” the backend audio player error immediately occurs.You’ll be pleased to hear that neither YOAST SEO nor the performance settings for CSS/JS file compression & merging have anything to do with this issue.
Simply put:
LayerSlider off → audio player broken. 🙂Best Regards,
MischaMarch 24, 2025 at 7:21 pm #1480064 -
This reply was modified 1 week, 6 days ago by
-
AuthorPosts
- You must be logged in to reply to this topic.