If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / Some products' descriptions disappeared after migration and upgrade from 1.3.9 to 1.5

Some products' descriptions disappeared after migration and upgrade from 1.3.9 to 1.5

Started by delia on 19 Sep 2012, 7:07 PM · Views: 2,365

Results 1 to 14 of 14
19 Sep 2012, 7:07 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #1 by delia

There doesn't seem to be any rhyme or reason. Just some of the old products are affected and only in admin. They show fine on the site itself. I went thru the description of one of them and found the curly apostrophes instead of the regular ones and changed them just in case but it's made no difference. It just has to be something in the description that's preventing it from showing on the page.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

20 Sep 2012, 4:27 AM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

Sounds very much like the data in your database is in a format that doesn't match the character set used by your store or by your database-connection, thus the problems.

Remember, if you upgraded from v1.3.9 to v1.5.x and your 1.3.x database was NOT utf8 then you'll need to make sure your new site's language files are changed from utf8 to whatever character set they were using BEFORE the upgrade.

All explained here: http://www.zen-cart.com/content.php?313-should-i-convert-my-store-from-iso-8859-1-to-utf8

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

20 Sep 2012, 12:19 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #3 by delia

Well, thanks for that link again. I've got to start a spreadsheet of these links!

However, making those changes did not work. I am using the original configure files from 1.3.9 so I just added define('DB_CHARSET', 'latin1'); . It's the old english file as well and it does still have the line define('CHARSET', 'iso-8859-1'); and @setlocale(LC_TIME, 'en_US.ISO_8859-1');

When I ran into this before, I had started fresh with 1.5 and just upgraded the database so changing the 1.5 configure and english files worked for that one. I also remember the problems were more obvious and not so erratic as this.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

20 Sep 2012, 4:54 PM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

But you've determined that it's related to problems with the characters in the description, right?
Have you tried switching it back and forth to different character sets?
Are the myDebug errorlogs showing anything that PHp is complaining about?

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

20 Sep 2012, 4:58 PM
#5
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Post #5 by limitless

Delia,

I noticed this on a few products in my admin right after I added the 'additional product fields' mod and embedded a youtube video and/or attached a pdf.

It does not happen on all products (with or without the additional fields), and the data is visible within my Zen Cart Store Manager app (Windows Application) and visible on the catalog side, but all fields are blank on the admin side of things.

20 Sep 2012, 6:36 PM
#6
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #6 by delia

yikes, there is a php error. It didn't stop the page so I didn't realize there was one.

[20-Sep-2012 08:10:41] PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/ostermy/public_html/store/zenmin/includes/modules/product/collect_info.php on line 401

I did find your post about that and we are definitely then in the utf8 territory.

Limitless, the version of my product extra fields is not a 1.5 version. If you mean numinix, be sure you also have a 1.5 version. And find the correct forum thread to post this in.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

20 Sep 2012, 7:04 PM
#7
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Post #7 by limitless

Ok, that's weird. I was 100% sure it said it was 1.5 compatible when I downloaded and installed it a few weeks ago.

Well, the plugin appears to work on 1.5, excluding random missing data in admin (not even sure if its related).

20 Sep 2012, 7:25 PM
#8
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #8 by delia

I did the database conversion and that did kill off parts of the description. Looks like the client pasted in from word so we have curly apostrophes and the long dashes instead of hyphens. DrByte, what other character set would be a reasonable alternative? This is so not my area of expertise but I gotta learn about this stuff in more detail.

What if I go change just that one field? The choices are utf-8 bin, general and unicode. Your mod uses utf8_general_ci looks like. If I switch back and forth on that one field, can what disappears after the problem character reappear if I turn it back to the latin_general_ci?

The script has already changed the database collation to utf8 and that didn't change when I reimported his data. So I exported just the description field to be safe. Changed it to utf8_general_ci - description is still fully there on the website and lo and behold it also appeared in admin.

Yeah, I know a screwy way of doing this but it fixed his problem for the moment. Any dangers to this quick fix?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

20 Sep 2012, 8:43 PM
#9
drbyte avatar

drbyte

Sensei

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

Post #9 by drbyte

If the data in your database has been fudged into being utf8 but your store is telling it to use iso88591 then I'm not surprised about the errors or any of the symptoms you mentioned.
That's probably the underlying root cause here: incorrectly changing stuff blindly.

If someone is going to use utf8, then it's best to use utf8 with everything. Or if they can't/won't/or don't-know-how to use utf8, then they should have just left it alone instead of changing it.

Summary: It sounds like your client has pushed you into having to convert everything. So, finish converting all the data to utf8 and update the language charset and db charset.

Make sure you test EVERYTHING to be sure that ALL the data in ALL the records in ALL the fields in ALL the tables is clean. Ya, that's a big job. But you don't wanna discover problems 6 months from now when you've got even more mixed-charset-data all over the place.

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

20 Sep 2012, 9:52 PM
#10
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #10 by delia

I did do the conversion which then removed parts of those descriptions after the offending character on the website. So I reversed it. Clients tend to go ballistic when stuff disappears. Would have certainly preferred to do it correctly but he wasn't paying for me doing all that work on either. I told him to edit his descriptions, removing/changing the problem characters and when he was done, I'll do the utf8 full conversion.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

21 Sep 2012, 3:00 AM
#11
drbyte avatar

drbyte

Sensei

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

Post #11 by drbyte

Many days I wish MS Word was never invented :)

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

21 Sep 2012, 1:01 PM
#12
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #12 by delia

amen to that, brother! One of the things I like the best about the xinha WYSIWYG editor is that it has a word clean function but I was never able to get it fully integrated with zen cart.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

21 Sep 2012, 3:02 PM
#13
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Post #13 by rstevenson

Whenever I have to copy/paste from a Word doc to any file intended for the web I first paste the text into my text editor (BBEdit, in my case). There, if I suspect garbage, I run its "Zap Gremlins" command. Then I copy and paste the text out of the text editor and into wherever its needed -- an HTML file, or a description field in Zen Cart, or ... .

I never, ever use Word's own native files. They're supposed to be in XML format, which should make web use really easy, but you know Microsoft -- they can't leave well enough alone. They ended up making even their XML output a gloop of proprietary code mixed into the standardized stuff. So sad.

Rob

Breakfast: the most important donut of the day.

21 Sep 2012, 3:23 PM
#14
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #14 by delia

Yeah, I do that too: pasting into Dreamweaver - it's the clients that have the problem. I truly love zen cart because it can be really easy for the client to edit the products but it does make for messes sometimes.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo