Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1208192

    I want a video as a background in a color section. The following problems occur:
    1) There will be a debug error: “Notice: Undefined index: controls in /home/…/htdocs/public/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 746
    2) The video (self-hosted) is only played the first time it is called up. If the page is updated, the video disappears.

    What has already been tried to fix the error:
    1) All plugins have been deactivated
    2) The child theme has been deactivated
    3) The sample video (http://vimeo.com/108453) was used
    4) WP and Enfold are up to date.

    Can someone have a deeper look?. Access data can be found in the private content

    #1208727

    Hey frankeee,

    Did you make sure that you have turned off debug on your WordPress installation? https://codex.wordpress.org/WP_DEBUG. Also please check the page in private to see if you can fix any of the issues listed there.

    Best regards,
    Rikard

    #1209080

    Hello Rikard,
    since this is a development site, debug is enabled. The debugging should help to find the error! So I’m not going to turn off debugging.

    So I’m just trying to find out with the support:
    1) Why the background video doesn’t work?
    2) Why is it first shown and disappears after a reload?
    3) Why doesn’t the autoplay function work?

    So that it is also clear again what has already been tried to fix the error:
    1) All plugins have been deactivated
    2) The child theme has been deactivated
    3) The sample video (http://vimeo.com/108453) was used
    4) WP and Enfold are up to date.

    #1211027

    Hi,

    Thank you for the update.

    Looks like the controls attribute is missing from the array. Please try to edit the enfold\framework\php\function-set-avia-frontend.php file and look for this code around line 746:

    $controls = $attributes['controls'] == 1 ? 'controls' : '';
    

    Replace it with:

    $controls = array_key_exists('controls', $attributes) ? 'controls' : '';
    

    Also, please note that autoplay may not work if the video is not muted due to a browser policy.

    Best regards,
    Ismael

    #1211367

    Hi Ismael,
    thanks and please close this – I will hire a freelancer.

    #1211587

    Hi,

    Thanks for the update, I’ll go ahead and close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Video background not working’ is closed to new replies.