Support Forum
I have updated my Metabox Aoi plugin & now it shows an error code on my frontend.
I use a custom text field with a shortcode entry, which I display on the frontend with a shortcode that has the shortcode rendered within.
[rwmb_meta id="shortcode_presto_player" render_shortcode="true" raw="true"]
Everything worked fine until the latest update, where it shows the following error code with the render:
https://livingfootball.online/wp-content/uploads/2024-02-06-19_13_24-Greenshot-metabox-issue-after-update-scaled.jpg
This is the error code:
var player = document.querySelector('presto-player#presto-player-1'); player.video_id = 3; player.preset = {"id":6,"name":"Livingfootball 1","slug":"livingfootball-1","icon":"","skin":"stacked","play-large":true,"rewind":true,"play":true,"fast-forward":true,"progress":true,"current-time":true,"mute":true,"volume":true,"speed":true,"pip":true,"fullscreen":true,"captions":false,"reset_on_end":false,"auto_hide":true,"captions_enabled":false,"save_player_position":true,"sticky_scroll":false,"sticky_scroll_position":"","on_video_end":"go-to-start","play_video_viewport":false,"hide_youtube":false,"lazy_load_youtube":true,"hide_logo":true,"border_radius":1,"caption_style":"default","caption_background":"#000000","is_locked":false,"cta":{"enabled":false,"percentage":100,"show_rewatch":true,"show_skip":true,"headline":"","bottom_text":"","show_button":true,"button_text":"","button_color":"","button_text_color":"","background_opacity":0,"button_link":{"id":"","url":"","type":"","opensInNewTab":false},"button_radius":0},"watermark":{"enabled":false,"text":"","backgroundColor":"","color":"","opacity":0,"position":""},"search":{"enabled":false,"minMatchCharLength":1,"threshold":0.3,"placeholder":"Search"},"email_collection":{"enabled":false,"behavior":"pause","percentage":0,"allow_skip":false,"provider":"","provider_list":"","provider_tag":"","border_radius":0,"headline":"","bottom_text":"","button_text":"","button_color":"","button_text_color":""},"action_bar":{"enabled":false,"percentage_start":0,"text":"Like this?","background_color":"","button_type":"none","button_count":false,"button_text":"Click Here","button_radius":0,"button_color":"","button_text_color":"","button_link":{"id":"","url":"","type":"","opensInNewTab":false}},"created_by":1,"created_at":"2023-03-16 16:54:15","updated_at":"2023-03-20 14:08:12","deleted_at":""}; player.chapters = []; player.overlays = []; player.tracks = []; player.branding = {"logo":"","color":"#49cbff","logo_width":150,"player_css":""}; player.blockAttributes = {"id":3,"src":"https:\/\/vimeo.com\/720514961","preset":6,"video_id":"720514961","visibility":"public","color":"#00b3ff","mutedPreview":{"enabled":false,"captions":false},"mutedOverlay":{"enabled":false,"src":"","width":200,"focalPoint":{"x":0.5,"y":0.5}},"mutedOverlayType":"text","mutedOverlayText":"Click to play","mutedOverlayImageWidth":200,"playsInline":true,"chapters":[],"overlays":[],"tracks":[],"title":"https:\/\/vimeo.com\/720514961"}; player.skin = "stacked"; player.analytics = true; player.automations = true; player.provider = "vimeo"; player.youtube = {"noCookie":false,"channelId":"","show_count":false};
This is the live site where the error can be inspected:
https://livingfootball.net/sample-post-3/
It is only showing in the console since the error code font is blending in with thee background for some reason.
Thank you for your hell\p.
I also just noticed that the video source is not playing anymore either.
It used to work perfectly prior to the update.
Hello Joe,
I see you are using Bricks builder. It might be related to this topic https://support.metabox.io/topic/unable-to-save-in-bricks-builder-after-updating-to-1-24-1/?swcfpc=1
Please try to deactivate Bricks, add shortcode to the post content and check this issue again.
Hi Peter!
Thank you for your reply.
I will have a look into the related topic.
However the exact same issue appears outside of bricks on a cwicly build with a native Gutenberg shortcode field as well.
Follow up:
Deactivating the revisions extension like mentioned in the other thread did not help for my specific issue.
Hello,
Please try to bypass HTML filtering and let me know how it goes https://docs.metabox.io/shortcode/#bypass-html-filtering
Hi!
I had a look at the documentation.
How would I apply this filter to my existing shortcode?
[rwmb_meta id="shortcode_presto_player" render_shortcode="true" raw="true" ]
Thank you for your help.
Hello,
You just need to add the code in the documentation to the file functions.php in the theme folder
add_filter( 'rwmb_meta_shortcode_secure', '__return_false' );