• Hello,

    I have a problem with saving the product option (on the “edit product option” page):
    If I hit the save button, it just shows some kind of code and says:

    New Option Name:
    Warning: Cannot modify header information – headers already sent by (output started at /homepages/39/d607017682/htdocs/wordpress/wp-content/plugins/sunshine-photo-cart/sunshine-functions.php:31) in /homepages/39/d607017682/htdocs/wordpress/wp-includes/pluggable.php on line 1228

    Screenshots:
    https://www.img-load.de/images-i1829758bs65i2.jpg

    If I got back to the options page and reload it, the changes are applied and saved – so it’s just some kind of display error but it’s really annoying.

    https://www.ads-software.com/plugins/sunshine-photo-cart/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Disable all error notices/warnings. You can do so by editing your wp-config.php file.

    https://codex.www.ads-software.com/Debugging_in_WordPress

    Try turning off debug, and also try having all errors going to a log file

    Thread Starter naddidi

    (@naddidi)

    I added these lines to the wp-config:

    define(‘WP_DEBUG’, false);
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );

    The problem is still there!!!

    Thread Starter naddidi

    (@naddidi)

    I tried to recreate the problem offline (localhost) – Both wordpress installations are updated to 4.4.2., there are the same plugins installed and the same theme files. It doesn’t occur there.

    Try changing it to:

    define('WP_DEBUG', true);

    If it is not happening on your localhost, it is a server setup issue on the live server. Likely something in PHP that has error reporting turned on real high.

    Thread Starter naddidi

    (@naddidi)

    Ok, I just found out, that it’s not just a display error. I can’t add anything to the cart if the add-on is activated.
    Maybe it’s – as you said – because of the php-settings on my server. Which php-version should I use? 5.5, 5.6, 7.0? What else should I adjust? Should I add a php.ini? If so, what settings should I use?

    Try 5.6

    Thread Starter naddidi

    (@naddidi)

    5.6 was the default one. I tried the others, but none of them changed anything.

    Can you do 5.5?

    Thread Starter naddidi

    (@naddidi)

    Tried all versions, didn’t change anything. Maybe there are some conflicting setting in the php.ini ???

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error when saving product options’ is closed to new replies.