Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Upgrading to 2.x.x / Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

Started by kevin_a on 25 Oct 2026, 4:06 PM · Views: 143

Results 1 to 9 of 9
25 Oct 2026, 4:06 PM
#1
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
147
Plugin Contributions:
0

Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

I have a live 1.5.5 shop in public_html, with dBase "zenc4"

In a subfolder, I have a development shop 2.2.1 with dBase "june26"

The subfolder dBase has already been upgraded with an earlier copy of the 1.5.5 dBase up to 2.2.1

There are no plug ins to consider.

The template for 2.2.2 is a modified responsive classic, emulating the existing 1.5.5 live shop appearance.

I now want to delete the 1.5.5 files. and copy all 2.2.1 files from the subfolder to the public_html.

I have taken (immediately before set in maintenance mode) a current copy of the 1.5.5 "zenc4" dBase, that I want to insert into the 2.2.1 shop once it sits in the public_html.

Is it ok to take the (1.5.5)"zenc4" dbase backup file, and import it into the (2.2.1)"june26" dBase?

and edit the 2.2.1 config files to remove the subfolder element in the address?

Any help appreciated.

kevin_a

25 Oct 2026, 5:07 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,898
Plugin Contributions:
22

Re: Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

Close, but one step is missing. The zenc4 backup is a 1.5.5 database: it has the 1.5.5 table structure. Import it as-is, and the 2.2.1 code will be running against a 1.5.5 database, which will break. It needs the same upgrade you already ran on june26.

Here's the order I'd use:

  1. Import the fresh zenc4 backup into a new, empty database rather than overwriting june26. That way, june26 stays as a fallback if anything goes wrong.
  2. Move the 2.2.1 files into public_html. Keep the old 1.5.5 files in a backup folder (outside public_html) instead of deleting them, at least until the new store is proven.
  3. Copy the live images/ folder over the new one. Any product images added to the live store since you made the dev copy are only in the 1.5.5 tree.
  4. Edit both configure files (includes/configure.php and your_admin/includes/configure.php):
    • DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG become '/'
    • DIR_FS_CATALOG becomes the full path to public_html (with a trailing slash)
    • DB_DATABASE (and user/password if different) point to the new database
    • Check that DB_CHARSET matches what the imported data actually is
  5. Run zc_install in the new location and choose Database Upgrade. It will detect 1.5.5 and step the database up to 2.2.1.
  6. Delete the zc_install folder when done.

One more thing: everything you set in the dev store's admin (template selection, layout boxes, configuration values, EZ-Pages, banners) lives in the database, so the import replaces it with the live 1.5.5 settings. Make a note of those dev changes before you start so you can reapply them. Define pages and the template files themselves are files, so they come across with the move.

Since you're doing the move anyway, it's worth going straight to 2.2.2 rather than 2.2.1. It's a small step and picks up the latest fixes.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

27 Oct 2026, 2:06 PM
#3
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
147
Plugin Contributions:
0

Re: Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

Thankyou dbltoe... things went (almost) to plan.
Unfortunately the site is showing error messages for 1. Right hand column sideboxes not displaying. I have checked the settings against the test site(which does display correctly), and although thety match in admin, the live site does not work the same.

https colon //rarecoinsandtokens dot co dot uk/

The only message I have to go on is "WARNING: An Error occurred, please let us know!"

Other pagers also display the same error message, particularly for some product categories.

Should I start a new thread in order to invite comments?

Thanks

Kevin_a

kevin_a

27 Oct 2026, 4:09 PM
#4
swguy avatar

swguy

Administrator

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

Re: Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

Just use this thread and post your logs so people can see what's happening.

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.

27 Oct 2026, 8:17 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,898
Plugin Contributions:
22

Re: Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

swguy is quite correct. Your system should have created a log file. Check the admin > Modules > Plugin Manager to make sure you have installed Display Logs.

The things that typically go wrong when moving a Zen Cart site from a test location to live, roughly in order of how often I've seen them:

The two configure.php files (includes/configure.php and admin_dir/includes/configure.php) are the prime suspects. If they were copied from the test site unchanged, HTTP_SERVER, DIR_FS_CATALOG, DIR_WS_CATALOG, and the DB credentials still point at the test environment. A wrong DIR_FS_CATALOG is especially good at producing exactly this pattern: the home page half-works because its includes resolve, but pages that pull in extra files (category listings with certain product types, the maintenance page's status check) hit a missing path and throw the generic error. Also worth checking that DIR_WS_CATALOG has leading and trailing slashes and that DIR_FS_SQL_CACHE and DIR_FS_LOGS point to writable directories that actually exist on the live server.

Second is the database. If the DB was exported from test and imported live, configuration table entries like the cache directory path, and any absolute paths stored by plugins, still reference the test server. Only some categories failing also smells like a partial or interrupted import — a products_description or attributes table that didn't fully load, or a table that imported with a different collation/engine. Admin → Tools → Store Manager and a quick CHECK TABLE in phpMyAdmin would show that.

Third, environment differences between the two hosts: a different PHP version (test on 7.4, live on 8.x is a classic), missing PHP extensions, or .htaccess rules that the live host handles differently. The maintenance page's "Click here to verify" link failing hints the live server is rejecting something the test server allowed.

In all cases, the myDEBUG-*.log files in /logs/ will name the exact file and line, so if you can display one of those here, it collapses the guessing to one answer. If there are no log files at all, that itself is a clue that DIR_FS_LOGS is pointing to a path that doesn't exist on the live server, which would confirm the configure.php theory.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

29 Oct 2026, 8:54 PM [edited]
#6
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
147
Plugin Contributions:
0

Re: Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

Thank you very much for the replies.

Unfortunately, my situation seems to be deteriorating.

I realise/discovered that the collation in both dBase zenc4(orig 1.5.5) and hence jun26, and oct26 into which 1.5.5 imported, are a mix of latin1_general_ci and utf8mb4. (I had changed the collation over to utf8 some time ago, but now see that was on a previous test version (1.5.7) and I had not gone back and done 1.5.5)

Could this be at the bottom of the issues? Is it too late to fix it?

Meanwhile...

1. (222)

Site redirects...

I went back to the 222 test site on the subfolder to re-check it out, and placed an order, paid with paypal.

Paypal payment went through no problem, but the redirect back to the site failed with the following message in the browser firefox.

"Looks like there’s a problem with this site. The server at test222.rarecoinsandtokens.co.uk sent back an error: 406 Not Acceptable. What can you do about it? Check to make sure you’ve typed the website address correctly. The site could be temporarily unavailable or too busy. Try again in a few moments."

----------------------

2. (222)

When I go to check 'orders' in admin, I get the message on a white page...(Firefox and Chrome)

"WARNING: An Error occurred, please let us know! If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you entered valid data."

------------------

-----------------

3. (222)

When I click 'Plug in Manager' link in site 222, I get.

"The page isn’t redirecting properly

Firefox can’t connect to the server at test222.rarecoinsandtokens.co.uk

What can you do about it?

The site could be temporarily unavailable or too busy. Try again in a few moments."

3.a (public_html)

On the public_html site, the plug in manager works, and Display logs is enabled.

The following report is delivered

29-Oct-2026 20:05:22 UTC] Request URI: /f**(admin)***t/, IP address: 86.144.68.190, Language id 1

#0 [internal function]: zen_debug_error_handler()
#1 /includes/classes/db/mysql/query_factory.php(757): trigger_error()

#2 /includes/classes/db/mysql/query_factory.php(701): queryFactory->show_error()

#3 /includes/classes/db/mysql/query_factory.php(314): queryFactory->set_error()

#4 /f**(admin)***t/includes/functions/general.php(778): queryFactory->Execute()

#5 /f**(admin)***t/includes/modules/dashboard_widgets/OrderStatusDashboardWidget.php(18): zen_getOrdersStatuses()

#6 /f**(admin)***t/index_dashboard.php(79): include('/home/millenni/...')

#7 /f**(admin)***t/home.php(27): require('/home/millenni/...')

#8 /f**(admin)***t/index.php(16): require('/home/millenni/...')

--> PHP Fatal error: FATAL MySQL error 1054: Unknown column 'orders_status_color_code' in 'field list' :: SELECT orders_status_id, orders_status_name, orders_status_color_code FROM orders_status

WHERE language_id = 1 ORDER BY sort_order, orders_status_id > (as called by) /f**(admin)***t/includes/functions/general.php on line 778 < in /includes/classes/db/mysql/query_factory.php on line 757.

-------------------------------

4. (public_html)

When I click 'Orders' in the Admin dropdown menu, I get browser message....

"WARNING: An Error occurred, please let us know! If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you entered valid data."

------------------

5.

(222 --> publichtml) Upgrading process...

I recall that when I was upgrading the live site after copying all the 222 test site folders/files across to publichtml., initially zcinstall reported an error which was

"Some problems that need fixing before we continue.

Problems with session support."

I raised this with HostingUK, the hosting company... they did 'something' and asked me to try again, which I did, and then I was presented with the upgrade ladder, and I proceeded to advance to 2.1

I did not go to 2.2., having been under the impression that 2.2 would need PHP 8.4 and PHP 8.3, is the highest HostingUK offers)

I am wondering if 1. and 2. 3. ?etc. above are all related to 'session support' issues? supposedly addressed by the Hosting Company.

------------------------

Configure files on public_html are copied from 222 files,

The two configure.php files (includes/configure.php and admin_dir/includes/configure.php) copied from the test site unchanged, HTTP_SERVER, DIR_FS_CATALOG, DIR_WS_CATALOG, and the DB credentials point at the public_html environment ( taken from the old 1.5.5 configs, .... dBase ....calls up the

define('DB_DATABASE', 'millenni_oct2026');

-------------------------

/**

* This is an advanced setting to determine whether you want to cache SQL queries.

* Options are 'none' (which is the default) and 'file' and 'database'.

*/

define('SQL_CACHE_METHOD', 'none');

/**

----------------------

Apologies for the convoluted nature..

kevin_a

------------------------

kevin_a

29 Oct 2026, 10:20 PM
#7
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
147
Plugin Contributions:
0

Re: Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

Ok well this is embarrrassing... probably best ignore my previous screed,
I obviously need to get the database collation sorted out, and kick myself for assuming an earlier exercise I had done with unifying a 1.5.7 database to utf8 and loosing the latin, was not subsequently formalised on the 1.5.5 database, and I took it for granted that it was. (it was a few years ago and memory failed me!)

I am advised by AI, that its ok to bring the collation up to standard Using the the official Zen Cart Database Conversion Tool Plugin.
which

  • reads data safely, prevents double-encoding errors, shrinks index definitions safely where required, and converts all tables and field columns to standard utf8mb4.

  • and then

    Align theconfigure.php files: Once the database is cleanly unified into utf8mb4, open both your storefront and admin configuration files (includes/configure.php and admin/includes/configure.php) and ensure the character set flag matches exactly:

I have nothing to loose by going ahead with this now, but if any previous helpers know of a good reason to be hesitant, I'll wait a few hours in case alarms to be rung,

Once that is done. I will have to test all functions again.
I apologize to respondents for inviting support and the efforts taken to help, when that dumb initial step had been taken for granted, and may well be at the root of all the issues.

kevn_a

kevin_a

30 Oct 2026, 12:10 AM
#8
swguy avatar

swguy

Administrator

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

Re: Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

When you "move" your files from subfolder back to directly under public_html, don't just copy over what's there - rename the existing includes and admin folders (in preparation for eventual deletion), otherwise files that were meant to be deleted will still be there!

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 Nov 2026, 7:45 AM
#9
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
147
Plugin Contributions:
0

Re: Move 2.2.1 set from subfolder to replace 1.5.5 cart version in public_html

Update 3/11/26

DATABASE charset.

I have run the Zen Cart Database Conversion Tool Plugin. on the millenni_june2026 database used by the V222 set in the subfolder, and it does not seem to have converted comprehensively.

The CHARSETS are still mixed, but consist of

utf8mb4_unicode_520_ci down to the zen30_admin_pages

then

utf8_general_ci

down to the last 2,

zones and zones_to_geo_zones

which are still latin_general_ci.

The last line in the list says

210 tables Sum 70,707 MyISAM latin1_swedish_ci

SERVER INFORMATION

Database Variables: MySQL 10.3.39-MariaDB

collation_connection utf8mb4_general_ci

collation_database latin1_swedish_ci

collation_server latin1_swedish_ci

-------------------

MALFUNCTIONS DISCOVERED

In the Admin console, When I select

..Modules/Plugin Manager

..Customers/Orders

..Reports/Sales Reports with Graphs,

The browser delivers the following message

"The page isn’t redirecting properly ...Firefox can’t connect to the server at test222 dot rarecoinsandtokens dot co dot uk

What can you do about it?...The site could be temporarily unavailable or too busy. Try again in a few moments.

----------------------------

STOREFRONT

The "Whats New" sidebox does not display

"sideboxes/whats_new.php"

---------------------------

That is the current state of play.

Is the situation solvable or does it look like the whole exercise needs a restart?.

Thankyou.

kevin_a