Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Location
    Santa Clara, CA
    Posts
    98
    Plugin Contributions
    0

    Default ipn_main_handler Error Line 253

    Hello,

    I've been having communication problems between the admin panel and Paypal (I receive payment notifications from Paypal, but some orders do not show up in admin panel). I checked the error log for the above file and found this:
    Wrong parameter count for define

    if (define('MODULE_PAYMENT_PAYPAL_REFUND_ORDER_STATUS_ID') && (int)MODULE_PAYMENT_PAYPAL_REFUND_ORDER_STATUS_ID > 0 && $isECtransaction) $new_status = MODULE_PAYMENT_PAYPAL_REFUND_ORDER_STATUS_ID;
    Can someone let me know what is wrong with this line? Many thanks.
    Sandy Solis
    SRS Custom Printing
    www.srscustomprinting.com

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

    Default Re: ipn_main_handler Error Line 253

    What version of Zen Cart are you using?
    What version of ipn_main_handler.php are you using?

    That "if(define(" should be "defined", not "define".
    .

    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.

  3. #3
    Join Date
    Feb 2007
    Location
    Santa Clara, CA
    Posts
    98
    Plugin Contributions
    0

    Default Re: ipn_main_handler Error Line 253

    Quote Originally Posted by DrByte View Post
    What version of Zen Cart are you using?
    What version of ipn_main_handler.php are you using?

    That "if(define(" should be "defined", not "define".
    Hi DrByte, thanks for responding. I am using version 1.38a of Zen Cart. I'm not sure what you mean by what version of ipn_main_handler.php - unless you mean the php version, which is 5.2.6

    I did not make any changes to this file but I'll make the change you indicate above. Thanks much.
    Sandy Solis
    SRS Custom Printing
    www.srscustomprinting.com

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

    Default Re: ipn_main_handler Error Line 253

    The misspelled "define" instead of "defined" was a known problem in v1.3.7, fixed in v1.3.7.1 and newer versions.

    So, it appears that you're actually using the v1.3.7 edition of ipn_main_handler.php, and not the v1.3.8a version of that file. Perhaps you missed upgrading that file during a site upgrade? Might also want to check the other files in that folder too.
    .

    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.

  5. #5
    Join Date
    Feb 2007
    Location
    Santa Clara, CA
    Posts
    98
    Plugin Contributions
    0

    Default Re: ipn_main_handler Error Line 253

    Quote Originally Posted by DrByte View Post
    The misspelled "define" instead of "defined" was a known problem in v1.3.7, fixed in v1.3.7.1 and newer versions.

    So, it appears that you're actually using the v1.3.7 edition of ipn_main_handler.php, and not the v1.3.8a version of that file. Perhaps you missed upgrading that file during a site upgrade? Might also want to check the other files in that folder too.

    How can I tell if the files are from a previous version - where do I look? Thanks!
    Sandy Solis
    SRS Custom Printing
    www.srscustomprinting.com

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

    Default Re: ipn_main_handler Error Line 253

    Compare the contents of your files against the original version of those files. You can download the original version by following the download link on the Zen Cart home page.

    Tools like the free WinMerge are very useful in comparing files, both for troubleshooting and for doing upgrades.
    .

    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.

  7. #7
    Join Date
    Feb 2007
    Location
    Santa Clara, CA
    Posts
    98
    Plugin Contributions
    0

    Default Re: ipn_main_handler Error Line 253

    Thanks DrByte as always for the help. I have uploaded the correct version of the ipn_main_handler and checked all the other files in the modules/payment/paypal section and they are current. Do I have to check ALL the files, or just the ones in Payment? Thanks again.
    Sandy Solis
    SRS Custom Printing
    www.srscustomprinting.com

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

    Default Re: ipn_main_handler Error Line 253

    also check the "modules" folder in your languages subfolders.
    .

    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.

 

 

Similar Threads

  1. v139a ipn_main_handler error from PayPal
    By jgold723 in forum PayPal Website Payments Pro support
    Replies: 0
    Last Post: 5 Mar 2014, 05:05 PM
  2. Multiple categories link manager - won't show above 253
    By fakeDecoy in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 19 Oct 2011, 03:11 PM
  3. syntax error, unexpected T_STRING in ipn_main_handler.php
    By saplanet in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 3 Oct 2010, 01:52 AM
  4. ipn_main_handler file missing error but file present
    By Bryony in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 11 Dec 2007, 02:08 AM
  5. Runtime error: Line 12 and Line 45 when logging into Admin
    By Harpers in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 12 Oct 2007, 07:54 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