Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Preview button doesn't work - can't add products

Preview button doesn't work - can't add products

Locked

Views: 4,276

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
5 Oct 2009, 8:13 PM
#1
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Preview button doesn't work - can't add products

I moved a site to a PCI compliant hosting company. Customers can buy from the front end, and I log into to the admin, however the following buttons don't work:

  • Save button, when creating a new category
  • Preview button, when creating a new product
  • Preview button, when amending a product
  • Update button, when changing status of an order
    Looking around the forum, over aggressive mod_security rules were mentioned, however the host tells me "We do not use mod_security, but we do use Suhosin"

Any idea what it could be? Thanks in advance!

5 Oct 2009, 8:45 PM
#3
karenjuddsmith avatar

karenjuddsmith

New Zenner

Join Date:
Jul 2009
Posts:
3
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

I have something similar. I just added the security patch. I since tried to add a new category to my site, but the "save" button doesn't seem to effect the change. Not sure where to start to find the problem here.

5 Oct 2009, 8:51 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Preview button doesn't work - can't add products

Karen - that's one possible symptom of installing the security patch incorrectly. It's possible you installed the files to the cart directories rather than admin.

5 Oct 2009, 9:00 PM
#5
karenjuddsmith avatar

karenjuddsmith

New Zenner

Join Date:
Jul 2009
Posts:
3
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

I wish that were true, I could easily fix it. But I did put the patch files and the one modified file back in the newly renamed admin area. Any other directions you could point me in?

It also may have been nothing to do with the patch. It's just that is the most significant change I have made to the store files other than regular item updates etc. in quite some time.

I can add new products just fine. Only seems to be affecting the new category section. I can do a workaround for now. But there will come a time...

Thank you for responding!

5 Oct 2009, 9:03 PM
#6
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

Stevesh - thanks for responding - I've asked the host where php.ini is for me to add

suhosin.session.encrypt = off

Otherwise I checked if I had incorrectly installed the security patch and I had uploaded all files to my admin folder.

6 Oct 2009, 10:00 AM
#7
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

The hosting company now says:

"It should not be causing problems. There may be something else that is causing your problem. Have you tried to contact ZenCart to see if they have any solutions or ideas?"

Should I look for another host? Anything else you suggest I try?

6 Oct 2009, 10:30 AM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Preview button doesn't work - can't add products

dsided:


Should I look for another host?

I'm not sure you have a choice. DrByte says Zencart won't work with
suhosin, and he'd know, so ...

I guess I don't understand why they won't let you turn it off, though.

You might look at the Certified Hosts.

6 Oct 2009, 10:38 AM
#9
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

Thanks for the tip. I did a blank install of v1.3.8a/v1.3.8 to a test directory and the buttons work fine(!)

I'm going to try patching to the latest release and see if that still works.

6 Oct 2009, 10:42 AM
#10
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

I've now patched to security_patch_v138_20090619 and the buttons DON'T WORK!

I'm going to remove the patch until this is resolved. DrByte what info about my server configuration do you need?

6 Oct 2009, 11:55 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Preview button doesn't work - can't add products

I don't see how the admin security patch would affect that at all.

6 Oct 2009, 12:48 PM
#12
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

I've compared the html output of my working zencart with the test zencart with the security patch and may have found the problem.

With the patch installed a big chunks of code is missing, including the form tag! No wonder the button doesn't work.

I assume this patch has been installed on many server successfully, so I wonder what could be causing the code removal on the server? I've asked the hosting company and will report back.

6 Oct 2009, 1:59 PM
#13
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

The host is saying "I'm not sure why the security patch would cause this issue, you'll have to contact the developer"

DrByte is there anything I could reply back with?

6 Oct 2009, 5:46 PM
#14
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Preview button doesn't work - can't add products

Do you have any contributions installed, especially contributions that change admin/includes/functions/html_output.php or categories.php.

When you installed the patch, did you just overwrite the old html_output.php or hand edit it.

If you are unsure, attach a (zipped)copy of the html_output.php file to your reply.

7 Oct 2009, 11:27 PM
#15
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

Thanks Wilt. I did a fresh install and overwrote the files. I think this is a server issue and have decided to change to Camelot hosting.

8 Oct 2009, 5:00 PM
#16
karenjuddsmith avatar

karenjuddsmith

New Zenner

Join Date:
Jul 2009
Posts:
3
Plugin Contributions:
0

Re: Preview button doesn't work - can't add products

As noted in an earlier post, my buttons didn't work after I installed the patch. I checked and rechecked the installation of the patch.

The only solution I found (with the help of the discussions and dsided in particular) was to remove the security patch v138_20090619 and voila! All is working very nicely again.

The version of Zen I am running is 1.3.7.1. ...haven't upgraded to 1.3.8a yet and am now a little hesitant! 1.3.7.1 was a fresh install.

8 Oct 2009, 5:26 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Preview button doesn't work - can't add products

Karen, the 5 patch files must be put in the correct places. If you edit the non-admin version of html_output.php (contrary to the instructions) and don't edit the admin version of the file, then you won't be able to save any changes in your admin.

Entirely unrelated to upgrading.