If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / Upgrading from my beta of v1.5.5 to v1.5.5

Upgrading from my beta of v1.5.5 to v1.5.5

Started by webskipper on 17 Mar 2016, 8:08 PM · Views: 1,934

Results 1 to 20 of 24
17 Mar 2016, 8:08 PM
#1
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #1 by webskipper

Thanks to all who have contributed to this fantastic and refreshing Update!

I just upgraded from 151 to Beta 155 this week.

Which new files do I need to compare?

Cheers!
v2.2.1

17 Mar 2016, 8:22 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

You should use something like Beyond Compare and compare ALL files to what you have on the server ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Mar 2016, 8:22 PM
#3
lat9 avatar

lat9

Administrator

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

Post #3 by lat9

That's going to depend (heavily) on when you downloaded the beta. You've (hopefully) preserved the base files for the beta you downloaded, so you can download the "official" version and use a file-comparison tool like Beyond Compare or WinMerge to see what files have changed.

17 Mar 2016, 8:59 PM
#4
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #4 by webskipper

Correct. I use BBedit for Mac.

Are these files no longer used in 155?

See the pic. The arrows suggest moving the existing files, which are missing in the Full version 155 folder.

Otherwise, I don't any changes that I have not applied this week.

When they are deprecated I will delete them from the server.

Attachment 16122

Cheers!
v2.2.1

17 Mar 2016, 9:20 PM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

You can find a complete list of files added/deleted/changed inside the /docs/ folder, in the changed_files-v155.html file.

I recommend reading: https://www.zen-cart.com/showthread.php?219730-Zen-Cart-v1-5-5-released

And, as far as changes "this week", several changes were made every day this week. While you "could" use the diffs on github, you should be doing a fresh file-comparison with the official release zip. Your post above strongly suggests you're comparing the wrong things.

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

17 Mar 2016, 9:52 PM
#6
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #6 by webskipper

DrByte:

Your post above strongly suggests you're comparing the wrong things.

How is that you concluded that? See the pic above and below, Doc.

The faint icon above means there is no counterpart file present in the other folder, while clicking the arrow will cause the app to copy the existing file into the folder where its counterpart would be. I did not move any files to where they are missing. I should delete the missing 151-154 files from the server. That's maybe where my bugs are.

Cheers!
v2.2.1

18 Mar 2016, 12:41 AM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

webskipper:

DrByte:

Your post above strongly suggests you're comparing the wrong things.How is that you concluded that?
Simple really: there are a lot more differences than what you posted, just from today's code changes alone.

.
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 Mar 2016, 10:42 PM
#8
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #8 by webskipper

DrByte:

Simple really: there are a lot more differences than what you posted, just from today's code changes alone.

That's correct. The complete list of files was way to long to post when all off the directories were expanded. My Beta 155 files are the same as the full version 155.

What a complete waste of time this week updating from 151 to Beta 155 and then to full version of 155. ZC installer said I'm up to date. Nothing to change except a wipe.

The same BETA 155 bugs are there even after applying the fixes from the other day per your recommendations on the closed post on BETA 155 feedback.

I have physically copied and pasted into ftp files.

I can sometimes add to cart

I can sometimes delete from cart

I can PP Express checkout

I cannot be returned to the Store from PP.

I cannot customer login/checkout/create new account. Too many redirects.

Weird stuff.

How can I only backup the products on the database to do a clean install of 155?

Cheers!
v2.2.1

18 Mar 2016, 11:12 PM
#9
drbyte avatar

drbyte

Sensei

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

Post #9 by drbyte

The so-called beta bugs you mention seem to be very unique to your server. Or to the mods you've got on your site.

It would be useful to narrow down the symptoms to a possible cause, such as whether it has anything to do with your actual data or not. This would be done by installing a clean store with demo data (keeping your previous backup to use later), and no other changes/code/mods/databasedata/etc. And no rewrite-rules in your .htaccess either. Just a basic demo site.
Check whether you can add-to-cart consistently or not. Check whether you can create a new account and login or not. Test whether you can checkout using the already-installed check/moneyorder module. Check whether you can login to Admin.

Then if everything's working perfectly, restore your database of actual data and run zc_install. But use no plugins or custom .htaccess. Test basic add-to-cart, and customer login.

I'm guessing all these will work mostly normal. Then you'll want to start adding back your custom .htaccess. Then test again. Then one by one each of your plugins, testing between each.

I'm pretty sure it's related to your .htaccess and/or addons.

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

19 Mar 2016, 1:37 AM
#10
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #10 by webskipper

DrByte:

The so-called beta bugs you mention seem to be very unique to your server. Or to the mods you've got on your site.

It would be useful to narrow down the symptoms to a possible cause, such as whether it has anything to do with your actual data or not. This would be done by installing a clean store with demo data (keeping your previous backup to use later), and no other changes/code/mods/databasedata/etc. And no rewrite-rules in your .htaccess either. Just a basic demo site.
Check whether you can add-to-cart consistently or not. Check whether you can create a new account and login or not. Test whether you can checkout using the already-installed check/moneyorder module. Check whether you can login to Admin.

Then if everything's working perfectly, restore your database of actual data and run zc_install. But use no plugins or custom .htaccess. Test basic add-to-cart, and customer login.

I'm guessing all these will work mostly normal. Then you'll want to start adding back your custom .htaccess. Then test again. Then one by one each of your plugins, testing between each.

I'm pretty sure it's related to your .htaccess and/or addons.

That's pretty pathetic advice and an inaccurate assumption on your part.

I am not using any mods.

Just Anne's fantastic v155 responsive template. Standard part of the v155 you released.

Its pretty pathetic to be told to start from scratch when going from a beta to a version = to beta + 2 hours.

Then have to rebuild a whole site.

I will start to deleting unused directories.

Cheers!
v2.2.1

19 Mar 2016, 2:23 AM
#11
drbyte avatar

drbyte

Sensei

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

Post #11 by drbyte

I can appreciate that you feel the advice is "pathetic", particularly when it's not a quick fix.

But in the absence of concrete evidence that the problem is actually something wrong with v155 the best course of action is to rule it out. It's a process of elimination.

Your symptoms are not something I've ever witnessed in the many years I've been using Zen Cart. So, while I may not have an instant exact answer, I assure you my methods of diagnosis are sound. But, if you don't want to follow my suggestions, that's up to you.

With my last post I was going to suggest that another course of action would be to take the same database and code to a completely different server, ideally configured by a different hosting company, to rule out the server. But I figured you'd tell me that was a stupid idea. In hindsight I guess I was probably right.

I'd really like to see your site running normally again. But you have to help us help you.

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

19 Mar 2016, 9:41 PM
#12
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #12 by webskipper

Thank you for the advice.

I have not performed a fresh install on this server for this domain this millennium other than the host transfer. There were several files not used in 155. I started deleting them. The site got better and still had some bugs.

All ht accèss files manually updated to 155.

Something in the DB was affecting the 155 site. Maybe it was upgrading the server php to 5.6.14. Whatever the bugs were, they have been eradicated.

I removed any and all files and directories associated with this domain and not affecting my other ZC sites. Combed the images directories for any stray files. Created a new DB. With the exception of the main images, I uploaded the fresh install 155 dated 3/18 and as always, chose to install the Demo Store.

As a minor detail, I always like to preload my favicon(s), logo images, taglines, meta tag text, etc. for the public side, during the initial upload.

Once you do several fresh installs, this process gets easier.

Payment and shipping modules restored. Minimum shipping, time zone fixed.

Add to cart, remove from cart, edit cart, Checkout, login, return from PP site, etc. It all works quickly now. Unnecessary to Reset All Box Sort Order to match DEFAULT Sort Order for Template.

Backed up the complete site plus DB.

I deleted all 1.3x backups from the desktop and any plugin zips. They are included in 155.

How do I only import product tables from the old DB?

Cheers!
v2.2.1

19 Mar 2016, 10:49 PM
#13
drbyte avatar

drbyte

Sensei

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

Post #13 by drbyte

webskipper:

It all works quickly now.
That's good news :)

> webskipper:

How do I only import product tables from the old DB?
If you're comfortable with manually picking/choosing certain tables, here's a categorized list of tables based on the purpose for which they're used.
https://www.zen-cart.com/wiki/index.php/Developers_-_Database_Schema#Table_List_Ordered_by_Data
For other readers of this discussion: Naturally for 99% of people we strongly recommend to always use a complete copy of the database in its entirety, instead of selectively picking individual tables ... because those 99% of people really don't understand the complexities of how these tables interact with each other.

Remember that if you're only bringing over product-related info, you'll be leaving your customer and order history behind ... so, be aware of that consequence on your customers and your accounting department.

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

19 Mar 2016, 11:56 PM
#14
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #14 by webskipper

Are you referring to including everything within:

Table List Ordered by Data > Product Info?

Is this correct? Populate an sql for import beginning with a blank text file and copy/paste the Product tables such as:

--
-- Table structure for table product_types

DROP TABLE IF EXISTS product_types;
/*!40101 SET @saved_cs_client = @@character_set_client /;
/
!40101 SET character_set_client = utf8 /;
CREATE TABLE product_types (
type_id int(11) NOT NULL,
type_name varchar(255) NOT NULL DEFAULT '',
type_handler varchar(255) NOT NULL DEFAULT '',
type_master_type int(11) NOT NULL DEFAULT '1',
allow_add_to_cart char(1) NOT NULL DEFAULT 'Y',
default_image varchar(255) NOT NULL DEFAULT '',
date_added datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
last_modified datetime NOT NULL DEFAULT '0001-01-01 00:00:00'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/
!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table product_types

LOCK TABLES product_types WRITE;
/*!40000 ALTER TABLE product_types DISABLE KEYS /;
INSERT INTO product_types (type_id, type_name, type_handler, type_master_type, allow_add_to_cart, default_image, date_added, last_modified) VALUES (1,'Product - General','product',1,'Y','','2008-03-21 22:47:37','2008-03-21 22:47:37'),(2,'Product - Music','product_music',1,'N','','2008-03-21 22:47:37','2008-12-30 19:18:44'),(3,'Document - General','document_general',3,'N','','2008-03-21 22:47:37','2008-03-21 22:47:37'),(4,'Document - Product','document_product',3,'Y','','2008-03-21 22:47:37','2008-03-21 22:47:37'),(5,'Product - Free Shipping','product_free_shipping',1,'N','','2008-03-21 22:47:38','2008-12-30 19:18:33');
/
!40000 ALTER TABLE product_types ENABLE KEYS */;
UNLOCK TABLES;

etc

Cheers!
v2.2.1

20 Mar 2016, 1:09 AM
#15
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #15 by webskipper

Oh, I think I understand what you meant.

Easier to export from the old db:

All Categories
All Products

Cheers!
v2.2.1

20 Mar 2016, 4:44 AM
#16
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #16 by webskipper

Products, categories, and manufactures imported to new DB successfully. Thanks!

Cheers!
v2.2.1

24 Mar 2016, 5:32 PM
#17
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #17 by webskipper

*I can add to and edit cart in Classic Template and not the 155 responsive template.

Any advice?*

Cheers!
v2.2.1

24 Mar 2016, 6:15 PM
#18
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #18 by rbarbour

I can't replicate.

What do your error logs return?

webskipper:

*I can add to and edit cart in Classic Template and not the 155 responsive template.

Any advice?*

24 Mar 2016, 6:19 PM
#19
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #19 by webskipper

DrByte:

webskipper, can you put a fresh new unaltered v155 install (with demo data) into a subdirectory for us to compare against your live site?

I have done that and am comparing the new db to the live db.

I am discovering many similar strings of the live DB missing the Auto_increment function

demo currencies_id int(11) NOT NULL AUTO_INCREMENT,
Live currencies_id int(11) NOT NULL,

Is this the issue?

Cheers!
v2.2.1

24 Mar 2016, 6:24 PM
#20
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #20 by webskipper

rbarbour:

I can't replicate.

What do your error logs return?

Nuttin'

Cheers!
v2.2.1