• Resolved Lillis

    (@lillis)


    I get this error message while in admin area:


    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /customers/9/5/5/vedalila.se/httpd.www/wp-content/plugins/business-directory-plugin/includes/admin/class-csv-exporter.php on line 402 Warning: Cannot modify header information – headers already sent by (output started at /customers/9/5/5/vedalila.se/httpd.www/wp-content/plugins/business-directory-plugin/includes/admin/class-csv-exporter.php:402) in /customers/9/5/5/vedalila.se/httpd.www/wp-admin/includes/misc.php on line 1144 Warning: Cannot modify header information – headers already sent by (output started at /customers/9/5/5/vedalila.se/httpd.www/wp-content/plugins/business-directory-plugin/includes/admin/class-csv-exporter.php:402) in /customers/9/5/5/vedalila.se/httpd.www/wp-includes/pluggable.php on line 1223

    What is wrong? I can’t even reach other areas in admin, this message pops up.

    • This topic was modified 7 years, 3 months ago by Lillis.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi @lillis,

    Sorry that you ran into issues here!

    Looking at the info you provided above, one line sticks out from the rest:

    Warning: Cannot modify header information – headers already sent by (output started at /customers/9/5/5/vedalila.se/httpd.www/wp-content/plugins/business-directory-plugin/includes/admin/class-csv-exporter.php:402)

    When I see that information, it tells me that some other plugin has tried to inject the HTTP headers without checking to see if they were already present via PHP function calls.

    Business Directory already makes the check to ensure that we don’t re-inject headers by using this PHP function call, but not all plugins do. What usually happens in this scenario is this:
    – Business Directory loads first, checks the headers. Sees they are empty. Injects them
    – Some other plugin loads next, fails to check the headers, injects headers anyway.
    – Error message above pops up when BD code runs (making it seem like BD is the culprit)

    We’ve been seeing this kind of issue since 2012 when we started this plugin and the only way to find it is through a conflict test.

    Here is an article about how to test for theme and plugin conflicts with Business Directory, which may help pinpoint the issue: http://businessdirectoryplugin.com/support-forum/faq/how-to-check-for-plugin-and-theme-conflicts-with-bd/

    Once you identify the offending plugin, you’ll want to contact them and let them know what we said above. Or you can replace that plugin with another one that has similar functionality. But the issue isn’t coming from BD, that much I say with certainty.

    I hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Error message. Warning’ is closed to new replies.