Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / New shop intermittently throwing up " Whoops your session has expired" on all actions

New shop intermittently throwing up " Whoops your session has expired" on all actions

Started by paulmd on 22 Dec 2012, 12:17 PM · Views: 3,284

Results 1 to 15 of 15
22 Dec 2012, 12:17 PM
#1
paulmd avatar

paulmd

New Zenner

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

Post #1 by paulmd

Hi, Many years ago I had a Zen Cart website as an online brochure, and last month this was wiped out completely and I started afresh with a new 1.5.1 Zen Cart download that I've set up as a proper trading shop. It seemed to be working fine, and during testing I signed up as an outside customer and successfully purchased an item through Paypal. I then started some Google Adword advertising to attract real cusomers and noticed that the hit counter was rising, but no sales being made - possibly I thought because it was new / our pricing / or just not enough hits to get sales yet.

But I just visited the site for a general click around this morning and discovered that whenever I clicked on any action (such as put something in the cart, try and send a message from Contactus etc.) that it crashed with "Whoops! your session has expired ...". I rebooted, tried again from a fresh start, and still an instant crash on any action.

I searched through the forum and noticed this can be tied to cookies, where I have installed an add-on from civic / design75 (the top rated one on the modules forum), so I tried turning this off, and also removing the sessions directory (another tip I found), but the fault persisted. I then had a coffee, and came back to find the site was working again all by itself, so I reinstated the cookie control and it still works.

So I now have a huge doubt over the reliability of the shop - because obviously customers can't buy anything if they get instantly timed out - and I don't know how often or under what circumstances the fault arises.

Any ideas gratefully received!

22 Dec 2012, 2:00 PM
#2
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #2 by design75

Do you have a link to your site? I am almost certain it has nothing to do wit collie control, beacause it doesn't control the ZC id cookies, but the ones from google etc.

22 Dec 2012, 3:56 PM
#3
paulmd avatar

paulmd

New Zenner

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

Post #3 by paulmd

Design75:

Do you have a link to your site? I am almost certain it has nothing to do wit collie control, beacause it doesn't control the ZC id cookies, but the ones from google etc.

I may have discovered what's happening:

When I visit the shop via the Admin link (online catalog), or by its full address in a browser (http://www.tasklinedatalog.co.uk/shop2/index.php), it works OK, but when I visit it as a customer would via our main domain name (https://www.taskline.co.uk), it doesn't work, even though the redirection of the domain name is to the same full address.

Does that make sense?

22 Dec 2012, 6:12 PM
#5
paulmd avatar

paulmd

New Zenner

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

Post #5 by paulmd

Design75:

the problem could be related to the fact that your site runs inside a frameset

Ummm, that's not something I've knowingly done, but then there's a lot I don't know about web stuff! How would I change it to not be inside a frameset?

Doing more tests, I've found that if I attempt to Log In when connected as a customer would (ie. using taskline.co.uk), an invented username is correctly rejected with the red error message, but a valid username/password just goes back to the Home Page but still says Log In at the top. This seemed like a session problem, so I looked over the forum and ended up checking the cache folder settings. Mine were 755, but it seemed that 777 was recommended, so I changed to 777, but this made no difference to the signing in problem. I mention that in case it throws any more light on the issue.

22 Dec 2012, 9:44 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

even though the redirection of the domain name is to the same full address
If you are not using the base domain space why are you keeping ZenCart in a folder "/shop2"??

Move it to the root of your space

You are also running in an iframe

Zen-Venom Get Bitten

22 Dec 2012, 10:01 PM
#7
paulmd avatar

paulmd

New Zenner

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

Post #7 by paulmd

Kobra, I didn't realise being in a folder was significant ... I just organised my webspace the same as my hard disc, everything in its own sub-directory. Are you saying that if I move Zen Cart up a level, that the problem of visitors not being able to Log In and use the site will go away? Even though its a different domain name to the one they come in by?

I'm confused by your information that I'm running an iframe!

23 Dec 2012, 1:09 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #8 by kobra

Even though its a different domain name to the one they come in by?
Do not understand what you are stating here??

For the "Woops" message - scroll down and view the similar threads

Zen-Venom Get Bitten

23 Dec 2012, 9:11 AM
#9
paulmd avatar

paulmd

New Zenner

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

Post #9 by paulmd

Kobra, I've looked through all the threads about "Whoops", but none are relevant. In fact, as now discovered, the Whoops message was only a sympton, and the real issue seems to be that I have two domain names - a main one (taskline.co.uk) that customers know us by, and a second one (tasklinedatalog.co.uk) that we have set the shop up under. The first domain has webforwarding to the second one and links through fine. The problem is that when customers arrive at the shop via the webforwarding, the Zen Cart doesn't work properly. Users cannot Log In, and most actions (such as putting an item in the cart) result in the Whoops message. If I go to the shop directly (using tasklinedatalog.co.uk), it works fine.

I'm a novice user of the forum ... so should I start a new thread about webforwarding problems?

Thanks.

23 Dec 2012, 11:13 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #10 by kobra

I have two domain names - a main one (taskline.co.uk) that customers know us by, and a second one (tasklinedatalog.co.uk) that we have set the shop up under.
Why have it setup under another domain name??
The first domain has webforwarding to the second one and links through fine
What/how have you initiated this forwarding??

Zen-Venom Get Bitten

23 Dec 2012, 11:40 PM
#11
paulmd avatar

paulmd

New Zenner

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

Post #11 by paulmd

The first domain is historic and was supplied and hosted by a domain name provider who do not offer SQL, PHP etc. The second domain was for a separate project that req'd SQL, so it was purchased from a different hosting company that included those services. The two were combined some years ago by simple forwarding from one to the other, and has worked fine until now. Our present situation is that the first domain name is preferred and dominent, but the second domain has the SQL ability so was used to set up the Zen Cart. It was never foreseen that forwarding would become a problem.

The forwarding of the first domain to the second is handled by a simple box on the control panel of its ISP, where the address of the target is filled in.

24 Dec 2012, 11:18 AM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #12 by kobra

Move the primary domain to be hosted where you can run sql -php and ZenCart

Zen-Venom Get Bitten

24 Dec 2012, 11:30 AM
#13
paulmd avatar

paulmd

New Zenner

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

Post #13 by paulmd

I had feared that would be the suggestion! Because to move domains involves quite a lot of time, effort and cost, together with a considerable amount of downtime for the site - so I was hoping there would be some other workaround.

Interestingly, our first ZenCart (1.3) of many years ago (as mentioned in the opening question) worked OK with the same web forwarding, so presumably its been changes within ZenCart that stops it working now?

Also, earlier comments in this thread mentioned framesets as being a problem, and I've just discovered that the ISP looking after our primary domain has an option on the forwarding to use frames or not. So I've just changed that from using frames to not using frames ... so I'll soon see whether that makes any difference.

24 Dec 2012, 12:57 PM
#14
paulmd avatar

paulmd

New Zenner

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

Post #14 by paulmd

Update: switching to "no frames" on the forwarding seems to have worked! I will let it settle and do more tests, but on the face of it the problem is cured. Many thanks for everyone's help, and Happy Christmas too!

24 Dec 2012, 1:28 PM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #15 by kobra

Because to move domains involves quite a lot of time, effort and cost,
Should only take about 4 hours

Zen-Venom Get Bitten