Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default iridium card payment module throwing up error after upgrade

    i upgraded my site a while back but have had no reported problems from customers howeve i have recently had to check my checkout procedure on my website as a customer reported strange writing after pressing confirm order and the payment was being processed, i activated a test product at 1p and checkout when i do checkout i get the attached screenshot.

    Name:  carderror.jpg
Views: 234
Size:  15.1 KB

    the order.php file shows this part to be responsible...

    Code:
    // for low stock email
    
              if ( $stock_left <= STOCK_REORDER_LEVEL ) {
    
                // WebMakers.com Added: add to low stock email
    
                $this->email_low_stock .=  'ID# ' . zen_get_prid($this->products[$i]['id']) . ', ' . $this->products[$i]['model'] . ', ' . $this->products[$i]['name'] . ', ' . 'Stock: ' . $stock_left . "\n\n";
    
              // kuroi: trigger and details for attribute low stock email
    
              } elseif ($attribute_stock_left <= STOCK_REORDER_LEVEL) {
    
                $this->email_low_stock .=  'ID# ' . zen_get_prid($this->products[$i]['id']) . ', ' . $this->products[$i]['model'] . ', ' . $this->products[$i]['name'] . ', ';
    
                                                                                                    foreach($this->products[$i]['attributes'] as $attributes){
    
                                                                                                                    $this->email_low_stock .= $attributes['option'] . ': ' . $attributes['value'] . ', ';
    
                                                                                                    }
    
                                                                                                    $this->email_low_stock .= 'Stock: ' . $attribute_stock_left . "\n\n";
    
              }
    cananyone help me im a noob at coding and the company who does the card processing wont help as it appears to be "the templates fault" card payments process fine and the order goes through btw the screenshot is what happens instead of redirecting to the checkout successful page obviously this doesnt look good for the customers who do choose to place an order

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: iridium card payment module throwing up error after upgrade

    Even using trifocals and an image zoomer, I can't see the error. We need more information and a link to your site. You can post it as yoursiteDOTcom.

    Also, if you'll answer as many of the posting tip questions as you can. Maybe even tell us the version.

  3. #3
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: iridium card payment module throwing up error after upgrade

    I'm using zen 1.5 and my website is wwwdotcrazygamerdotcodotuk the error basically says an invalid argument has been supplied from xboxmemb/includes/orders.php on line 778 and the line refers to product low stock lines, the only way to see the error is by actually checking out using the card payment option and confirming the order so the order goes through fine just I know I'd be concerned if I saw that on a website after making payment. Being on my mobile at the moment I can't read the posting q's that are suggested. Also can you not just click the image to make it bigger? I'm sure the last time I posted a photo here you could view it larger??

  4. #4
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: iridium card payment module throwing up error after upgrade

    ive just got this reply from the tech support guy from the card company.....

    Code:
    Hi,
    
     
    
    I’ve just taken another look at our order.php file, which is a default install of Zen 1.5 and It doesn’t contain the section where it’s erroring.
    
     
    
    It’s this section that isn’t in the default install of Zen:
    
              // kuroi: trigger and details for attribute low stock email
    
              } elseif ($attribute_stock_left <= STOCK_REORDER_LEVEL) {
    
                $this->email_low_stock .=  'ID# ' . zen_get_prid($this->products[$i]['id']) . ', ' . $this->products[$i]['model'] . ', ' . $this->products[$i]['name'] . ', ';
    
                                                                                                    foreach($this->products[$i]['attributes'] as $attributes){
    
                                                                                                                    $this->email_low_stock .= $attributes['option'] . ': ' . $attributes['value'] . ', ';
    
                                                                                                    }
    
                                                                                                    $this->email_low_stock .= 'Stock: ' . $attribute_stock_left . "\n\n";
    
              }
    
    
    
    I’ve attached a copy of our order.php file so you can take a look for yourself. It’s possible that a 3rd party module has altered this core file. If you compare these 2 files (there’s a handy plugin you can get for notepad++ to compare 2 files) you will see there are many changes to the default version.
    
     
    
    Thanks
    still no idea how to fix this, i know the cause but the solution eludes me....

  5. #5
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: iridium card payment module throwing up error after upgrade

    fixed :) help from a new facebook friend turns out it just needed a slight alteration in the coding.

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: iridium card payment module throwing up error after upgrade

    This is where you help others that might have the same problem by letting everyone know what you did to fix it.

  7. #7
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: iridium card payment module throwing up error after upgrade

    Sorry as i didnt fix the issue myself i cant really say for definete but this is what i was told in exact wording
    Code:
    First add an ending curly brace } after the other on line 780 (make a new line 781), then copy line 725 and place before line 778
    apparently this part of coding is not part of the standard order.php in 1.5 although my site is pretty heavily moddified by various coders of varying skill including my noobish self so as you can tell it needs a really good looking through im getting errors such as facebook no longer loading up photos when i try to share as a status or post on a group ect

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: iridium card payment module throwing up error after upgrade

    Those code snippets look like they contain references to "attribute stock", which would be an addon that does indeed change core code.

    Maybe these symptoms mean you didn't upgrade that plugin?
    .

    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.

  9. #9
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: iridium card payment module throwing up error after upgrade

    I'm thinking that the vworker I hired to actually upgrade my website may have been a cowboy as there are a few glitches about in the sites array of php's

 

 

Similar Threads

  1. Replies: 4
    Last Post: 29 Jul 2014, 06:12 AM
  2. Sage Payment Module broke after upgrade
    By kwright in forum Addon Payment Modules
    Replies: 11
    Last Post: 27 Nov 2010, 06:01 PM
  3. Iridium Module - Blank Page - Debug Error
    By katea in forum Addon Payment Modules
    Replies: 3
    Last Post: 11 Jun 2010, 08:49 PM
  4. Credit Card Radio Button Error after Upgrade
    By brikat in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 21 Jan 2008, 11:30 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR