cancel
Showing results for 
Search instead for 
Did you mean: 

Error in checkout page while trying to order as a guest

Error in checkout page while trying to order as a guest

Hello,

 

I am getting an error while trying to order as a guest in magento2.2.

 

"Forbidden

You don't have permission to access /checkout/cart/add/uenc/aHR0cHM6Ly9wYXJhbWFuYW5kYXl1cnZlZGEuY29tLw,,/product/42/ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

 

error.png

 

I run following command to solve this problem

 

php bin/magento indexer:reindex

php bin/magento cache:clean

php bin/magento setup:upgrade

php bin/magento setup:di:compile

 

But not able to find the solution for the issues.

 

Please help me to solve this problem.

 

1 REPLY

Re: Error in checkout page while trying to order as a guest

Hi @himanshi_gupta,

 

Are you using Apache?

Have you the rewrite module enable? (I guess the answer will be yes)

Can you check if file permissions are correct?

Is the .htaccess file located at your store root path?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"