If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Linux/Unix Server / No upgrade option 157c

No upgrade option 157c

Started by rixstix on 11 Mar 2021, 7:32 PM · Views: 2,700

Results 1 to 15 of 15
11 Mar 2021, 7:32 PM
#1
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

No upgrade option 157c

Upgrade existing sandbox.

Upload zipped 157c fileset to server root.
Delete existing admin & includes folders from server to ensure unnecessary files are not present after install.
Unzip 157c files

Run zc_install
Database detected. No option to upgrade.
Only option is to perform a "Clean Install" and delete the database contents.
Is this expected and considered normal? If so, I can complete the install and then drop all the new db tables and restore a 156c backup and rerun zc_install.

Attachment 19460

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

11 Mar 2021, 7:40 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No upgrade option 157c

If the database name in your configure.php file already contains a v157 database then there's no database upgrade step required.
You'll note that in the Release Announcement and all the upgrade-related docs, that it mentions specifically, and sometimes in bold text, that there is no database-upgrade step required between v157/v157a/v157b/v157c releases. (And over the years there's typically not been any db change required between "letter"-ed version numbers.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Mar 2021, 7:42 PM
#3
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: No upgrade option 157c

So my only option is a clean install to wipe the existing database and start over as an upgrade as a new install.

By deleting the includes and admin folders before extracting the 157c files, there is not likely to be a valid configuration file which is why I am confused.

The site is currently unavailable 403 after unzipping the 157c files

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

11 Mar 2021, 7:45 PM
#4
swguy avatar

swguy

Administrator

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

Re: No upgrade option 157c

Just create includes/configure.php and admin/includes/configure.php with the correct database info, and you will see the "Upgrade" button.

https://docs.zen-cart.com/user/upgrading/installer_no_upgrade/

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.

11 Mar 2021, 7:57 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No upgrade option 157c

Rick, what's the goal here? If you have a v157 site already, why are you trying to do a database-upgrade?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Mar 2021, 8:00 PM
#6
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: No upgrade option 157c

But it DOES recognize an existing database, so that link doesn't apply to this situation.

If you have begun the upgrade process by going to YOURSITE.com/zc_install, but you don’t see an Upgrade … button,** it means the system can’t recognize your existing database.**

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

11 Mar 2021, 8:06 PM
#7
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: No upgrade option 157c

DrByte:

Rick, what's the goal here? If you have a v157 site already, why are you trying to do a database-upgrade?

This is my sandbox. I didn't check anything before beginning because I probably abandoned things due to bugs. I am just running the installer expecting things to work since I deleted all the previous files. I have always just deleted files, uploaded/upzipped and perform an install from there. This screen was not typical of my past rememberances.

I have learned that manually creating files or manually applying patches gets people in trouble down the line when those patches don't make it to future releases or even bugfiles list.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

11 Mar 2021, 8:42 PM
#8
swguy avatar

swguy

Administrator

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

Re: No upgrade option 157c

RixStix:

But it DOES recognize an existing database, so that link doesn't apply to this situation.

How do you know it recognizes an existing database? I thought you said there was no Upgrade option.

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.

11 Mar 2021, 9:20 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No upgrade option 157c

swguy:

How do you know it recognizes an existing database? I thought you said there was no Upgrade option.
Scott, see the image in first post.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Mar 2021, 9:25 PM
#10
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: No upgrade option 157c

Sorry to stir the hornet's nest.

Something just didn't look right so I thought it best to ask/say something.

I will just proceed as I would have in the past and let it wipe the database during an install and then drop the tables and import my 156c db and step through the upgrade again.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

11 Mar 2021, 11:21 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No upgrade option 157c

Suggestion for next time: explain with more information what the landscape is.
I'm still not clear on several things:

  • whether you were starting with a v157 database or a v156c database
  • whether you were aiming to upgrade from v157a to v157c or some other combination
  • or why you felt like a complete new set of files was needed, particularly if you're upgrading between v157* versions.

When you created your post you said you're using v157 (eg: you selected "I'm currently using v157" and then added a title "No upgrade to v157c"). This suggests that you're not upgrading from prior-to-v157.
And, the fact that zc_install is reporting that "database is current, no upgrade required" also suggests you're using v157/v157a/v157b.
Thus, I'm unsurprised that no database-upgrade option was offered, since none is needed between v157/v157a/v157b/v157c.

So, I'm still confused about what you were upgrading "from".

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Mar 2021, 12:07 AM
#12
swguy avatar

swguy

Administrator

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

Re: No upgrade option 157c

I too am completely confused. The image in the first post (which I overlooked until DrByte pointed it out) said "Your database appears to be current," so why would you expect an Upgrade option?

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.

12 Mar 2021, 2:26 AM
#13
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: No upgrade option 157c

OK, I can own that my typed words could have been confusing.

**I was expecting to see screens associated with a new install. ** Being presented with the screen that I pasted was unexpected so I decided to create this post instead of progressing otherwise. Too many times people seem to willynilly take off on their own path to be told in words taken to mean "you dummy, why didn't you ask here first" So below is my process.

The first thing creating a new thread is to select a zencart version. Since I received a current database message, I selected 157.

It is an installation in my sandbox dated 6/25/2020 which was abandoned due to bug frustration.

I unzipped the 157c to the server after deleting the file folders mentioned so that there would not be any remnant files that might have been deleted between the 157 which was installed and the 157c version that I was getting ready to unzip. That's much easier and less chance of missing a file deletion.

I unzipped the 157c files. I ran zc_install. The only option presented was to wipe the database. Nothing else. Since I had deleted the includes folder and admin folder with all beneath it, I expected a typical, from scratch, install because all previous folders were deleted and configure files should need to be populated with proper info.

Seeing the only option being to delete the database was not expected. Hindsight, I should have just gone with wiping the data option instead of coming here with a question.

Looking at the server now, I can see the original configure file, not sure why it was not deleted with the rest of the includes folder but I had no reason to go muddling around after deleting all the important folders which might have had files deleted in the 157c version. configure.php permissions are 644

I can now see a default admin folder. admin/includes/configure file is blank, zero, nada with permissions 644

Having a includes/configure.php with data and an admin/includes/configure.php blank is probably why a database was detected and why there is a 403 error.

I avoid upgrades because it seems as though every upgrade has something changed that affects previous functionality and I spend more time tracking down what someone changed to 'improve' things when the expectation was it worked fine before but why not now. Read the change file lists and other docs and find nothing about someone mucked around with this area and changed things, so some features may not function as they have in the past. **attributes from 154 to 156c **is an example. Oh, download button not appearing due to upgrade installation being in a subfolder was another wild goose chase which I ended up abandoning my sandbox in a subfolder due to that. Thank God, there was Cindy's dbio to correct things once figured out.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

12 Mar 2021, 8:46 AM
#14
dbltoe avatar

dbltoe

Totally Zenned

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

Re: No upgrade option 157c

I can't help but feeling your method of upgrade is like taking careful aim and shooting yourself in the foot.:dontgetit

There are many files in other than the includes admin folders that have been changed in the 1.5.7 series. Choosing to arbitrarily remove one directory and not another is just asking for trouble IMHO.

I've often wondered why one would even consider using older version files in an upgrade. I'm speaking of an upgrade from 1.5.6c to 1.5.7c versus 1.5.7a to 1.5.7c.

If the current version of your store is running, why touch it at all during upgrade? You can move to a newer version with a test site and take your time making it right.

If the current version of your store is NOT running, the variables and time constraints change BUT, I still would not involve the old files. Especially from a broken cart.

We know we are going to use the database but, other than images in our folders and defined pages, there's little need to have or use the old site's files.

Someone once said adapters won't and shortcuts aren't. I think this is a definite example of the later.

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

12 Mar 2021, 5:13 PM
#15
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: No upgrade option 157c

dbltoe:

I can't help but feeling your method of upgrade is like taking careful aim and shooting yourself in the foot.:dontgetit

There are many files in other than the includes admin folders that have been changed in the 1.5.7 series. Choosing to arbitrarily remove one directory and not another is just asking for trouble IMHO.

I deleted folders which contain everything other than images, downloads, pub. Don't think those folders contain needed files. I don't think that qualifies as arbitrary.

dbltoe:

I've often wondered why one would even consider using older version files in an upgrade. I'm speaking of an upgrade from 1.5.6c to 1.5.7c versus 1.5.7a to 1.5.7c.

Not sure where you get that I am wanting or considering using older version of files, except my current images and pdf download files.

dbltoe:

If the current version of your store is running, why touch it at all during upgrade? You can move to a newer version with a test site and take your time making it right.

I guess my version of the word 'Sandbox' is different than yours. I have different hosting accounts that I use for my sandboxes. I learned years ago that there is a chance to foul things up with a live site when mucking around in a sandbox on the same server account.

dbltoe:

If the current version of your store is NOT running, the variables and time constraints change BUT, I still would not involve the old files. Especially from a broken cart.

We know we are going to use the database but, other than images in our folders and defined pages, there's little need to have or use the old site's files.
dbltoe:

Someone once said adapters won't and shortcuts aren't. I think this is a definite example of the later.

I think I said I was expecting to see the first screen associated with a new install not an upgrade. I did not expect to see a "Database is Current" message since I had deleted the admin directory and all inside and also the includes directory and all inside. Given that, the assumption was that both configure.php files were deleted. Since that didn't happen, I asked a question.

I didn't say I was trying to shortcut the install, unless saving images and download files so they would be present when I imported the db backup from the current Live site AFTER checking basic functionality on the new install.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com