If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 2.x.x / Customizations Questions during upgrade

Customizations Questions during upgrade

Started by g2ktcf on 3 May 2024, 12:53 PM · Views: 1,798

Results 1 to 20 of 26
3 May 2024, 12:53 PM
#1
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #1 by g2ktcf

I am testing a 1.5.7d upgrade to 2.0.0

I am NOT trying to preserve any prior configurations. I would rather have a new clean install with all the plugins installed after upgrading the database. After reviewing https://docs.zen-cart.com/release/2.readme_how_to_upgrade, I am curious to know what happens to old plugin customization configuration values? Will they cause issues if those plugins are not installed?

For instance, my current site has one of the older IH versions installed. So do I need to remove all these old configuration values before attempting to test this upgrade? Quite frankly, I am not even sure I know what all plugins are installed on the current site.

3 May 2024, 2:01 PM
#2
lat9 avatar

lat9

Administrator

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

Post #2 by lat9

For IH, it depends on the current version; let me know what it is and I'll tell you whether the configuration should be removed prior to upgrade.

See the Mod List (https://www.zen-cart.com/downloads.php?do=file&id=2039) plugin for some help with the "What's installed?" question.

3 May 2024, 2:15 PM
#3
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #3 by g2ktcf

lat9:

For IH, it depends on the current version; let me know what it is and I'll tell you whether the configuration should be removed prior to upgrade.

See the Mod List (https://www.zen-cart.com/downloads.php?do=file&id=2039) plugin for some help with the "What's installed?" question.

Perfect! I actually just ran through all the configurations settings for that install and nothing appears to be plugin related which really surprised me. I will install that add on so I can get good info.

3 May 2024, 4:35 PM
#4
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #4 by g2ktcf

g2ktcf:

Perfect! I actually just ran through all the configurations settings for that install and nothing appears to be plugin related which really surprised me. I will install that add on so I can get good info.

Here is what that mod returned...

Attachment 20600

3 May 2024, 5:20 PM
#5
lat9 avatar

lat9

Administrator

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

Post #5 by lat9

You should be OK on Image Handler (upgrading from one <sup>5</sup> version to another).

Ditto with One-Page Checkout, although it would help to know what the current version is. You can use the admin's Tools :: Developers' Tool Kit to search for the configuration key CHECKOUT_ONE_MODULE_VERSION.

Not sure about the MySQL Database Backup; perhaps someone that uses that can chime in, same with Easy Populate 4. You might want to check the EP-4 support thread for guidance.

Display Log Files is built into Zen Cart versions 1.5.7 and later; I'm not sure why Mod List is showing that one.

Note that the square payment module was removed from Zen Cart 2.0.0 ... since it hadn't been operable for a while!

3 May 2024, 5:23 PM
#6
swguy avatar

swguy

Administrator

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

Post #6 by swguy

Will they cause issues if those plugins are not installed?

No. You may want to delete them just to clean things up, but there's no real harm in leaving them 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 May 2024, 5:54 PM
#7
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #7 by g2ktcf

swguy:

Will they cause issues if those plugins are not installed?

No. You may want to delete them just to clean things up, but there's no real harm in leaving them there.

Yes, I definitely want this cleaned up. I have walked a clean install with 2.0.0 all the way to testing payment modules. I want this to be a 2.0.0 pure install with mods that I can document cleanly and logically.

3 May 2024, 5:55 PM
#8
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #8 by g2ktcf

lat9:

You should be OK on Image Handler (upgrading from one <sup>5</sup> version to another).

Ditto with One-Page Checkout, although it would help to know what the current version is. You can use the admin's Tools :: Developers' Tool Kit to search for the configuration key CHECKOUT_ONE_MODULE_VERSION.

Not sure about the MySQL Database Backup; perhaps someone that uses that can chime in, same with Easy Populate 4. You might want to check the EP-4 support thread for guidance.

Display Log Files is built into Zen Cart versions 1.5.7 and later; I'm not sure why Mod List is showing that one.

Note that the square payment module was removed from Zen Cart 2.0.0 ... since it hadn't been operable for a while!

2.3.8 (2021-04-17) for that key.

3 May 2024, 7:41 PM
#9
swguy avatar

swguy

Administrator

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

Post #9 by swguy

Yes, I definitely want this cleaned up.

This might be more trouble than it's worth. You can check each mod for uninstall instructions. You may have to install a mod to run the uninstaller if it's a PHP file, and then remove the PHP files.

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 May 2024, 8:49 PM
#10
lat9 avatar

lat9

Administrator

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

Post #10 by lat9

g2ktcf:

2.3.8 (2021-04-17) for that key.
You should be just fine installing the current version of OPC; it'll take care of adding any configuration keys created after that release.

3 May 2024, 8:50 PM
#11
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #11 by g2ktcf

g2ktcf:

2.3.8 (2021-04-17) for that key.

And I just looked at all my debug logs after upgrading the database. It looks like I need to remove 80+ files from that OPC 2.3.8 installation as they all create deprecated logs.

:(

Or will installing the new one fix all of these?

4 May 2024, 3:39 AM
#12
lat9 avatar

lat9

Administrator

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

Post #12 by lat9

g2ktcf:

And I just looked at all my debug logs after upgrading the database. It looks like I need to remove 80+ files from that OPC 2.3.8 installation as they all create deprecated logs.

:(

Or will installing the new one fix all of these?
Not a surprise; I thought you started with a "bare" Zen Cart for the updgrade. Current OPC version's 2.5.1 and there have been 3+ years of changes made since v2.3.8.

4 May 2024, 11:50 AM
#13
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #13 by g2ktcf

lat9:

Not a surprise; I thought you started with a "bare" Zen Cart for the updgrade. Current OPC version's 2.5.1 and there have been 3+ years of changes made since v2.3.8.

yea, that may be how I described it and its not really accurate. I am following the upgrade without customizations. But I copy the old store files to the new folder and then copy 2.0.0 files on top of that. All the old bits still hang around. BUT, I found that WinMerge is your friend. Compare the original install and the store folder and you can delete every file in the store folder that appears in both. Really nice and I did not know that previously.

4 May 2024, 12:44 PM
#14
lat9 avatar

lat9

Administrator

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

Post #14 by lat9

g2ktcf:

yea, that may be how I described it and its not really accurate. I am following the upgrade without customizations. But I copy the old store files to the new folder and then copy 2.0.0 files on top of that. All the old bits still hang around. BUT, I found that WinMerge is your friend. Compare the original install and the store folder and you can delete every file in the store folder that appears in both. Really nice and I did not know that previously.
I'd be careful with that approach, because that 'process' might not account for core files that have been removed or added in the transition from zc157 to zc200.

4 May 2024, 1:06 PM
#15
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #15 by g2ktcf

lat9:

I'd be careful with that approach, because that 'process' might not account for core files that have been removed or added in the transition from zc157 to zc200.

So, are you suggesting that I upgrade the db and then use only a clean 2.0.0? I know there are images and other files that need to copied over but I am not sure what folders are truly needed. I did use WinMerger to remove the old version of IH but the site gave me a 500 error until I installed the lastest IH. Then it appears to work.

So far, the only troublesome error I am getting is

[04-May-2024 13:00:16 UTC] Request URI: /, IP address: ::1, Language id not set
#0 C:\wamp64\www\WLC_Artistry_158a\includes\extra_datafiles\about_us_filenames.php(11): zen_debug_error_handler()
#1 C:\wamp64\www\WLC_Artistry_158a\includes\init_includes\init_file_db_names.php(54): include('C:\\wamp64\\www\\W...')
#2 C:\wamp64\www\WLC_Artistry_158a\includes\application_top.php(214): require('C:\\wamp64\\www\\W...')
#3 C:\wamp64\www\WLC_Artistry_158a\index.php(25): require('C:\\wamp64\\www\\W...')
--> PHP Warning: Constant FILENAME_ABOUT_US already defined in C:\wamp64\www\WLC_Artistry_158a\includes\extra_datafiles\about_us_filenames.php on line 11.

[04-May-2024 13:00:16 UTC] Request URI: /, IP address: ::1, Language id not set
#0 C:\wamp64\www\WLC_Artistry_158a\includes\extra_datafiles\about_us_filenames.php(12): zen_debug_error_handler()
#1 C:\wamp64\www\WLC_Artistry_158a\includes\init_includes\init_file_db_names.php(54): include('C:\\wamp64\\www\\W...')
#2 C:\wamp64\www\WLC_Artistry_158a\includes\application_top.php(214): require('C:\\wamp64\\www\\W...')
#3 C:\wamp64\www\WLC_Artistry_158a\index.php(25): require('C:\\wamp64\\www\\W...')
--> PHP Warning: Constant FILENAME_DEFINE_ABOUT_US already defined in C:\wamp64\www\WLC_Artistry_158a\includes\extra_datafiles\about_us_filenames.php on line 12.
4 May 2024, 2:29 PM
#16
lat9 avatar

lat9

Administrator

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

Post #16 by lat9

g2ktcf:

So, are you suggesting that I upgrade the db and then use only a clean 2.0.0? I know there are images and other files that need to copied over but I am not sure what folders are truly needed. I did use WinMerger to remove the old version of IH but the site gave me a 500 error until I installed the lastest IH. Then it appears to work.

So far, the only troublesome error I am getting is

[04-May-2024 13:00:16 UTC] Request URI: /, IP address: ::1, Language id not set
#0 C:\wamp64\www\WLC_Artistry_158a\includes\extra_datafiles\about_us_filenames.php(11): zen_debug_error_handler()
#1 C:\wamp64\www\WLC_Artistry_158a\includes\init_includes\init_file_db_names.php(54): include('C:\wamp64\www\W...')
#2 C:\wamp64\www\WLC_Artistry_158a\includes\application_top.php(214): require('C:\wamp64\www\W...')
#3 C:\wamp64\www\WLC_Artistry_158a\index.php(25): require('C:\wamp64\www\W...')
--> PHP Warning: Constant FILENAME_ABOUT_US already defined in C:\wamp64\www\WLC_Artistry_158a\includes\extra_datafiles\about_us_filenames.php on line 11.

[04-May-2024 13:00:16 UTC] Request URI: /, IP address: ::1, Language id not set
#0 C:\wamp64\www\WLC_Artistry_158a\includes\extra_datafiles\about_us_filenames.php(12): zen_debug_error_handler()
#1 C:\wamp64\www\WLC_Artistry_158a\includes\init_includes\init_file_db_names.php(54): include('C:\wamp64\www\W...')
#2 C:\wamp64\www\WLC_Artistry_158a\includes\application_top.php(214): require('C:\wamp64\www\W...')
#3 C:\wamp64\www\WLC_Artistry_158a\index.php(25): require('C:\wamp64\www\W...')
--> PHP Warning: Constant FILENAME_DEFINE_ABOUT_US already defined in C:\wamp64\www\WLC_Artistry_158a\includes\extra_datafiles\about_us_filenames.php on line 12.

The about_us page was added to the core in (I think) zc158.  Simply delete that /includes/extra_datafiles/about_us_filenames.php file.
4 May 2024, 2:37 PM
#17
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #17 by g2ktcf

Thank You!

4 May 2024, 4:55 PM
#18
swguy avatar

swguy

Administrator

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

Post #18 by swguy

But I copy the old store files to the new folder and then copy 2.0.0 files on top of that. All the old bits still hang around.

Don't do that. Start with 2.0.0 and add in updated versions of the plugins you want.

Doing it your way will give you logs like the one from post #15.

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.

4 May 2024, 11:56 PM
#19
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Post #19 by g2ktcf

swguy:

But I copy the old store files to the new folder and then copy 2.0.0 files on top of that. All the old bits still hang around.

Don't do that. Start with 2.0.0 and add in updated versions of the plugins you want.

Doing it your way will give you logs like the one from post #15.

Yes, but I am following the very specific instructions at https://docs.zen-cart.com/release/2.readme_how_to_upgrade.

Step III Create a new directory and copy your site into it
Step IV Then create a new database and load your old database in it
Step V Next, change the two configure.php files to utilize the new directory and database This way … when you attempt to upgrade you are “practicing” to see where the problems, if any will happen
Step VI Make sure all appears to be working on your temp site.
Step VII Now load the “new” version files to your new temp directory from latest downloaded ZIP
Step VIII Run the http://www.YOURSITE.com/zc_install
Step IX Choose the Upgrade Database option

am I reading these wrong?

5 May 2024, 6:56 AM
#20
dbltoe avatar

dbltoe

Totally Zenned

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

Post #20 by dbltoe

That's just one of the ways to upgrade. The other is a database only upgrade.

I've found it easier (espeecially with sites that have had every other mod installed) to just drop the newest release into a test folder, create a blank database. Then, I use the zc_install to create the new site and populate the database.

You'll find a big red warning on the page but IMHO, the warning should be about bringing old problems into a new site. We have every right to be suspicious of any mod for 1.5.6 or earlier just do to the fact they were probably built to PHP 7.4 at best. It's been "dead" for almost two years and 5.6 has be dead for aslmost four. Many host have, or will soon, stopped supporting any PHP prior to 8.0. It's in the best interest of security that they do.

I wait on step 4 until after step 6

Step 6 of the setup is double work to me as it is so much simpler to just take the loaded files and the empty database and run the zc_install. That way, you know the configure.php files will be correctly done for your site. I temporarily leave the zc_install directory for later (never more than a few hours) use but I make sure to rename it to something that won't give it away.

Step 7 is not a problem if you setup the new test site "above" the root." IOW, if you site is at home/your_username/public_html/, setting up the new site at home/your_username/_test/ will allow any cPanel controlled site to assign a newer PHP version to your test site while letting your store continue to run on an older PHP>

Before moving in the old database, I make sure to load two mods. Lat9's Clone a Template and swguy's Mod List. Both are invaluable to me on an upgrade.

So, my "step 8" is to load the two mods and my favorite template (bootstrap). Both the mods above are run through the plugins manager in the admin as is the valuable Display Logs that's built in for several versions now.

Step 9 is to clone both the responsive_classic and bootstrap templates. Regardless of which one I decide to use, this gives me a return point if things really get munged.

Now, I can move the old database into the new and take the original step 8 after renaminng that folder back to zc_insatll.

This time I actually delete the zc_install folder, go to the admin, and set the template to the one I cloned in step 9.

Nest, I'll use the Mod List to tell me what items were not installed with my new 2.0 files. The information will lead you to the admin_pages, configuration_group, and configuration tables to gid rid of the old mods. There's no need to worry about old files. They are not there because you loaded just the fresh 2.0.0 files.

After this, you have a 90% operational 2.0.0 site ready to take on new mods and your image files from the old site.

The images are fairly easy if you have a cPanel file manager. Just go to the old stores root and copy the images from your email folder (you did change the old ZC header, right?), the includes/images, the includes/templates/YOUR_OLD_TEMPLATE/images, and the admin/images folder.

Doing the same copy from the old includes/languages/english/html_includes/YOUR_TEMPLATE to the new site's location leaves you with a working site that only needs a payment module or two to start selling.

This is the place where you make backups of everything.

None of this is scary to me, but trying to continue on with all the extra mods you want to throw at the store is VERY scary if there's no backup to get me out of a bad mod load. I timestamp backups for every mod load so I can revert back to any point I need to to recover.

Admittedly, anything seems easy after doing it as many times as I have. The only portion with any real difficulty is cleaning up the database after you update it. Mod List is your saviour in that regard.

There's a more thorough step-by-step explanation at https://myzencarthost.com/index.php?rp=/knowledgebase/1/Creating-a-Test-Site-with-cPanel.html It was written with 1.5.8 in mind but works just the same with 2.0.0. Step H of those instructions would be where the two mods and bootstrap are loaded and the templates are cloned.

pess on

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