Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Jul 2006
    Posts
    144
    Plugin Contributions
    0

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    Hi Kim!

    I uninstalled the Order Steps and you were right, it seems that the problem is gone. Thank you for the solution, now there will be a happy new year ;-)

    Do you know if there are a working module like Order Steps available for 1.3.5 ?

    Thanks again !
    /Typhoon

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    NOTE: v1.3.5 is rather buggy ... you should really consider upgrading to v1.3.7 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Jul 2006
    Posts
    144
    Plugin Contributions
    0

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    Hi Ajeh!

    I was thinking about that but I'm afraid that an upgrade will give me more trouble/problems... But if it's only to click "upgrade" and that's it, maybe that's a good solution.

    /Typhoon

  4. #14
    Join Date
    Jul 2006
    Posts
    144
    Plugin Contributions
    0

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    I tried again just now to put an order and I reveived the strange error again so it didn't have anything to do with the Order Steps module

    Warning: Invalid argument supplied for foreach() in /.../includes/classes/order.php on line 750

    Warning: Cannot modify header information - headers already sent by (output started at /.../includes/classes/order.php:750) in /.../includes/functions/functions_general.php on line 41

    In functions_general on line 41 we have this function:
    Code:
      while (strstr($url, '&')) $url = str_replace('&', '&', $url);
    
        header('Location: ' . $url);
    
        zen_exit();
      }
    This is the original function...

    So, the problem are still there... h e l p ...

    /Typhoon
    Last edited by Typhoon; 31 Dec 2006 at 11:00 AM.

  5. #15
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    you have white space at the end of this file
    includes/classes/order.php

    you need to open in a GOOD text editor
    view line numbers
    go to the bottom of the page,
    put cursor after the last ?>
    hit delete a few times
    save and re-upload

    If you turn on the view line numbers you will see that there are lines defined after the closing ?> which means that they actually exsist and can and do cause issues
    Zen cart PCI compliant Hosting

  6. #16
    Join Date
    Jul 2006
    Posts
    144
    Plugin Contributions
    0

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    Hi Merlinpa1969 !

    I checked that file and it didn't contain any extra spaces or any extra rows. But do you think that there is a file that contains extra rows and that's why I have this problem ? If so, any ideas which files I should check ?

    Thanx for trying to help...

    Regards,
    /Typhoon

  7. #17
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    Please give what I suggested a shot,
    your error tells you what file has the issue

    /includes/classes/order.php
    Zen cart PCI compliant Hosting

  8. #18
    Join Date
    Jul 2006
    Posts
    144
    Plugin Contributions
    0

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    I did check includes/classes/order.php and it didn't contain any extras ... sorry...

    /Typhoon

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

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    I don't see any "foreach" commands in the order.php file ... thus ... it appears you must have some sort of contribution installed that is doing something different than the default version of this file.

    What exactly is on line 750 of the order.php file mentioned in the error ? Approx 10 lines above and below that would be helpful to see 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.

  10. #20
    Join Date
    Jul 2006
    Posts
    144
    Plugin Contributions
    0

    Default Re: Invalid argument in order.php on line 750 at checkout_process

    Between row 735 and 778 in my order.php:

    Code:
             
    //        if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) {
    if ($stock_left <= 0) {
    // only set status to off when not displaying sold out
    if (SHOW_PRODUCTS_SOLD_OUT == '0') {
    $db->Execute("update " . TABLE_PRODUCTS . " set products_status = 0 where products_id = '" . zen_get_prid($this->products[$i]['id']) . "'");
           }
        }
    
    // 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";
    }
    }
    }
    
    // Update products_ordered (for bestsellers list)
    //    $db->Execute("update " . TABLE_PRODUCTS . " set products_ordered = products_ordered + " . sprintf('&#37;d', $order->products[$i]['qty']) . " where products_id = '" . zen_get_prid($order->products[$i]['id']) . "'");
    $db->Execute("update " . TABLE_PRODUCTS . " set products_ordered = products_ordered + " . sprintf('%f', $this->products[$i]['qty']) . " where products_id = '" . zen_get_prid($this->products[$i]['id']) . "'");
    
    $zco_notifier->notify('NOTIFY_ORDER_PROCESSING_STOCK_DECREMENT_END');
    
    $sql_data_array = array('orders_id' => $zf_insert_id,
                        'products_id' => zen_get_prid($this->products[$i]['id']),
                        'products_model' => $this->products[$i]['model'],
                        'products_name' => $this->products[$i]['name'],
                        'products_price' => $this->products[$i]['price'],
                        'final_price' => $this->products[$i]['final_price'],
                        'onetime_charges' => $this->products[$i]['onetime_charges'],
                        'products_tax' => $this->products[$i]['tax'],
                        'products_quantity' => $this->products[$i]['qty'],
                        'products_priced_by_attribute' => $this->products[$i]['products_priced_by_attribute'],
                        'product_is_free' => $this->products[$i]['product_is_free'],
                        'products_discount_type' => $this->products[$i]['products_discount_type'],
                        'products_discount_type_from' => $this->products[$i]['products_discount_type_from'],
                        'products_prid' => $this->products[$i]['id']);
    zen_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);
    I hope it's helpfull...

    /Typhoon

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 9
    Last Post: 11 Dec 2015, 11:35 PM
  2. Replies: 7
    Last Post: 4 Jan 2013, 09:21 PM
  3. PHP Warning: json_encode() Invalid UTF-8 sequence in argument
    By m.digregorio in forum General Questions
    Replies: 1
    Last Post: 15 Oct 2012, 08:30 PM
  4. Replies: 5
    Last Post: 29 Jun 2011, 04:16 AM
  5. Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()
    By divinelighting in forum Addon Shipping Modules
    Replies: 2
    Last Post: 11 Jun 2011, 03:17 AM

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