• Resolved gepe

    (@gepe)


    Hello,Since recent upgrade I am getting the following errors giving two extra lines in the header. Thank you for your help

    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /homepages/20/d516795946/htdocs/clickandbuilds/LesGlotteTrotters/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 1168

    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /homepages/20/d516795946/htdocs/clickandbuilds/LesGlotteTrotters/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 1180

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/20/d516795946/htdocs/clickandbuilds/LesGlotteTrotters/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php:1168) in /homepages/20/d516795946/htdocs/clickandbuilds/LesGlotteTrotters/wp-includes/functions.php on line 6221

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/20/d516795946/htdocs/clickandbuilds/LesGlotteTrotters/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php:1168) in /homepages/20/d516795946/htdocs/clickandbuilds/LesGlotteTrotters/wp-admin/includes/misc.php on line 1259

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/20/d516795946/htdocs/clickandbuilds/LesGlotteTrotters/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php:1168) in /homepages/20/d516795946/htdocs/clickandbuilds/LesGlotteTrotters/wp-admin/includes/template.php on line 1962

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

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

    (@aurovrata)

    ok, thanks for the heads up. This is a minor warning…it will not affect the funcitoning of the plugin.

    I will release v3.1.4 tomorrow with a fix.

    Thread Starter gepe

    (@gepe)

    Thank you very much for your response, agree this is not affecting the function, just giving trouble.
    Regards

    Hi Aurovrata,
    I’m getting the same error and have updated to the latest release,

    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/dryrunco/public_html/wp/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 1168

    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/dryrunco/public_html/wp/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 1180

    Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php:1168) in /home/dryrunco/public_html/wp/wp-includes/functions.php on line 6221

    Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php:1168) in /home/dryrunco/public_html/wp/wp-admin/includes/misc.php on line 1259

    Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php:1168) in /home/dryrunco/public_html/wp/wp-admin/admin-header.php on line 9

    @gepe ,
    If you go to your cpanel and disable “display_errors” in your MultiPHP INI Editor, the error won’t display on your site.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    just giving trouble

    hehe, no issues. Released v3.1.4 with the fix. Happy coding!

    Thread Starter gepe

    (@gepe)

    Hi, thank you for the update.
    I have upgraded to 3.1.4 but still having the error.
    I have uninstalled completely the plugin, reinstall it, cleared cache but still getting the error.
    in class-cf7-grid-layout-public.php, changing line 1168 and 1180 from “continue 1” to “continue 2” seems to fix the error but it’s just a try, i am not a PHP expert ??
    Note: the error was blocking access to WordPress dashboard, so to be able to get in i had to rename the pluggin by FPT.

    Regards.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    what version of PHP are you using?

    from PHP continue documentation:

    PHP 7.3.0 continue within a switch that is attempting to act like a break statement for the switch will trigger an E_WARNING.

    I am guessing you’re using 7.3.x which would explain why you keep getting this error, even with the fix I coded in.

    I hadn’t realised this change in 7.3, so I will need to simple comment these lines out.

    Done in v3.1.5

    Thread Starter gepe

    (@gepe)

    Yep, that is correct i am currently PHP 7.3.16 .
    Update 3.1.5 is working correctly, thank you very much.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘New Error with version 3.1.3’ is closed to new replies.