Thread: Edit Order

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    501
    Plugin Contributions
    0

    Default Edit Order

    Hi All,

    Back again with another question that I need to sort out please.

    In the Order Details I have a button at the bottom of the page which is EDIT (I assume that it should be so I can edit the order) and when pressing it I get this error message:

    Warning: Undefined variable $language_info in /home/xxxx/outdoorking.com.au/includes/extra_configures/enable_error_logging.php on line 88

    This is what is in the file from line 84 to 94

    if(isset($_SESSION['languages_id']))
    {
    $language_info = ', Language id ' . $_SESSION['languages_id'];
    }
    $message = date('[d-M-Y H:i:s e]') . ' Request URI: ' . ($_SERVER['REQUEST_URI'] ?? 'not set') . ', IP address: ' . ($_SERVER['REMOTE_ADDR'] ?? 'not set') . $language_info . $backtrace;

    $message .= PHP_EOL . "--> PHP $error_type: $errstr in $errfile on line $errline.";

    error_log($message . PHP_EOL . PHP_EOL, 3, $GLOBALS['debug_logfile_path']);

    return true; //-Indicate that we've handled this error-type.


    Any help would be appreciated to sort this one out would be great.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,560
    Plugin Contributions
    89

    Default Re: Edit Order

    Quote Originally Posted by Bruce1952 View Post
    Hi All,

    Back again with another question that I need to sort out please.

    In the Order Details I have a button at the bottom of the page which is EDIT (I assume that it should be so I can edit the order) and when pressing it I get this error message:

    Warning: Undefined variable $language_info in /home/xxxx/outdoorking.com.au/includes/extra_configures/enable_error_logging.php on line 88

    This is what is in the file from line 84 to 94

    if(isset($_SESSION['languages_id']))
    {
    $language_info = ', Language id ' . $_SESSION['languages_id'];
    }
    $message = date('[d-M-Y H:i:s e]') . ' Request URI: ' . ($_SERVER['REQUEST_URI'] ?? 'not set') . ', IP address: ' . ($_SERVER['REMOTE_ADDR'] ?? 'not set') . $language_info . $backtrace;

    $message .= PHP_EOL . "--> PHP $error_type: $errstr in $errfile on line $errline.";

    error_log($message . PHP_EOL . PHP_EOL, 3, $GLOBALS['debug_logfile_path']);

    return true; //-Indicate that we've handled this error-type.


    Any help would be appreciated to sort this one out would be great.
    Yep, that's been corrected in Zen Cart's current GitHub repository. Change those first 4 lines to read
    PHP Code:
    $language_info ', Language id ' . ($_SESSION['languages_id'] ?? 'not set'); 

  3. #3
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    501
    Plugin Contributions
    0

    Default Re: Edit Order

    Quote Originally Posted by lat9 View Post
    Yep, that's been corrected in Zen Cart's current GitHub repository. Change those first 4 lines to read
    PHP Code:
    $language_info ', Language id ' . ($_SESSION['languages_id'] ?? 'not set'); 
    So I replace these lines only:

    if(isset($_SESSION['languages_id']))
    {
    $language_info = ', Language id ' . $_SESSION['languages_id'];
    }

  4. #4
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    501
    Plugin Contributions
    0

    Default Re: Edit Order

    Hi,

    I can see the invoice and packing slip ok just not the edit orders page.

    I am now getting a blank page.

    This is the browser link:
    https://www.outdoorking.com.au/admin...27&action=edit

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,560
    Plugin Contributions
    89

    Default Re: Edit Order

    Blank page === debug-log in the /logs sub-directory. Remember when posting the contents of the generated log to xxx-out the name of your site's admin sub-directory.

  6. #6
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,245
    Plugin Contributions
    1

    Default Re: Edit Order

    and don't forget to wrap any code you post with the appropriate tag
    Name:  3.png
Views: 85
Size:  8.3 KB
    Simon

  7. #7
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    501
    Plugin Contributions
    0

    Default Re: Edit Order

    Quote Originally Posted by lat9 View Post
    Blank page === debug-log in the /logs sub-directory. Remember when posting the contents of the generated log to xxx-out the name of your site's admin sub-directory.
    Here is the information requested.

    [15-Dec-2023 20:16:16 UTC] Request URI: /xxxx/index.php?cmd=edit_orders&page=1&oID=24727&action=edit, IP address: 45.125.247.117, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 /home/xxxx/outdoorking.com.au/xxxx/includes/functions/extra_functions/edit_orders_functions.php(298): trigger_error()
    #2 /home/xxxx/outdoorking.com.au/xxxx/includes/init_includes/init_general_funcs.php(56): require('/home/a1ntacdk3...')
    #3 /home/xxxx/outdoorking.com.au/includes/autoload_func.php(40): require_once('/home/a1ntacdk3...')
    #4 /home/xxxx/outdoorking.com.au/xxxx/includes/application_top.php(42): require('/home/a1ntacdk3...')
    #5 /home/xxxx/outdoorking.com.au/xxxx/edit_orders.php(9): require('/home/a1ntacdk3...')
    #6 /home/xxxx/outdoorking.com.au/xxxx/index.php(11): require('/home/a1ntacdk3...')
    --> PHP Fatal error: Pre-existing zen_get_tax_locations function detected. in /home/xxxx/outdoorking.com.au/xxxx/includes/functions/extra_functions/edit_orders_functions.php on line 298.

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,560
    Plugin Contributions
    89

    Default Re: Edit Order

    Quote Originally Posted by Bruce1952 View Post
    Here is the information requested.

    [15-Dec-2023 20:16:16 UTC] Request URI: /xxxx/index.php?cmd=edit_orders&page=1&oID=24727&action=edit, IP address: 45.125.247.117, Language id not set
    #0 [internal function]: zen_debug_error_handler()
    #1 /home/xxxx/outdoorking.com.au/xxxx/includes/functions/extra_functions/edit_orders_functions.php(298): trigger_error()
    #2 /home/xxxx/outdoorking.com.au/xxxx/includes/init_includes/init_general_funcs.php(56): require('/home/a1ntacdk3...')
    #3 /home/xxxx/outdoorking.com.au/includes/autoload_func.php(40): require_once('/home/a1ntacdk3...')
    #4 /home/xxxx/outdoorking.com.au/xxxx/includes/application_top.php(42): require('/home/a1ntacdk3...')
    #5 /home/xxxx/outdoorking.com.au/xxxx/edit_orders.php(9): require('/home/a1ntacdk3...')
    #6 /home/xxxx/outdoorking.com.au/xxxx/index.php(11): require('/home/a1ntacdk3...')
    --> PHP Fatal error: Pre-existing zen_get_tax_locations function detected. in /home/xxxx/outdoorking.com.au/xxxx/includes/functions/extra_functions/edit_orders_functions.php on line 298.
    Yep, the currently-released (v4.6.2) version of EO doesn't support zc158+. I've got v4.7.0 staged on EO's GitHub repository for the brave-of-heart: https://github.com/lat9/edit_orders.

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

    Default Re: Edit Order

    FYI, I'm not seeing problems with the 4.7.0 on a test 2.0.0 site.

  10. #10
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    501
    Plugin Contributions
    0

    Default Re: Edit Order

    Quote Originally Posted by lat9 View Post
    Yep, the currently-released (v4.6.2) version of EO doesn't support zc158+. I've got v4.7.0 staged on EO's GitHub repository for the brave-of-heart: https://github.com/lat9/edit_orders.
    Do I need to delete the old files on the server and then load the new ones, or just overwrite the old ones.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 8 Apr 2015, 01:23 PM
  2. Changing the text in the Order Status drop down on Edit Order page
    By jcountryman in forum Managing Customers and Orders
    Replies: 3
    Last Post: 15 Oct 2009, 04:34 AM
  3. How do I Edit Order of Order Totals in Order Confirmation Email?
    By toussi in forum Managing Customers and Orders
    Replies: 1
    Last Post: 20 Mar 2009, 08:05 AM
  4. Super order vs Edit order?
    By marksu in forum All Other Contributions/Addons
    Replies: 15
    Last Post: 10 Nov 2008, 06:14 PM
  5. RFQ/ Super Order help charging client after i edit the order
    By nycdan in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 2 Feb 2008, 09:43 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