Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Whoops! Sorry, but you are not allowed to perform the action requested. You are still

Whoops! Sorry, but you are not allowed to perform the action requested. You are still

Started by buildingblocks on 24 Mar 2011, 8:05 PM · Views: 5,151

Results 1 to 15 of 15
24 Mar 2011, 8:05 PM
#1
buildingblocks avatar

buildingblocks

Totally Zenned

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

Post #1 by buildingblocks

We are getting this message when trying to checkout

Whoops! Sorry, but you are not allowed to perform the action requested.
You are still logged in to your account and may continue shopping. Please choose a destination from a menu.

fast and easy checkout is installed
stock with attributes is installed
zencart 1.3.9a

When putting an item in the basket then trying to cowoa, after filling in the customer information, we get the above error message.

We turned off FEC but when trying to checkout the same thing is happening.

If I create a new account and am logged, I add an item to the cart and can finish checkout.

If I'm not logged and I add an item to the cart then go to log into my account I get the above error message.

Please, any ideas?

There are no error logs being generated.

I have been looking through similar threads all afternoon and haven't found a solution.

24 Mar 2011, 9:25 PM
#2
buildingblocks avatar

buildingblocks

Totally Zenned

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

Post #2 by buildingblocks

panic over for now. There was more than one person adjusting settings. All seems good now. fingers crossed.

27 Mar 2011, 8:41 PM
#3
trees2wood avatar

trees2wood

Zen Follower

Join Date:
Mar 2009
Posts:
114
Plugin Contributions:
0

Post #3 by trees2wood

Do you remember what you changed to fix it ?

I am getting the same " Whoops! Sorry, but you are not allowed to perform the action requested. " error message. If I log in and then add items in the cart it works right but if if I am already a customer and dont try to log in until after item has been added to cart I get this message ?? What am I missing ?

All of my wood is cut from recycled trees

28 Mar 2011, 4:10 AM
#4
trees2wood avatar

trees2wood

Zen Follower

Join Date:
Mar 2009
Posts:
114
Plugin Contributions:
0

Post #4 by trees2wood

First thing is I wonder why my search is not working right ? I have been noticing this the last few days. I put " Whoops! Sorry, but you are not allowed to perform the action requested ." in the search box and it said there was no matches ?? thats not true, am I the only one that gets no results when searching this statment ?

Now for those searching for a solution about the whoops thing , after I was here I found another thread where DrByte gives this list of possible reasons.
/includes/classes/shopping_cart.php

  • /includes/modules/pages/checkout_confirmation/header_php.php

  • /includes/modules/pages/checkout_payment/header_php.php

  • /includes/modules/pages/checkout_shipping/header_php.php

  • /includes/modules/pages/shopping_cart/header_php.php

  • /ipn_main_handler.php

    changing those didnt fix it for me , but I found it - includes/modules/pages/login/header.php.php

All of my wood is cut from recycled trees

12 Apr 2011, 1:38 PM
#5
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

Post #5 by derek_bryant

my includes/modules/pages/login/header.php.php is dated 14/07/2008, I'm running 1.3.8a and have installed the latest version of stock by attributes (one file modified by athena)

I'm experiencing the same problem 'Whoops! Sorry, but you are not allowed to perform the action requested'
Do I update this file with the latest version available from Zen Cart?

thanks

Derek

12 Apr 2011, 6:55 PM
#6
dinahk avatar

dinahk

New Zenner

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

Post #6 by dinahk

buildingblocks:

panic over for now. There was more than one person adjusting settings. All seems good now. fingers crossed.

How did you fix it? I got the same problem with client site.:dontgetit

I have zencart version v1.3.9e.

When user's log in, registered, added items to the shopping cart then log out without checkout or closing the browser. Once users go back to the site maybe after few mins or hours then log-in their data, clicked check out they received this error ":oops: Whoops! Sorry, but you are not allowed to perform the action requested "

Can anybody help me to fix this issues? and does any one know if that possible to empty or automatic reset to ZERO the shopping cart if ever this user/customer log out or close the browser without proceeding to check out?

I appreciated your response and solution to this matter. Thanks!

12 Apr 2011, 7:14 PM
#7
trees2wood avatar

trees2wood

Zen Follower

Join Date:
Mar 2009
Posts:
114
Plugin Contributions:
0

Post #7 by trees2wood

The way I found the fix was... I tried changing all the files listed by DrByte above and it was still happening, so because his advice was pointing to the includes folder I (having a good backup) deleted the includes folder then uploaded a fresh new one . The whoops went away.

Then I went to my backup files and doing a couple at a time (writing down as I went) uploaded them back to my site. For every couple files I changed I would go back to the store and test. I was able to trace the one bad file I had that was causing the whoops..................

SO...........................

I would first try changing these files -
/includes/classes/shopping_cart.php

  • /includes/modules/pages/checkout_confirmation/header_php.php
  • /includes/modules/pages/checkout_payment/header_php.php
  • /includes/modules/pages/checkout_shipping/header_php.php
  • /includes/modules/pages/shopping_cart/header_php.php
  • /ipn_main_handler.php

and includes/modules/pages/login/header.php.php

if none of those fix the problem you can try starting with the includes folder.

All of my wood is cut from recycled trees

12 Apr 2011, 7:23 PM
#8
trees2wood avatar

trees2wood

Zen Follower

Join Date:
Mar 2009
Posts:
114
Plugin Contributions:
0

Post #8 by trees2wood

Derek Bryant:

I'm running 1.3.8a
Do I update this file with the latest version available from Zen Cart?

thanks

Derek

I would update to the newest version anyway. I have read on here about stores getting hacked with that version. I dont think that version is supported anymore ?

All of my wood is cut from recycled trees

12 Apr 2011, 7:26 PM
#9
dinahk avatar

dinahk

New Zenner

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

Post #9 by dinahk

Trees2wood:

The way I found the fix was... I tried changing all the files listed by DrByte above and it was still happening, so because his advice was pointing to the includes folder I (having a good backup) deleted the includes folder then uploaded a fresh new one . The whoops went away.

Then I went to my backup files and doing a couple at a time (writing down as I went) uploaded them back to my site. For every couple files I changed I would go back to the store and test. I was able to trace the one bad file I had that was causing the whoops..................

SO...........................

I would first try changing these files -
/includes/classes/shopping_cart.php

  • /includes/modules/pages/checkout_confirmation/header_php.php
  • /includes/modules/pages/checkout_payment/header_php.php
  • /includes/modules/pages/checkout_shipping/header_php.php
  • /includes/modules/pages/shopping_cart/header_php.php
  • /ipn_main_handler.php

and includes/modules/pages/login/header.php.php

if none of those fix the problem you can try starting with the includes folder.

Do you mean override?

12 Apr 2011, 7:39 PM
#10
trees2wood avatar

trees2wood

Zen Follower

Join Date:
Mar 2009
Posts:
114
Plugin Contributions:
0

Post #10 by trees2wood

The way I found the fix was... I tried changing all the files listed by DrByte above and it was still happening, so because his advice was pointing to the includes folder I (having a good backup) deleted the includes folder then uploaded a fresh new one This came from a fresh download of my version of zencart

. The whoops went away.

Then I went to my backup files and doing a couple at a time (writing down as I went) uploaded them back to my site Yes these will overwrite the current ones
. For every couple files I changed I would go back to the store and test. I was able to trace the one bad file I had that was causing the whoops..................

Now sooner or later the whoops will come back and when it does there is the file thats broke. replace that file with the same file from a fresh download of your version.

All of my wood is cut from recycled trees

16 Apr 2011, 6:49 PM
#11
derek_bryant avatar

derek_bryant

Zen Follower

Join Date:
Jul 2008
Location:
Bristol UK
Posts:
162
Plugin Contributions:
0

Post #11 by derek_bryant

Update - I've uninstalled the stock by attributes module and the "Whoops etc." has disappeared

18 May 2011, 9:21 PM
#12
daffy avatar

daffy

Zen Follower

Join Date:
Jul 2008
Posts:
114
Plugin Contributions:
0

Post #12 by daffy

Wow, Trees2Wood, that's really a patient process you went through to narrow down the problem. Thank you for that!!

18 May 2011, 9:30 PM
#13
daffy avatar

daffy

Zen Follower

Join Date:
Jul 2008
Posts:
114
Plugin Contributions:
0

Post #13 by daffy

Do you suppose this is a bug since it's happening a lot? When I did a search for "Time Out" I saw notes about this in the forums quite often in the past few months , all of it related to checkout issues.

It started happening on my site out of the blue. I even wonder if I got hacked but I can't find any real reason to think so.

8 Jul 2011, 3:45 AM
#14
flamer avatar

flamer

New Zenner

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

Post #14 by flamer

Hi Im sure this issue has been solved, but for others still with the same problem I can offer some advise that stumped me for a while.

For me, when my user left the checkout to go t the 3-rd party website to make payment, often upon returning to my site I would get the "whoops" timeout error. now the user had paid successfully but the order was never recorded in ZC and therefore difficult to track the order.

I tracked it down to work correctly in firefox, but not in IE.

The issue was having or not having the "www" in the site name, by default any visitor to my site would get the www stripped, no issue with that. But I have set my payment module with the return URl of www.mysite which I believe caused issues because the sessions are tracked by cookies, it appeared the issue was, the cookie was being blocked by being read from the www.mysite since it was originally set without the www.

obvisouly the cookie security is set per browser, and FF and IE handle this differently.

If you need to, you can add code into your htaccess file to always add or always remove the www to ensure this issue won't come up.

Hope this can help someone.

Flamer.

5 Nov 2012, 8:52 PM
#15
signereign avatar

signereign

New Zenner

Join Date:
Nov 2012
Posts:
1
Plugin Contributions:
0

Post #15 by signereign

Hi, I know this thread is a little dated but I recently installed Stock by Attributes v1.4.14 on a Zencart v1.3.8a and this issue came up. I tried the suggested methods but they didn't work on my project, so I tried my best to find another solution and so far this has worked:

/ NOTE: MAKE A BACKUP OF THE FILES YOU EDIT! /

  1. navigate and open file: /includes/classes/shopping_cart.php
  2. backup this file
  3. lookup function restore_contents(), at the end of this method add these:
    // this is an experimental fix for stock by attributes issue:
    // (1) time out issue after adding items then logging in
    if (is_array($this->contents) && count($this->contents) > 0) {
        // assign a temporary unique ID to the order contents to prevent hack attempts during the checkout procedure
        $this->cartID = $this->generate_cart_id();
    }

right before:

    $this->notify('NOTIFIER_CART_RESTORE_CONTENTS_END');
    $this->cleanup();

I hope this helps somebody.

Signe