If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Add to cart issue

Add to cart issue

Started by pgo2010 on 14 May 2013, 6:08 PM · Views: 1,350

Results 1 to 19 of 19
14 May 2013, 6:08 PM
#1
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #1 by pgo2010

Recently the "add to cart" function and login function on my site have stopped working. The site seems to be operating and all links work but as soon as I click on a product and add it to cart, it takes me to a blank page or a loading error message appears depending on the browser used. This site has been operating without issues for almost 3 years and this just started happening recently.

Any help would be greatly appreciated!

To replicate click on any product then add it to cart at the bottom of the product description page. www.photoglobeonline.com

Thanks in advance!

14 May 2013, 6:21 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

Check you debug logs in either the /cache for older versions of Zen Cart or /logs and see what they say about the error ...

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!

14 May 2013, 6:42 PM
#3
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #3 by pgo2010

Sorry but very limited zencart knowlegde here... where would i find the debug log?

Also, I just logged in to the FTP site and noticed there are a number of files with the same modify date and time (may) even though I have not made any changes to the site in over a month. Could this have something to do with it?

Thanks

14 May 2013, 6:46 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

First ... click Reply and answer the questions there so we can better help you ... the different versions of Zen Cart with have the debug logs in the directories:
/cache
/logs

or not at all without an add on, if you are running a really old, out-dated, buggy and insecure version of Zen Cart ...

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!

14 May 2013, 6:56 PM
#5
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #5 by pgo2010

Sorry about the lack of info.

I just had a look and the site is running version 1.3.8a with no recent updates.

It was initially installed by an outside IT person a few years ago so not entirely sure of the process used to install it.

PHP: 5.2.17 (Zend: 2.2.0)
MySQL: MySQL 5.0.96-log

Thanks

14 May 2013, 7:08 PM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

In that old, out-dated, buggy, insecure version of Zen Cart, there is not a built in Debugger ... you would need to search the add on plugs for:
Debug

and locate something like:
http://www.zen-cart.com/downloads.php?do=file&id=606

that will work with that old, out-dated, buggy, insecure version of Zen Cart and install it then trigger the error again and see what shows up in the debug errors that are recorded in the directory /cache on your 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!

14 May 2013, 7:14 PM
#7
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #7 by pgo2010

So I guess what you're trying to say is that you don't like my current version very much? :P
The only reason why I haven't updated (though I'd like to) is that I really don't have the skill set to unfortunately and the person that installed it for me initially is no longer available.

Would the addon in the link you sent work fine for me if I download and install that one or do I need to search for something else?

Thanks

14 May 2013, 9:44 PM
#8
ajeh avatar

ajeh

Oba-san

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

Post #8 by ajeh

That should work for your version just read the instructions on it ...

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!

14 May 2013, 11:12 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #9 by gjh42

And you really do need to upgrade to a newer secure version, or hire someone to do it, before you get hacked and have to fix that as well as upgrade (that is, if you haven't been hacked already...)

15 May 2013, 12:36 AM
#10
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #10 by pgo2010

I just tried downloading and copying the debug file. (copied it to the includes/extra_configures) folder as indicated then replicated the error on the site but nothing was generated in the cache folder in the main directory. Should something have appeared there?

Also, checking my site history through go daddy I noticed that 3 files were added (that weren't there on / before May 2nd).
php.ini
gdform.php
cgi/bin.pl

Could this have anything to do with it? I know for a fact the site was working fine till May 1st as I received an order on that day but have not received anything else since.

Any thoughts?

15 May 2013, 12:40 AM
#11
drbyte avatar

drbyte

Sensei

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

Post #11 by drbyte

Zen Cart doesn't use the gdform.php or cgi/bin.pl files. If you don't have anything else on your site using them, then delete them.
What's in the php.ini file?

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

15 May 2013, 12:55 AM
#12
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #12 by pgo2010

I just saved them to my computer and deleted them off the ftp. still having the same issue though.

The php.ini file has the following:

register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="


; Only uncomment zend optimizer lines if your application requires Zend Optimizer support

;[Zend]
;zend_optimizer.optimization_level=15
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so


; -- Be very careful to not to disable a function which might be needed!
; -- Uncomment the following lines to increase the security of your PHP site.

;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru,
;              phpinfo, exec, system, dl, fsockopen, set_time_limit,
;                     popen, proc_open, proc_nice,shell_exec,show_source,symlink"
15 May 2013, 12:59 AM
#13
drbyte avatar

drbyte

Sensei

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

Post #13 by drbyte

That php.ini content looks fine.

So, the next step is to find out all the ways in which your site differs from original code, and fix whatever ought not to have been changed. This is the same process as one follows to determine whether they've been hacked and to clean up that damage.
http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks

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

15 May 2013, 1:13 AM
#14
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #14 by pgo2010

I also just noticed that my database file has gotten much larger since the last update which was a few months ago. Over the last 3 years it has been gone up from nothing to approx 30mb and in the last 3 months it went up to approx 500mb though activity has been the same as it always has been. no large increase.

Not sure if this tells you anything else but seemed strange to me.

15 May 2013, 1:23 AM
#15
drbyte avatar

drbyte

Sensei

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

Post #15 by drbyte

Well, the database size will grow faster when:

  • the site is sending out a lot of emails (only if you've got email-archiving enabled in your Email Options settings),
  • or if there is a lot of activity on the admin side, since it logs admin activity into the database. If you were using the latest version of Zen Cart you could review the admin activity log from within your admin.
  • or if a hacker has hijacked your web account and is doing rogue things and hiding them in your database

Your old 1.3.8 version is from 2006. But recent versions have gone through significant security audits and closed all the known holes that existed 7 years ago when your version was published.

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

15 May 2013, 2:04 AM
#16
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #16 by pgo2010

If I attempt an update from my version, will all my settings, content, customizations remain or would i have to set all that up from the beginning again?

Also, are there any zencart trusted people / services that could do the update for me?

15 May 2013, 2:21 AM
#17
drbyte avatar

drbyte

Sensei

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

Post #17 by drbyte

Your upgrade should only be attempted AFTER you do a thorough cleanup.

Upgrades should ALWAYS be tested first in a completely separate COPY of your site, so you can work out all the kinks, especially when you're upgrading from such an older version. You will need to tweak several template-related things, etc. Once you've tested the upgrade and are comfortable with exactly how to do it, then you can do the actual upgrade to the live site. THIS SHOULD BE DONE IN STAGES, and NOT UNDER EMERGENCY CONDITIONS such as you've been posting about.

So, I recommend:

  1. Inspect and clean up your current site: http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks
  2. Then once your site is fixed and working properly, plan and prepare your upgrade over several days or weeks, without having the pressure of downtime. A suggested plan for upgrading: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

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

15 May 2013, 4:42 AM
#18
pgo2010 avatar

pgo2010

New Zenner

Join Date:
Apr 2011
Posts:
31
Plugin Contributions:
0

Post #18 by pgo2010

So I just did a full scan (copied all the files to my computer off the ftp) and ran them through DiffMerge against a backup from 2012 of my site.

There were a few differences but all seemed to be normal. I tried replacing the current files with the files from the backup anyway and it didn't seem to do anything. I can't find any other differences aside from the ones found by diffmerge.

Completely at a loss here

15 May 2013, 4:25 PM
#19
drbyte avatar

drbyte

Sensei

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

Post #19 by drbyte

PGO2010:

as soon as I click on a product and add it to cart, it takes me to a blank page
A blank page is (usually) the result of a PHP error. (if it's not a PHP error, it's a server apache or security error)
It is important to determine the actual PHP error occurring. Let's get that sorted out.

Ajeh pointed you to install the log-generation tool for your v1.3.8a site via http://www.zen-cart.com/downloads.php?do=file&id=606 and then follow the instructions here to understand the broader picture of how errors and logs work: http://www.zen-cart.com/content.php?124-blank-page

What's in your /cache/myDebug-xxxxxx.log files? (accessed via FTP)

Also, did your hosting company recently change your PHP version?

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