Zen Cart Logo
Forums / General Questions / Updating Customer Orders Throwing an error

Updating Customer Orders Throwing an error

Locked

Views: 885

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
13 Aug 2009, 12:11 PM
#1
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

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..

Norts And Ones
Norts And Ones

14 Aug 2009, 10:32 AM
#2
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Updating Customer Orders Throwing an error

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

Norts And Ones
Norts And Ones

14 Aug 2009, 11:48 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Updating Customer Orders Throwing an error

Mike_Dean:

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.

Mike_Dean:

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.

14 Aug 2009, 12:01 PM
#4
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

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.!

Norts And Ones
Norts And Ones

14 Aug 2009, 7:12 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.php/Troubleshoot_-_Diagnosing_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.

14 Aug 2009, 8:57 PM
#6
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: Updating Customer Orders Throwing an error

Thanks Dr.

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

Mike

Norts And Ones
Norts And Ones