Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
962 มุมมอง

Hi,

I'm trying to add a video on a webpage, but getting the following error. I've added numerous other videos (youtube/vimeo) before, but this time not.

Odoo Client Error

UncaughtPromiseError > OwlError


Uncaught Promise > Invalid props for component 'VideoSelector': 'media' is not a object


Occured on mycompany.com on 2025-05-15 06:59:56 GMT


OwlError: Invalid props for component 'VideoSelector': 'media' is not a object

    OwlError@https://mycompany.com/web/assets/8/debug/web.assets_web.js:8078:5 (/web/static/lib/owl/owl.js:87)

    validateProps@https://mycompany.com/web/assets/8/debug/web.assets_web.js:11205:19 (/web/static/lib/owl/owl.js:3214)

    template@https://mycompany.com/web/assets/8/debug/web.assets_web.js line 13743 > Function:53:17 (/web/static/lib/owl/owl.js:5752)

    _render@https://mycompany.com/web/assets/8/debug/web.assets_web.js:9774:38 (/web/static/lib/owl/owl.js:1783)

    render@https://mycompany.com/web/assets/8/debug/web.assets_web.js:9766:18 (/web/static/lib/owl/owl.js:1775)

    initiateRender@https://mycompany.com/web/assets/8/debug/web.assets_web.js:10446:23 (/web/static/lib/owl/owl.js:2455)


Any suggestions how to fix?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If you're using Studio or XML/JS customization:
media: {

    type: 'video',

    videoType: 'youtube',  // or 'vimeo'

    videoId: 'dQw4w9WgXcQ',  // actual ID from YouTube or Vimeo

}

Check where you're adding the video (likely in a custom widget, template, or JSON field), and make sure media is a proper object as shown above.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ต.ค. 24
3267
1
เม.ย. 25
1225
1
ธ.ค. 22
7070
2
ก.ย. 25
1994
1
ส.ค. 25
1639