Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Updating Customer Orders Throwing an error

    Something wierd is going on.

    I have not made any changes, yet now when I amned a customers order statusm the following error is thrown up;

    Warning: strstr() [function.strstr]: Empty delimiter in ~/public_html/includes/functions/functions_email.php on line 103

    This is what is on line 103

    / ignore sending emails for any of the following pages

    // (The EMAIL_MODULES_TO_SKIP constant can be defined in a new file in the "extra_configures" folder)

    if (defined('EMAIL_MODULES_TO_SKIP') && in_array($module,explode(",",constant('EMAIL_MODULES_TO_SKIP')))) return false;




    Warning: Cannot modify header information - headers already sent by (output started at ~/public_html/includes/functions/functions_email.php:103) in /home3/mikedean/public_html/admin/includes/functions/general.php on line 21

    And line 21 of this file is as follows

    header('Location: ' . $url);
    If I hit the back button on the browsers, be it IE or FF, the status has been updated.

    I entered a dummy order, amened the status, and the email notification came through..

    Any hints as to why this would have occured.

    Using 1.3.8a with all latest patches..
    Last edited by Mike_Dean; 13 Aug 2009 at 01:17 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: Updating Customer Orders Throwing an error

    No one have any suggestions..? It's very frustrating..!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Updating Customer Orders Throwing an error

    Quote Originally Posted by Mike_Dean View Post
    Warning: strstr() [function.strstr]: Empty delimiter in ~/public_html/includes/functions/functions_email.php on line 103

    This is what is on line 103

    / ignore sending emails for any of the following pages

    // (The EMAIL_MODULES_TO_SKIP constant can be defined in a new file in the "extra_configures" folder)

    if (defined('EMAIL_MODULES_TO_SKIP') && in_array($module,explode(",",constant('EMAIL_MODULES_TO_SKIP')))) return false;
    Sounds like you've added a bad define() for EMAIL_MODULES_TO_SKIP somewhere in your site.

    Quote Originally Posted by Mike_Dean View Post
    Warning: Cannot modify header information - headers already sent by (output started at ~/public_html/includes/functions/functions_email.php:103) in /home3/mikedean/public_html/admin/includes/functions/general.php on line 21
    That's related to the previous message, and will go away when you fix that problem.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: Updating Customer Orders Throwing an error

    Thanks Dr,

    But I can put my hand on my heart and tell you nothing was added. One moment it was fine, and then later the same day, this happens..

    Not really sure where to dig to look, but I will sharpen my shovel.!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Updating Customer Orders Throwing an error

    Whenever something happens "suddenly" like that, I go back to doing a full file-by-file comparison against a good backup:
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: Updating Customer Orders Throwing an error

    Thanks Dr.


    Good advice, I'll go down that path...


    Mike

 

 

Similar Threads

  1. my Custom code is throwing an error
    By tcarden in forum General Questions
    Replies: 1
    Last Post: 31 Jan 2013, 12:45 AM
  2. Customer Notified - Error After Updating
    By gbengoose in forum General Questions
    Replies: 1
    Last Post: 21 Jan 2011, 02:47 AM
  3. $db->Execute throwing error
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 May 2008, 10:51 PM
  4. paypal express throwing PHP error?
    By SarahL in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 1 Nov 2007, 02:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg