Support » Plugin: Store Locator Plus® for WordPress » Header errors

  • Warning: sprintf() [function.sprintf]: Too few arguments in /Applications/MAMP/htdocs/sites/P/PT Gaming/Local/wp-content/plugins/store-locator-le/WPCSL-generic/classes/CSL-plugin.php on line 937

    Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/sites/P/PT Gaming/Local/wp-content/plugins/store-locator-le/WPCSL-generic/classes/CSL-plugin.php:937) in /Applications/MAMP/htdocs/sites/P/PT Gaming/Local/wp-includes/option.php on line 568

    Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/sites/P/PT Gaming/Local/wp-content/plugins/store-locator-le/WPCSL-generic/classes/CSL-plugin.php:937) in /Applications/MAMP/htdocs/sites/P/PT Gaming/Local/wp-includes/option.php on line 569

    This can be changed by commenting out:

    $this->notifications->add_notice(
                            9,
                            sprintf(
                                __('Let us know how awesome '.$this->name.' is! Go to
                                <a href="'.$this->rate_url.'" target="_blank">the plugin page</a>.
                                and rate the plugin.  </br> Turn off this message in
                                <a href="'.admin_url().'/options-general.php?page='.$this->prefix.'-options#display_settings">Display Settings.</a>
                                Is something not right? <a href="'.$this->forum_url.'" target="_blank">Let us know.</a>
                                This message will self destruct in: '.$hours_remaining.'',WPCSL__slplus__VERSION)
                                )
    
            			);

    Starting at line 928 in CSL-plugin.php

    This doesn’t affect functionality, but should be addressed.

    http://wordpress.org/extend/plugins/store-locator-le/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lance Cleveland

    (@charlestonsw)

    Thanks for the report, I’ll check that out and try to sneak it in last-minute for 3.9.

    i had some header errors as well (last update) but somehow i have this message in wordpress for a lot of plugins, deactivate and reactivate solves the header allready send message.

    Maybe it has to do something with the used caching plugin w3

    Plugin Author Lance Cleveland

    (@charlestonsw)

    @fort123 – if you see ANY “headers already sent” messages for any CSA plugin please post the full message here if it is showing you a file name and line number.

    Often it is because you have a strict environment set with PHP or your webs server. I have mine “turned all the way up” but difference in PHP versions or web servers mean I will not always see the same errors and warnings you see. MOST of the time it is a warning that is getting sent out to Apache instead of the error log. Typical culprit is php.ini having “display_errors” turned ON.

    It should be OFF on a production system and only ON with dev systems.

    Why? Because even a simple warning that will not break the program, like “PHP may not support this feature in the future” messages will cause PHP + your web server to barf out “header already sent” messages all over the place.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header errors’ is closed to new replies.