Simple upgrade

Locked

Views: 6,019

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
17 Dec 2007, 4:00 PM
#1
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Simple upgrade

I would love to make the jump from 1.3.7 to 1.3.8a
I don't use any of the Paypal modules, only the built-in zencard and cheque or money order.

The only changes that I made in my site are the basic text changes that everyone does and changed the logo.jpg and header_bg.jpg files.
I also managed to change the green look of the 1.3.7 site to a more orange look by changing one of the files that changed the color. (can't remember the name of it.)
(https://www.robertensing.com)

All was done with the default layout. (I know, I know, but I couldn't get the overwrite to work)
I have backed up the mySQL file to my local drive.
I have backup the site.

Can I just upload the 1.3.8a files to my present location without the new directory as suggested in wiki or do I still need to create a new DB and update the two config files?

I don't mind having to re-edit the basic changes and have purchased the manual to help me with that if I get stuck.

I have a few days off so I would like to spend the next couple days upgrading my site. There are about 2100 items in my store and during an earlier attempt at the upgrade seem to have lost the watermark feature of IH2 but I can also deal with that later.

Any help is greatly appreciated.

I don't mind having to

17 Dec 2007, 4:18 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Simple upgrade

Since you have the site backed up, you can probably go ahead and do the upgrade directly. I suggest you create a template of your own to make updates/upgrades easier in future. You can always either copy the files you modified into other folders OR rename the existing folders to something else. The second option may sound easier, but you'll end up with tons of files you didn't modify and don't need duplicated. Programs like WinMerge and Beyond Compare will help you compare your template files to the latest version so your template stays in step.

I made this list while creating a prototype cart for someone just to keep track of what files I changed. I'm including it here to give you a general idea of where you should look for your changes.

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

17 Dec 2007, 4:21 PM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Simple upgrade

I use IH2 on both sites in my sig and had a problem when I upgraded the Fan Odyssey site to 1.3.8. I ended up uploading includes/modules/pages/popup_image/header_php.php and includes/modules/pages/popup_image_additional/header_php.php from the IH2 download (overwriting the files from 1.3.8) and it's behaving normally now.

I haven't upgraded the Holzheimer site yet. I've been swamped at work and figure I'll leave it until after the 1st of the year if I can.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

17 Dec 2007, 4:25 PM
#4
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

afo:

Since you have the site backed up, you can probably go ahead and do the upgrade directly. I suggest you create a template of your own to make updates/upgrades easier in future. You can always either copy the files you modified into other folders OR rename the existing folders to something else. The second option may sound easier, but you'll end up with tons of files you didn't modify and don't need duplicated. Programs like WinMerge and Beyond Compare will help you compare your template files to the latest version so your template stays in step.

I made this list while creating a prototype cart for someone just to keep track of what files I changed. I'm including it here to give you a general idea of where you should look for your changes.

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

That was fast, thanks for the speedy reply.

Robert

17 Dec 2007, 4:35 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Simple upgrade

No problem! :cool:

Don't forget to go into your admin and set your site to "down for maintenance" before you start fiddling with the upgrade because you never know when someone may hit your site and if you're in the middle of something, they can get unexpected results.

If you know your IP, you can set it in the "down for maintenance" function and be able to see what's going on without any potential customers being able to get in.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

17 Dec 2007, 4:54 PM
#6
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

afo:

No problem! :cool:

Don't forget to go into your admin and set your site to "down for maintenance" before you start fiddling with the upgrade because you never know when someone may hit your site and if you're in the middle of something, they can get unexpected results.

If you know your IP, you can set it in the "down for maintenance" function and be able to see what's going on without any potential customers being able to get in.

Done, thanks for the reminder.
So I have created a new database name and user and re-imported all my stuff. so I guess I'm ready to take the plunge. :-)

Thanks again.
Robert

17 Dec 2007, 6:01 PM
#7
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

I have started on my upgrade and it gave me two errors about the admin user and password.
After I entered the user name and password I use for entering the admin of my existing store, it still left me with one error that I have entered the wrong admin user name and password.
I even tried to go to the admin section of my site and it will not take admin info. :-(

Do I have to run the 1.3.8a install first and then run the upgrade?

17 Dec 2007, 10:01 PM
#8
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

Well the second attempt also failed misserably so I'm in the process of putting 1.3.7 back up.
Thanks for the help anyway.

Robert

18 Dec 2007, 1:45 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Simple upgrade

Rob905:

I have started on my upgrade and it gave me two errors about the admin user and password.
After I entered the user name and password I use for entering the admin of my existing store, it still left me with one error that I have entered the wrong admin user name and password.What kind of error?
Where?

.
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.

18 Dec 2007, 2:02 AM
#10
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

DrByte:

What kind of error?
Where?

The errors were admin user name and password errors, two of them
after I put the username and password in for my store admin area, it got rid of one of the errors but left me with one more.
It's moot now because I'm in a new predicament now. :-(

During all my messing arround, I have managed to upgrade my 1.3.7 DB to 1.3.8a but no matter what I do as far as installing the store, I dont' get to see any of my items.
When I go to robertensing.com it shows the bare shell of the store and says "there are no products to display"

I've checked the database info and can't figure out how to get it to work again.
I can't even get my 1.3.7 site to work anymore so I'm on a mission now to just to go straight to 1.3.8a and do a clean install if I can only get the database to work.

18 Dec 2007, 2:13 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Simple upgrade

Sounds like you've got mixed up database content.

How exactly did you do your entire "upgrade"? ie: what are all the steps you've done to get from "there" to "here"?

Yes, it'll likely be a lengthy list.

Did you follow any FAQs or documented upgrade instructions?

.
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.

18 Dec 2007, 2:22 AM
#12
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

DrByte:

Sounds like you've got mixed up database content.

How exactly did you do your entire "upgrade"? ie: what are all the steps you've done to get from "there" to "here"?

Yes, it'll likely be a lengthy list.

Did you follow any FAQs or documented upgrade instructions?

  1. made a backup of mySQL using phpAdmin on the server and stored the info on my local hard drive
  2. made a backup of my entire site on my hd
  3. created a new direcory on my local drive for the 1.3.8a files and uploaded them.
  4. created a new database and imported the 1.3.7 backup that I created and it showed records in the new database
  5. started the install for the 1.3.8a files and when I got to the upgrade I selected to do the upgrade and put in the admin user name and password and this time it took it.
  6. when the install was done and I had the option to go to the store or to the admin, there were no products.
  7. I verfied that the 2 config files had the correct data in them and re-uploaded them just in case. Still no data to see in my store. :-(

That's where I'm at now and I have to stop for a bit to go fight the snow between Niagara Falls and Buffalo to get my brother at the airport.

Thanks for your help so far.

Robert
ps I'm also going to try Xampp when I get back, will that help?

18 Dec 2007, 3:24 AM
#13
drbyte avatar

drbyte

Sensei

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

Re: Simple upgrade

Rob905:

  1. started the **install **for the 1.3.8a files and when I got to the upgrade I selected to do the upgrade and put in the admin user name and password and this time it took it.
  2. when the **install **was done and I had the option to go to the store or to the admin, there were no products.At any time, did you click "Install", or did you always click "Upgrade"?

Clicking "Install" will ask you to supply your database credentials, and wipe the database and build a new one.

Rob905:

ps I'm also going to try Xampp when I get back, will that help?

I don't see how that would make any difference.

.
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.

18 Dec 2007, 5:06 AM
#14
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

DrByte:

At any time, did you click "Install", or did you always click "Upgrade"?

Clicking "Install" will ask you to supply your database credentials, and wipe the database and build a new one.

Sorry, bad wording on my part, I did the Upgrade.

18 Dec 2007, 6:01 AM
#15
drbyte avatar

drbyte

Sensei

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

Re: Simple upgrade

Okay, so you imported your data into the new database.
If you look into the database tables, I assume you can see the expected data in there?

And then you did an upgrade ... but said your store now shows no data.
Is the data in the database tables still?

Have you switched DB_PREFIX settings and perhaps removed "zen_" or some other prefix in the process?

How many tables are in your database at this point?

.
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.

18 Dec 2007, 6:11 AM
#16
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

DrByte:

Okay, so you imported your data into the new database.
If you look into the database tables, I assume you can see the expected data in there?

And then you did an upgrade ... but said your store now shows no data.
Is the data in the database tables still?

Have you switched DB_PREFIX settings and perhaps removed "zen_" or some other prefix in the process?

How many tables are in your database at this point?

There is 188 tables, the 1.37 version had 186.

I think I'm getting there slowly. I've started from scratch, erased and created a new database and imported the data then ran the upgrade again and it now sees all my data but I'm going to have to make all the cosmetic changes again. Stuff like "Sales Message goes here.." etc.

I'm still not getting the overide to work correctly.
I created the folders as per earlier messages and have cut and paste the files into it but it doesn't seem to pick them up in the site after I upload them.
did I miss something?

18 Dec 2007, 6:16 AM
#17
drbyte avatar

drbyte

Sensei

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

Re: Simple upgrade

Did you ever look at the upgrade documentation?
It's included in the /docs/ folder of your Zen Cart files.

Additionally, it's in the FAQ area as well: https://www.zen-cart.com/tutorials/index.php?article=98

You need to merge all the new files with your customizations in order to incorporate new things and bug fixes into any files you altered.

.
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.

18 Dec 2007, 1:16 PM
#18
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

DrByte:

Did you ever look at the upgrade documentation?
It's included in the /docs/ folder of your Zen Cart files.

Additionally, it's in the FAQ area as well: https://www.zen-cart.com/tutorials/index.php?article=98

You need to merge all the new files with your customizations in order to incorporate new things and bug fixes into any files you altered.

Yes I did and that didn't work for me either. I think I had 3 directories at one time but nothing seemed to work on that round.

So here is where I'm at as of last nite.
I'm now at 1.3.8a with an upgraded database that has and shows my 2100 items.
I ended up installing 1.3.8a from scratch and then just doing the upgrade on the database.
All I have left to do is the cosmetic stuff like changing the messages again but I can live with that.
Next will be to figure out the override system so I don't have to go through this on future updates.

How do I enable the phpBB that I installed? I don't see any links for it in the store?

Thanks again for all the help.

Robert

18 Dec 2007, 1:57 PM
#19
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Simple upgrade

Did you go into the admin and pick your template from the pull down menu under tools->template selection?

If you don't see it in the pull down menu, make certain you have includes/templates/YOUR_TEMPLATE/template_info.php.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Dec 2007, 3:08 PM
#20
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Simple upgrade

afo:

Did you go into the admin and pick your template from the pull down menu under tools->template selection?

If you don't see it in the pull down menu, make certain you have includes/templates/YOUR_TEMPLATE/template_info.php.

I just tried that.
I see the templates but when I try to preview it I get a 404 file not found error, I guess because the screenshot of that color scheme is missing.
So I tried the Edit button, picked my design and low and behold my site came up. Only problem is, the color scheme is WAY off and the site now fills the entire screen without any side boxes.
So I guess I'm on the right track but need to find out what files I'm missing from my custom directory.

Thanks so far.
Robert