• Resolved cirowp

    (@cirowordpress)


    I get this error in the page with contact form:
    Notice: Undefined variable: has_toggles in /web/htdocs/www.studiomottamario.it/home/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 349

    Any iades? How can it solve? What does it mean?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    That’s odd.

    Can you edit your form and update it (resave it) and try again.

    Else can you please delete and reinstall your plugin…it’s possible some files have not been updated.

    Thread Starter cirowp

    (@cirowordpress)

    Done! But I see the error… Look at the picture.
    PICTURE

    At the moment i edit this file “class-cf7-grid-layout-public.php” at line 349

    if($has_toggles){
    wp_enqueue_script(‘jquery-toggles’);
    wp_enqueue_style(‘jquery-toggles-css’);
    wp_enqueue_style(‘jquery-toggles-light-css’);
    }

    simply adding
    /* and */ before and after …so:

    /* if($has_toggles){
    wp_enqueue_script(‘jquery-toggles’);
    wp_enqueue_style(‘jquery-toggles-css’);
    wp_enqueue_style(‘jquery-toggles-light-css’);
    }*/

    In this way I don’t see any error and the form works great! But of course it isn’t the correct solution!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Bummer! That’s a bug alright. Just fixed in v2.5.7

    Thread Starter cirowp

    (@cirowordpress)

    OK! Thank you for your help.
    Waiting update version of this great plugin!
    Good work!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    thanks, do put it into a review to encourage others.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error Undefined variable: has_toggles in /domain path/class-cf7-grid-layout’ is closed to new replies.