Forums / Installing on a Linux/Unix Server / fatal error when displaying the DETAILS page of a current order.

fatal error when displaying the DETAILS page of a current order.

Views: 8,748

Results 1 to 9 of 9
22 Jul 2025, 2:11 AM
#1
p1drobert2 avatar

p1drobert2

New Zenner

Join Date:
Feb 2019
Location:
Melbourne Australia
Posts:
61
Plugin Contributions:
0

fatal error when displaying the DETAILS page of a current order.

I'm using a fresh install of V2.1.0.
Server OS: Linux 6.6.63-MCIclouder663-c9
HTTP Server: Apache
PHP Version: 8.2.29 (Zend: 4.2.29-dev)

I just went live. Everything seemed to be working, and an order came through. The Invoice can be displayed but when I clicked on Details to update the customer details, only a blank page is displayed. This creates an error log with the following error.

[22-Jul-2025 01:45:06 UTC] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_COPIED" in /myurl/myadmin/includes/javascript/orders.php:52
Stack trace:
#0 /myurl/myadmin/includes/javascript_loader.php(60): require()
#1 /myurl/myadmin/includes/admin_html_head.php(110): require('/home/customer/...')
#2 /myurl/myadmin/orders.php(398): require('/home/customer/...')
#3 /myurl/myadmin/index.php(16): require('/home/customer/...')
#4 {main}
thrown in /myurl/myadmin/includes/javascript/orders.php on line 52

line 52 in orders.php is
element.innerHTML = '<?= TEXT_COPIED ?>';

looks like the info was not copied to TEXT_COPIED

I'm also noticing the Zencart logo from the top left corner, and the admin login page is no longer showing. The image is definitely there in the images directory. I don't know if its related. The alt text shows BMH Trading.

Does anyone have any idea what this means?

22 Jul 2025, 4:00 AM
#2
p1drobert2 avatar

p1drobert2

New Zenner

Join Date:
Feb 2019
Location:
Melbourne Australia
Posts:
61
Plugin Contributions:
0

Re: fatal error when displaying the DETAILS page of a current order.

in regards to the logo no longer being displayed it appears the link is pointing to

/myadmin//images/logo.jpg the thing is the image is not a jpg its a gif. logo.gif. It was working the other day but now its looking for logo.jpg. What could be causing this? and does it relate to the Details error page not being displayed.

22 Jul 2025, 4:34 AM
#3
p1drobert2 avatar

p1drobert2

New Zenner

Join Date:
Feb 2019
Location:
Melbourne Australia
Posts:
61
Plugin Contributions:
0

Re: fatal error when displaying the DETAILS page of a current order.

still relating to the logo.jpg if I do a inspect on the page, either the logon screen or the admin home page I see

<img src="images/logo.jpg" alt="BMH Trading" title="BMH Trading" style="width:350px; height:35px; ">

where would this be coming from?

This isn't my main problem but I mention it because its an anomaly I think might be related to the details pages not showing.

22 Jul 2025, 5:10 AM
#4
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
414
Plugin Contributions:
6

Re: fatal error when displaying the DETAILS page of a current order.

This error message tells you the constant TEXT_COPIED is not defined.
It is normally defined in file 'admin/includes/lang.english.php'. You should check there. If definition is missing, it means you probably did not updated the file to v2.1.0.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

22 Jul 2025, 5:10 AM
#5
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: fatal error when displaying the DETAILS page of a current order.

p1drobert2:

I'm using a fresh install of V2.1.0.
Server OS: Linux 6.6.63-MCIclouder663-c9
HTTP Server: Apache
PHP Version: 8.2.29 (Zend: 4.2.29-dev)

I just went live. Everything seemed to be working, and an order came through. The Invoice can be displayed but when I clicked on Details to update the customer details, only a blank page is displayed. This creates an error log with the following error.

[22-Jul-2025 01:45:06 UTC] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_COPIED" in /myurl/myadmin/includes/javascript/orders.php:52
Stack trace:
#0 /myurl/myadmin/includes/javascript_loader.php(60): require()
#1 /myurl/myadmin/includes/admin_html_head.php(110): require('/home/customer/...')
#2 /myurl/myadmin/orders.php(398): require('/home/customer/...')
#3 /myurl/myadmin/index.php(16): require('/home/customer/...')
#4 {main}
thrown in /myurl/myadmin/includes/javascript/orders.php on line 52

line 52 in orders.php is
element.innerHTML = '<?= TEXT_COPIED ?>';

looks like the info was not copied to TEXT_COPIED

I'm also noticing the Zencart logo from the top left corner, and the admin login page is no longer showing. The image is definitely there in the images directory. I don't know if its related. The alt text shows BMH Trading.

Does anyone have any idea what this means?

do you have this file:

admin/includes/languages/lang.english.php

and specifically this line (472) in said file:

https://github.com/zencart/zencart/blob/a255caba270e3defee99ada0d89c3b5dce7daf58/admin/includes/languages/lang.english.php#L472

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

22 Jul 2025, 5:15 AM
#6
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
414
Plugin Contributions:
6

Re: fatal error when displaying the DETAILS page of a current order.

@p1drobert2
Please one problem at a time, this thread is going to be very messy and hard to use if you want to treat 2 or 3 different problems together.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

22 Jul 2025, 5:23 AM
#7
p1drobert2 avatar

p1drobert2

New Zenner

Join Date:
Feb 2019
Location:
Melbourne Australia
Posts:
61
Plugin Contributions:
0

Re: fatal error when displaying the DETAILS page of a current order.

pilou2:

This error message tells you the constant TEXT_COPIED is not defined.
It is normally defined in file 'admin/includes/lang.english.php'. You should check there. If definition is missing, it means you probably did not updated the file to v2.1.0.

Yes, I'm sorry for the multiple errors. I thought they might be related.

I do have the admin/includes/lang.english.php file.

Line 472 'TEXT_COPIED' => 'Copied!',

22 Jul 2025, 5:36 AM
#8
p1drobert2 avatar

p1drobert2

New Zenner

Join Date:
Feb 2019
Location:
Melbourne Australia
Posts:
61
Plugin Contributions:
0

Re: fatal error when displaying the DETAILS page of a current order.

Correction, I did have those files but they were not correct. The admin/includes/lang.english.php file on my server was different from the files I had on the original unpacked files. Somehow the wrong lang.english.php got onto the server. I have no idea how.

Anyway, when I uploaded the original version from the source files the details page returned, as well as the Logo that had gone missing.

Thanks guys, you really helped me out.

24 Jul 2025, 8:00 AM
#9
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
429
Plugin Contributions:
0

Re: fatal error when displaying the DETAILS page of a current order.

Sorry about the problems created from the lang file I included with the AusPost module.
This file was included with the sample new invoice.
For zc 2.1.0 I have changed it to use sample override files and included more documentation so hopefully people will look at it before overriding the existing files.

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB