Zen Cart Logo
Forums / Bug Reports / [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

[Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Locked

Views: 61,664

Results 201 to 220 of 225
This thread is locked. New replies are disabled.
23 Oct 2010, 2:08 PM
#201
ajeh avatar

ajeh

Oba-san

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

[Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Using v1.3.9g ... see this post and follow each step in post #52
http://www.zen-cart.com/forum/showthread.php?t=165081

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!

23 Oct 2010, 3:26 PM
#202
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Hi, thanks for getting back to me, followed instructions in post#52, but still dont seem to work, guess iam doing something wrong.

This is what i did,

1 create the file:
/admin/includes/extra_configures/extra_white_list.php & added the code posted:

<?php $global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array(); $my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string'); $global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist); 2 FTP the file to my server 3. Went to Define main page editor and copied the same code in again: <?php $global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array(); $my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string'); $global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist); Clicked save, checked my website & it still showing: <?php $global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array(); $my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string'); $global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist); <div style="text-align: center;"><img src="http://mywebsite.com/images/main.jpg" /> Hope somebody can help, as this is driving me crazy. Thanks :bigups:
23 Oct 2010, 3:29 PM
#203
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Hello guys! I just wanted to ask what's going on when my banner stopped rendering but instead showed up the html code. what i did was went to the EZ pages and edited the define_main_page but i undid it but still the banner wont render.

if you have time, kindly please check my store here.
thanks very much!

23 Oct 2010, 3:38 PM
#204
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

mayleine:

Hello guys! I just wanted to ask what's going on when my banner stopped rendering but instead showed up the html code. what i did was went to the EZ pages and edited the define_main_page but i undid it but still the banner wont render.

if you have time, kindly please check my store here.
thanks very much!

check this post ( www.zen-cart.com/forum/showpost.php?p=941839&postcount=52 )

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

23 Oct 2010, 3:49 PM
#205
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Do not do what you did in step 3 ... you do not copy this code into your define page ... you only create the file:
/admin/includes/extra_configures/extra_white_list.php

with the code in it and load that to your site ...

Then, use your define page as you normally do ... you just need to edit what you put in there and save it so that it fixes itself ...

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!

23 Oct 2010, 4:07 PM
#206
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

i followed the direction and created that file, i lost all of my admin so i removed it again. i got the admin back but not the define_main_page. when i click that, all i see is blank empty space.:shocking:

23 Oct 2010, 4:18 PM
#207
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Hi, thanks for getting back to me :bigups:

So i left step 3 out & uploaded my picture up & saved, when i check in it still showing:

<div style="text-align: center;"><img src="http://mywebsite.com/images/main.jpg" /><br /> </div>

:frusty::frusty::frusty:

23 Oct 2010, 4:19 PM
#208
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

anyway, thanks for pointing me to that post clydejones. what i need to do is sharpen my common sense a bit. hehe. i will figure it out from all the posts there. :flex:

23 Oct 2010, 5:39 PM
#209
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Ok! I finally got it resolved! I reached the point of frustration because even though I carefully followed Linda's patch in that post above, i didnt give importance to item # 4 where she said

"4. edit the section where you have the problem and save/update it to correct the issue"

because I already made sure what i put there was deleted. So just to follow the 1-2-3-4 items on that post and follow the commandments of the gods, what I did was literally TOUCH the file again in that define_main_page. I

  1. added a random space anywhere in the file and
  2. hit backspace to undo that space i added
  3. hit Save.

I wasnt expecting anything but VIOLA, my banners are resurrected!!! :clap:

Thanks to the Zen cart team! ;)

23 Oct 2010, 6:31 PM
#210
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Go to your Admin and in the Tools ... Developers Tool Kit ... do a search in the bottom input box for:
$my_whitelist

and select Admin and click search ...

Do you see the file:
/admin/includes/extra_configures/extra_white_list.php

in the list of files?

NOTE: the /admin would be a different directory name to match your secret /admin directory name that you are of course using ...

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!

23 Oct 2010, 6:38 PM
#211
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Thanks for the update that this worked for you ... :smile:

NOTE: you did not even need to do the add a space delete a space ... just to hit the edit and then the save/update is all that is needed ...

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!

23 Oct 2010, 6:38 PM
#212
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Hi, did as you said and it displays:

Searching 281 files ... for: $my_whitelist

/home/beac2116/public_html/MYWEBSITE.com/zc_admin/includes/init_includes/init_sanitize.php

Line #25 : * $my_whitelist = array('some_field_name');

Match Lines found: 1

Hope that helps

23 Oct 2010, 6:44 PM
#213
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Yes it tells me you did not follow the steps in post #52 and create a new file and load it to your site with FTP with the code posted in post #52 ...

You physically need to create your own file for:
/admin/includes/extra_configures/extra_white_list.php

and add the code and load it to your site ...

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!

23 Oct 2010, 7:18 PM
#214
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Hi, iam using PHP designer 2007 Personal

I clicked on new PHP, copied the code into it saved as extra_white_list.php

I than uploaded the file with fillzilla to:
/public_html/mywebsite.com/admin/includes/extra_configures/extra_white_list.php

So its definately there, but i dont know why this is still not working.

I just checked at fillzilla and its still there

:frusty::frusty::frusty:

23 Oct 2010, 7:21 PM
#215
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

I believe you are loading it to the wrong directory ...

While I am "saying" load the file to:
/admin/includes/extra_configures/extra_white_list.php

If your real Zen Cart Admin is in the directory:
/fred

you would load the file into:
/fred/includes/extra_configures/extra_white_list.php

If your real Zen Cart Admin is in the directory:
/abc123

you would load the file into:
/abc123/includes/extra_configures/extra_white_list.php

Check what the real directory name is for your Zen Cart Admin is and then load it to:
/your_admin_directory_name/includes/extra_configures/extra_white_list.php

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!

23 Oct 2010, 7:26 PM
#216
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

LOL, thanks Linda! yeah, that part is not necessary. just save. thanks so much for this wonderful zen cart.

23 Oct 2010, 8:52 PM
#217
commdiver avatar

commdiver

Zen Follower

Join Date:
May 2010
Posts:
222
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Ajeh:

Are you saying it is broken in the Preview of the Admin or in the Store?

NOTE: the Preview in the Admin will still be broken until the next release of v1.3.9h ...

It works, but like you said, preview is broken in the admin.

Thank you for the help.

24 Oct 2010, 12:25 PM
#218
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Ajeh<= yes I have found the file that was recommend to fix the issue. The tags are not present after I save the text for example in an item description. However, after I type in my text, an click on preview I see all the html coding but when press update the description is posted correctly.

24 Oct 2010, 12:34 PM
#219
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

jfreeman:

Ajeh<= yes I have found the file that was recommend to fix the issue. The tags are not present after I save the text for example in an item description. However, after I type in my text, an click on preview I see all the html coding but when press update the description is posted correctly.
That's the "new normal" in v1.3.9g.
It'll change back again in v1.3.9h.

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

24 Oct 2010, 5:21 PM
#220
artsyambie6 avatar

artsyambie6

New Zenner

Join Date:
Oct 2010
Posts:
1
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

I've been creating a site for someone using v1.3.9g that's having issues with the HTMLarea. I've tried the extra_configures patch, but the page editor is still adding the code attributes and removing the spacing, etc. I don't believe the problem is the customized template, since the Zen Cart editor adds those attributes with the classic template too.

The site is http://literarylinens.com/ - oddly enough the EZpages editor is working fine though. So, any help or advice would be greatly appreciated. I would write the page code myself, but since the site is for someone that doesn't write code, it's important that they will be able to edit their own pages.

Thank you in advance for your time and assistance! I wouldn't ask for help unless it was absolutely dire.

-Amber