Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2007
    Posts
    46
    Plugin Contributions
    0

    Default What is this error?

    I'm getting this error after setting up Paypal express:


    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/electrp3/public_html/includes/modules/payment/paypalwpp.php on line 1467

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/electrp3/public_html/includes/modules/payment/paypalwpp.php on line 1467

    Warning: Cannot modify header information - headers already sent by (output started at /home/electrp3/public_html/includes/modules/payment/paypalwpp.php:1467) in /home/electrp3/public_html/includes/modules/payment/paypalwpp.php on line 1492

    Warning: Cannot modify header information - headers already sent by (output started at /home/electrp3/public_html/includes/modules/payment/paypalwpp.php:1467) in /home/electrp3/public_html/includes/functions/functions_general.php on line 44
    Electronic-Pulse.com
    Discount consumer electronics

    EPNFragrances.com
    Wholesale fragrances for men and women


  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What is this error?

    Chances are that you are using v1.3.7, which is old code.

    Please upgrade to v1.3.7.1 to get the bugfixes related to PayPal and many other features.
    Or install the PayPal stuff manually from here:
    http://www.zen-cart.com/forum/showthread.php?t=56216
    .

    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
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: What is this error?

    I get this error and I have v138... whats wrong?

  4. #4

    Default Re: What is this error?

    i have been getting this message also, can somone tell me what i can do

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What is this error?

    If you're using v1.3.7, follow the instructions posted earlier.

    If you're using v1.3.8 or v1.3.8a, please post the exact complete error message ... because if it's identical to the one posted earlier, then you're not really using v1.3.8 code.
    .

    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

    Default Re: What is this error?

    I tried upgrading to 1.3.8a and i thought it worked. my error says
    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/electrp3/public_html/includes/modules/payment/paypalwpp.php on line 1467

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/electrp3/public_html/includes/modules/payment/paypalwpp.php on line 1467

    Warning: Cannot modify header information - headers already sent by (output started at /home/electrp3/public_html/includes/modules/payment/paypalwpp.php:1467) in /home/electrp3/public_html/includes/functions/functions_general.php on line 44
    i get this message when i hit the express paypal checkout feature in my cart

    can i fix this by reuploading functions_general.php and paypalwpp.php?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What is this error?

    First, functions_general.php has nothing to do with it. Its mention is simply a secondary effect caused by the first error.

    Second, how come the error message you just posted contains the same path info as the one by electronic pulse posted by someone else earlier?

    It seems you're not reporting the exact error.

    Line 1467 in v1.3.8a has nothing to do with any array_merge activities. Thus if you're getting that error, then you're not using v1.3.8a code.
    .

    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.

  8. #8

    Default Re: What is this error?

    is this better?

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/bigmoney/public_html/catalog/includes/modules/payment/paypalwpp.php on line 1467

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/bigmoney/public_html/catalog/includes/modules/payment/paypalwpp.php on line 1467

    Warning: Cannot modify header information - headers already sent by (output started at /home/bigmoney/public_html/catalog/includes/modules/payment/paypalwpp.php:1467) in /home/bigmoney/public_html/catalog/includes/functions/functions_general.php on line 44

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What is this error?

    Well, in the v1.3.8 code, lines 1465-1469 read as follows (note: no mention of any array_merge operation):
    Code:
          // track one-time charges
          if ($order->products[$i]['onetime_charges'] != 0 ) {
            $onetimeSum += $order->products[$i]['onetime_charges'];
            $onetimeTax += zen_calculate_tax($order->products[$i]['onetime_charges'], $order->products[$i]['tax']);
          }
    In v1.3.7, line 1467 reads as shown:
    Code:
        $this->zcLog('ec_step1 - 2 -submit', print_r(array_merge($return_url, $cancel_url, $options), true));
    In v1.3.7.1, lines 1463-1469 read thus:
    Code:
        // handle discounts such as gift certificates and coupons
        if ($credits_applied > 0) {
          $optionsST['HANDLINGAMT'] -= $creditsApplied;
        }
    
        // add all one-time charges
        $optionsST['ITEMAMT'] += $onetimeSum;

    So, if you're seeing an array_merge() error on line 1467, that tells me that your paypal express checkout module is from v1.3.7.

    The v1.3.7 PayPal code had a number of glitches, and several patches were released, culminating in v1.3.7.1.

    So, as I stated in my first reply to this issue (above), you need to either apply the patch, or upgrade your site.

    If you're going to upgrade your site, you may as well jump to 1.3.8a, as it is the latest as of this writing.
    .

    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.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: What is this error?

    Quote Originally Posted by bmpt View Post
    I tried upgrading to 1.3.8a and i thought it worked.
    It seems it didn't. Since you're having v1.3.7 error messages, it means that at least your PHP (and other) files haven't been upgraded thoroughly on your server ... which means your upgrade is incomplete.
    .

    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. Replies: 4
    Last Post: 24 Jun 2013, 09:51 PM
  2. wHAT DOES THIS ERROR CODE MEAN AND HOW WOULD I FIX THIS?
    By Snaggle in forum General Questions
    Replies: 2
    Last Post: 15 Jun 2011, 10:27 PM
  3. Replies: 4
    Last Post: 4 Aug 2010, 11:41 AM
  4. What is this error?
    By marbles in forum General Questions
    Replies: 4
    Last Post: 10 Jul 2008, 02:27 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