Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1242260

    Hi There,

    I have been getting a weird error message at the top of my website on the front end. I tried to deactivate plugins and that didn’t seem to work. The below is the message I am getting:

    Notice: Undefined index: controls in /var/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 779

    What am I doing incorrectly?

    Thanks!

    #1243812

    Hey Chris,

    Thank you for the inquiry.

    Did you modify any of the theme files? The attribute controls should have a default value, or should be defined by default.

    To fix the issue temporarily, please edit the /enfold/framework/php/function-set-avia-frontend.php line 779..

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

    .. and replace it with:

    $controls = isset($attributes['controls']) && $attributes['controls'] == 1 ? 'controls' : '';
    

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.