Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error: admin/orders.php on line 382

    I don't think the problem lies in the invoice.php, packingslip.php and orders.php but a conflict with the files that were updated and those files, regarding the orders.php. Originally I got a fatal error that was on another line but that problem line was the same:
    <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'); ?></td>

    DebbyP

  2. #12
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error: admin/orders.php on line 382

    fatal error that was on another line but that problem line was the same:
    Fatal error: Call to undefined function zen_address_format() in
    /admin/orders.php on line 382

    <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'); ?></td>

    Can someone please tell me what is wrong with the format, I don't understand why the blank single quotes after the 1, shouldn't there be something there?

    The rest of the program seems to be working correctly except the orders.php, invoice.php and packingslip.php, and they all have to do with the zen_address_format, I've got to get this figured out and I really need some help.
    DebbyP

  3. #13
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Fatal Error: admin/orders.php on line 382

    It looks as though you have an old version of "Edit Orders" installed which is not compatible with 1.3.9+, or else the original install was never completed properly.

    You'll find the latest version here:
    http://www.zen-cart.com/index.php?ma...oducts_id=1818

    Vger

  4. #14
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error: admin/orders.php on line 382

    Vger,
    Thank you for getting back to me on this. They never have been able to edit order quantities so I'm thinking that they never had the "Edit Orders" module installed, but I'm willing to give it a try.

    I have this hosted at Dreamhost and their support staff have been giving it a valiant effort in trying to help me. Their latest suggestion is to reload all the ZC files. I'm really afraid that I'd mess things up. Don't really know what I can do without messing things up.

    I only have this one ZenCart installed for my client list so I'm a real newbie and really do appreciate any help that you've offered.

    I've downloaded the Edit Orders module and will look through it. From what I see at this time those files don't and have never existed in their directories and they were able to at least view the orders and enter comments but this time I have a backup to fall back on.

    Thank you again,
    DebbyP

  5. #15
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Fatal Error: admin/orders.php on line 382

    Well, in 1.3.8a that entry (listed above) exists in 5 places:
    admin\invoice.php(104): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>
    admin\invoice.php(113): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->billing, 1, '', '<br>'); ?></td>
    admin\orders.php(365): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'); ?></td>
    admin\packingslip.php(101): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>
    admin\packingslip.php(110): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->billing, 1, '', '<br>'); ?></td>
    Found 5 occurrence(s) in 3 file(s)
    In 1.3.9H it only exists in 3 places:
    admin\invoice.php(91): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>
    admin\orders.php(382): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'); ?></td>
    admin\packingslip.php(88): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>
    Found 3 occurrence(s) in 3 file(s)
    Vger

  6. #16
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error: admin/orders.php on line 382

    Vger,
    I'm sorry, I guess that I didn't make my last comment clear. I was referring to the files in the Edit Orders v3.0 module. It doesn't appear that they ever had that module loaded.

    I have the same three files you listed:

    admin\invoice.php(91): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>

    admin\orders.php(382): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'); ?></td>

    admin\packingslip.php(88): <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>

    I'm willing to try loading the Edit Orders v3.0 module and hope that it fixes the problem.

    Thank you again for answering me.
    DebbyP

  7. #17
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Fatal Error: admin/orders.php on line 382

    The zen_address_format function is defined in these files:

    admin\includes\functions\functions_customers.php(35): function zen_address_format($address_format_id, $address, $html, $boln, $eoln) {
    admin\includes\functions\functions_customers.php(134): return zen_address_format($format_id, $address->fields, $html, $boln, $eoln);
    admin\includes\functions\general.php(464): function zen_address_format($address_format_id, $address, $html, $boln, $eoln) {

    It is then used throughout the website, both in the back end (where you are getting the errors) and in the shop front.

    Compare those 3 files you have against the default Zen cart install files.

    Vger

  8. #18
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error: admin/orders.php on line 382

    Vger,
    Thank you, but those are exactly the same as the ones that I have installed already.

    The weird thing is, the front end of the store works just fine, the admin, customer files are fine as well, it's just the admin, customer, orders that is malfunctioning.

    I'll take the shop down this weekend and try your suggestion about the edit orders module, and pray!

    DebbyP

  9. #19
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Fatal Error: admin/orders.php on line 382

    I only mentioned the "Edit Orders" add-on because someone else thought you had it installed (incorrectly).

    Vger

  10. #20
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error: admin/orders.php on line 382

    Vger,
    No it was never installed. My server tech support suggested that I reload ZC, I've seen in older posts where it was suggested that the Admin directory be reloaded. Maybe I'll try reloading the Admin directory, after doing a backup this time.

    DebbyP

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 12
    Last Post: 17 Mar 2014, 11:10 PM
  2. Fatal error:/autoload_func.php on line 90
    By [email protected] in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 17 Sep 2010, 09:04 AM
  3. Replies: 2
    Last Post: 28 Jan 2009, 05:45 AM
  4. Fatal Error in Sessions.php line 61
    By kevnj in forum Basic Configuration
    Replies: 7
    Last Post: 6 May 2007, 06:41 AM
  5. Fatal Error in sessions.php line 72
    By laurakim in forum General Questions
    Replies: 5
    Last Post: 22 Apr 2007, 06:27 AM

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