Zen Cart Logo
Forums / Basic Configuration / Admin Order Display Problem - page blank

Admin Order Display Problem - page blank

Views: 1,764

Results 1 to 11 of 11
20 Aug 2011, 10:38 PM
#1
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Admin Order Display Problem - page blank

I had 1.3.8. I recently upgraded to latest 1.3.9h. Everything looks fine. Except, When I click on a new order, go in to order details, it looks empty.

Screenshot here:
http://imageshack.us/photo/my-images/849/screenshot20110820at630.png/

Any input will be apreciated.

20 Aug 2011, 11:30 PM
#3
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Admin Order Display Problem - page blank

Ok thanks for pointing me to log files. From the latest session, I saw this:

[20-Aug-2011 17:24:54] PHP Fatal error: Call to undefined function zen_address_format() in /home1/xxxxxx/public_html/admin/orders.php on line 382

Any ideas?

21 Aug 2011, 2:48 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Admin Order Display Problem - page blank

Evidently you're missing the file that contains the function zen_address_format()
So, that suggests one or more of your files didn't get upgraded properly, or didn't upload properly, maybe both.

21 Aug 2011, 2:54 AM
#5
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Admin Order Display Problem - page blank

DrByte:

Evidently you're missing the file that contains the function zen_address_format()
So, that suggests one or more of your files didn't get upgraded properly, or didn't upload properly, maybe both.

Well, I have another Zencart store that works properly. When I searched for "zen_address_format()" from admin -> Dev tool kit, it says not found, just as in this store I am having problems with.... :(

21 Aug 2011, 3:03 AM
#6
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Admin Order Display Problem - page blank

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

That's the line having problems in admin/orders.php

21 Aug 2011, 3:10 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Admin Order Display Problem - page blank

sle39lvr:

Well, I have another Zencart store that works properly. When I searched for "zen_address_format()" from admin -> Dev tool kit, it says not found, just as in this store I am having problems with.... :(

You won't find it by putting both brackets on the end.
It's a function which also takes several parameters, so you'll never find it by searching for zen_address_format() directly.
Try "function zen_address_format" instead.

Better yet, check ALL your files, since it's likely that you've got more than one that's busted: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

21 Aug 2011, 3:30 AM
#8
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Admin Order Display Problem - page blank

No Luck with that either :(

"zen_address_format" comes up on 11 files. Seems like it's hard to narrow down the issue.

21 Aug 2011, 3:41 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Admin Order Display Problem - page blank

and what about "function zen_address_format" that I suggested?

For me it brings up 2 admin files. One where the function is commented-out and the other is the one which contains the active version of the code.

21 Aug 2011, 4:30 AM
#10
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Admin Order Display Problem - page blank

'function zen_address_format' brings up two files for me as well:
admin/includes/functions/general.php
includes/functions/functions_customers.php

However, on my other store that works, it only brings up last file (1 total).

21 Aug 2011, 4:53 AM
#11
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Admin Order Display Problem - page blank

Well, I managed to fix the problem:

I downloaded fresh install files and copied over everything in admin. Over-wrote the config.php file in there with the previous one, thats it!

Things seem to be fine.
I appreciate your help DrByte.