WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce German (de_DE)
[resolved] PHP notice and warnings undefined constant, headers alreday sent (11 posts)

  1. mmtomm
    Member
    Posted 1 year ago #

    Hi,

    I'm having this in my logfiles after installation of 3.0.4.1 - must I panic now?

    [27-Mar-2013 15:56:17 UTC] PHP Notice:  Use of undefined constant WCDE_LOAD_EXTENSION_SUPPORT - assumed 'WCDE_LOAD_EXTENSION_SUPPORT' in /wp-content/plugins/woocommerce-de/woocommerce-de.php on line 217
    [27-Mar-2013 15:56:17 UTC] PHP Notice:  Use of undefined constant WCDE_LOAD_GETTEXT_FILTERS - assumed 'WCDE_LOAD_GETTEXT_FILTERS' in /wp-content/plugins/woocommerce-de/woocommerce-de.php on line 232
    [27-Mar-2013 15:56:17 UTC] PHP Notice:  Use of undefined constant WCDE_LOAD_EXTENSION_SUPPORT - assumed 'WCDE_LOAD_EXTENSION_SUPPORT' in /wp-content/plugins/woocommerce-de/woocommerce-de.php on line 286
    [27-Mar-2013 15:56:17 UTC] PHP Notice:  Use of undefined constant WCDE_LOAD_EXTENSION_SUPPORT - assumed 'WCDE_LOAD_EXTENSION_SUPPORT' in /wp-content/plugins/woocommerce-de/woocommerce-de.php on line 317
    [27-Mar-2013 15:56:17 UTC] PHP Notice:  Use of undefined constant WCDE_LOAD_EXTENSION_SUPPORT - assumed 'WCDE_LOAD_EXTENSION_SUPPORT' in /wp-content/plugins/woocommerce-de/woocommerce-de.php on line 351
    [27-Mar-2013 15:56:17 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /wp-content/plugins/woocommerce-de/woocommerce-de.php:217) in /wp-content/plugins/woocommerce/classes/class-wc-session-handler.php on line 63
    [27-Mar-2013 15:56:17 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /wp-content/plugins/woocommerce-de/woocommerce-de.php:217) in /wp-content/plugins/woocommerce/woocommerce-functions.php on line 1366

    It appears on the site with debug mode on (I'm on a development env), when debug=false then they are only in my phpErrorLog.

    Thank you
    Tom
    Vienna

    http://wordpress.org/extend/plugins/woocommerce-de/

  2. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @mmtomm:
    Thanks for the feedback!
    Don't panic, these are just "notices" NO errors or such, a big difference :)

    However, I currently cannot reproduce this -- I am always with DEBUG on... -- but I will look into this issue of course and report back!

    Thanks, Dave :)

  3. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @mmtomm:
    Additionally, you did define DEBUG so:
    define( 'WP_DEBUG', true ); -- for ON
    and:
    define( 'WP_DEBUG', false ); -- for OFF

    Right?

    Thanks, Dave :)

  4. mmtomm
    Member
    Posted 1 year ago #

    Hi Dave,

    yes, thaat's true!
    While true, they are messing the page
    while false, they just mess the error log.
    :)

    Thank you for feedback
    Tom

  5. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @mmtomm:
    Hi,
    I just made more tests and still cannot reproduce, no matter if frontend or backend, and no matter if Debug on or off an Debug Log on or off.

    Do you have these constants in use in a theme or another plugin?

    What your used verions of WP and WC, and which theme?

    You can also contact me via http://deckerweb.de/kontakt/

    If I had backend access it might help a lot to get a solution.

    Thanks, Dave

  6. mmtomm
    Member
    Posted 1 year ago #

    Hi Dave,

    the site is not yet accessible from outside.
    I'm using all actual versions:
    WP 3.5.1
    Woo 2.0.5
    Theme Replete (kriesi.at) 1.3.1
    a number of woo plugins all uptodate
    WP SEO Yoast 1.4.4
    WP Retina 2x 1.2.0
    Simple Image Sizes 2.4.2
    P3 (Plugin Performance Profiler) 1.4.1
    CodeStyling Localization 1.99.30

    actually I'm not aware about it (not a coder), meaning, I did not define personally any constants :-|

    Thanks
    Tom

  7. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Tom!

    Thanks for the feedback!
    The issue still seems strange to me.
    I have already build-in checks for the constant.

    However, could you please try this file here: https://www.dropbox.com/s/pxvwwopi06k6dex/woocommerce-de_test.zip
    --> Download, unzip and upload via FTP ---> new version of file woocommerce-de.php, just override the existing file.

    Maybe this solves it?

    Thanks, Dave :)

  8. mmtomm
    Member
    Posted 1 year ago #

    Hi Dave,

    yes, there are no more Notices in the Log now!
    Probably, I keep this till a new version comes...

    Thank you
    Tom

  9. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for the feedback, Tom!
    I'll add these little additions to the next update also, so you don't have to worry... :)

    Thanks, Dave :)

  10. Marcus
    Member
    Posted 1 year ago #

    Same issue with same configuration here.

    The only plugin I have in common with Tom was WP SEO Yoast 1.4.4.

    So far, the ...test.zip solves the issue.

    Thank you guys!

  11. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    Hi all!

    Latest version 3.0.7 fixes that for all :)

    Update or download here: http://wordpress.org/extend/plugins/woocommerce-de/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.