If this is your first visit, check our documentation. To post, register or login.
Forums / Zen Cart Code Suggestions / Not a suggestion but a request...

Not a suggestion but a request...

Locked

Started by hem on 13 May 2008, 9:43 AM · Views: 1,888

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
13 May 2008, 9:43 AM
#1
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Not a suggestion but a request...

I need to do a bit of debugging of the ipn_main_handler.php code. Has anyone got any suggestions on how I would go about this considering that it has to run on a live site and it is a background process so no browser window. I've tried setting some of the DEBUG flags I've found in the code to true but this just has the effect of stopping the code from running ('die'ing with a 'Headers Already Sent' error I'm guessing).

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

13 May 2008, 1:21 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Not a suggestion but a request...

why are you having to debug the code,
seems to work just fine.

Zen cart PCI compliant Hosting

13 May 2008, 3:25 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Not a suggestion but a request...

You can use the PayPal sandbox to do IPN testing.
Plus, enabling the IPN debug logging will cause it to record its progress into log files, which document what it does.

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

13 May 2008, 8:24 PM
#4
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Not a suggestion but a request...

DrByte:

You can use the PayPal sandbox to do IPN testing.
Plus, enabling the IPN debug logging will cause it to record its progress into log files, which document what it does.

Thanks- I've done that- plus I'm getting the emails. However what I'm trying to find out is why user created notifiers are not being called so I need to go a little deeper than what the debug logs are giving.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

14 May 2008, 4:43 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Not a suggestion but a request...

When I'm debugging that code, I add more logging, using the same pattern already used in the file.

.
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 May 2008, 9:00 AM
#6
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Not a suggestion but a request...

DrByte:

When I'm debugging that code, I add more logging, using the same pattern already used in the file.

I guessed that was the answer but I had hoped that there might be a Remote Debug facility (something like Venkman would have been great).

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

14 May 2008, 5:55 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Not a suggestion but a request...

lol ... if only it were javascript :D

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

19 May 2008, 10:50 AM
#8
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Not a suggestion but a request...

Turns out the problem may not be at our end at all- PayPal IPN is currently in meltdown: http://www.theregister.co.uk/2008/05/17/paypal_ipn_meltdown/

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com