If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 2.x.x / Upgrading from v1.5.5 to 2.0.1 - store pages come up with error 500, Admin working

Upgrading from v1.5.5 to 2.0.1 - store pages come up with error 500, Admin working

Started by siilike1232 on 30 May 2024, 10:09 AM · Views: 2,756

Results 1 to 20 of 22
30 May 2024, 10:09 AM
#1
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #1 by siilike1232

I have just upgraded from V1.5.5 to v2.0.1 and the Admin is working fine, but store page comes up with HTTP error 500.
Log file says: "PHP Fatal error: Uncaught Error: Undefined constant "HEADER_TITLE_CATALOG" in ...htdocs/includes/init_includes/init_add_crumbs.php on line 14."
How could I resolve that?

BR,
Ingrid

30 May 2024, 11:09 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #2 by swguy

Is this define in

includes/languages/english/YOURTEMPLATE/lang.header.php

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 May 2024, 1:21 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #3 by lat9

swguy:

Is this define in

includes/languages/english/YOURTEMPLATE/lang.header.php
That define is present in includes/languages/english/lang.header.php in Zen Cart 2.0.1's distribution. It shouldn't matter whether/not the define is present in a template override.

31 May 2024, 6:30 AM
#4
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #4 by siilike1232

Thank you!
The original store (v1.5.5) has 3 languages, but currently only English language files are loaded in the updates version. Database files contain 3 languages and English is not the primary language - could that be the issue here and how to fox it?

31 May 2024, 7:22 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #5 by swguy

Be sure it's in

includes/languages/YOURLANGUAGE/lang.header.php

and/or

includes/languages/YOURLANGUAGE/YOURTEMPLATE/lang.header.php

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

31 May 2024, 11:57 AM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #6 by lat9

siilike1232:

Thank you!
The original store (v1.5.5) has 3 languages, but currently only English language files are loaded in the updates version. Database files contain 3 languages and English is not the primary language - could that be the issue here and how to fox it?
What are the other two non-Engish languages?

31 May 2024, 12:58 PM
#7
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #7 by siilike1232

Finnish and Estonian :)

31 May 2024, 1:56 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #8 by lat9

siilike1232:

Finnish and Estonian :)
The Finnish (https://www.zen-cart.com/downloads.php?do=file&id=242) language-pack hasn't been updated since zc157 and I'm not finding any publication of an Estonian language-pack in the Zen Cart plugins.

What are the language directories (e.g. finnish or estonian) for those additional languages? You can look in your zc155 site's file system to be sure.

31 May 2024, 6:43 PM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #10 by swguy

You can try to update your old language packs or rebuild them from the /english/ versions.

https://docs.zen-cart.com//dev/languages/creating_a_language_pack/

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

3 Jun 2024, 8:38 AM
#12
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #12 by siilike1232

lat9:

The Finnish (https://www.zen-cart.com/downloads.php?do=file&id=242) language-pack hasn't been updated since zc157 and I'm not finding any publication of an Estonian language-pack in the Zen Cart plugins.

What are the language directories (e.g. finnish or estonian) for those additional languages? You can look in your zc155 site's file system to be sure.

In v1.5.5 I used the Finnish language pack and translated the Estonian language pack myself.
I have started translating the language files for v2.0.1 into Estonian and Finnish now and will keep you posted!

3 Jun 2024, 9:11 AM
#13
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #13 by swguy

Kiitos!

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

3 Jun 2024, 11:11 AM
#14
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #14 by siilike1232

Applying proper new language packs worked wonder!
Now I have stumbled across the issue of templates - I used Dover Fine in v1.5.5, but that does not work with v2.0.1.
Could anybody recommend a fancy responsive template that works with v2.0.1?

3 Jun 2024, 12:29 PM
#15
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #15 by lat9

siilike1232:

Applying proper new language packs worked wonder!
Now I have stumbled across the issue of templates - I used Dover Fine in v1.5.5, but that does not work with v2.0.1.
Could anybody recommend a fancy responsive template that works with v2.0.1?
Not necessarily "fancy", but the ZCA Bootstrap Template works with v2.0.1 and is quite customizable: https://www.zen-cart.com/downloads.php?do=file&id=2191

7 Jun 2024, 11:37 AM
#16
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #16 by siilike1232

My v1.5.5 had products_extra_files plugin and all my products have 4-5 files attached to them.
I cannot find anything similar for newer versions:(
Any recommendations?

10 Jun 2024, 1:33 PM
#18
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #18 by siilike1232

Order confirmation is showing date as follows:
1010.0606.2024202420242024 (day x 2, month x 2, Year x 4)
Any idea why?

14 Jun 2024, 6:49 AM
#19
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #19 by siilike1232

I have updated from ZC v1.5.5 to v2.0.1.
In v1.5.5 I had "Zone 2 Handling Fee" set 4% and it calculated 4% of the order total on top of the "Zone 2 Shipping Table" rate.
In v2.0.1 I am getting error "Unsupported operand types: int + string in .../htdocs/includes/modules/shipping/zones.php:307" and the 4% is not calculated on top of the Shipping table rate.
Can anybody help me fix that?

25 Jun 2024, 10:25 AM
#20
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Post #20 by siilike1232

ZC v2.0.1 tried using the mobile Admin and I have some error logs on that:

--> PHP Warning: Constant MODULE_PAYMENT_MONEYORDER_TEXT_TITLE already defined in /.../includes/languages/estonian/modules/payment/moneyorder.php on line 23.

--> PHP Warning: Constant MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION already defined in /.../includes/languages/estonian/modules/payment/moneyorder.php on line 24.

--> PHP Warning: Constant MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER already defined in /.../includes/languages/estonian/modules/payment/moneyorder.php on line 25.

Could anybody help solve this, thank you!