Cookies must be enabled to purchase online

Open to all! Ask other shopowners for help.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Cookies must be enabled to purchase online

Post by cwh2000 »

Hi all,

Customers cannot login or checkout as cookie_usage.php page is being loaded. I checked on different web browsers Firefox and Chrome to make sure the cookie settings are correct. I also checked the Session settings in the admin and force cookies is disabled. Have CE Phoenix v1.0.9.5 - Any idea how to resolve this?

Thanks,
Craig
You do not have the required permissions to view the files attached to this post.
Last edited by cwh2000 on Wed Aug 20, 2025 6:22 pm, edited 1 time in total.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Cookies must be enabled to purchase online

Post by burt »

I am not here to build for you.
I am here to build with you. Let's help each other.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

Attached is a screenshot of the session area in admin.
You do not have the required permissions to view the files attached to this post.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Cookies must be enabled to purchase online

Post by raiwa »

Try with recreate session set to “false” and /or with force cookie use to “true”
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

I just tried the Recreate Session to false and Force Cookie Use to true. The same behavior occurs with cookie message.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

In the Cache directory includes/work there was a .htaccess file with the following lines in it.

<Files *>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

<IfModule !mod_authz_core.c>
Order Deny,Allow
Deny from all
</IfModule>
</Files>

I deleted that file from the directory and the login and checkout process appears to be working properly now.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

It was working with the Firefox browser, but now its back to that same cookie message for both Chrome and Firefox browsers. I rechecked that cache directory but there are no files there.
azpro
Contributor
Posts: 177
Joined: Fri Nov 06, 2020 8:25 am
Phoenix Version: v1.1.0.6
Has thanked: 30 times
Been thanked: 34 times

Re: Cookies must be enabled to purchase online

Post by azpro »

Customers cannot login or checkout as cookie_usage.php page is being loaded.
So - it was working before? Did you get feedback from customers lately about the cookie message?

The .htaccess you changed/deleted in includes/work does not affect anything as far as I know ..

Just thinking out loud:

- Ask a friend or family member what they experience on their pc/device. Maybe it's something in your own pc / device.

- Did your hosting provider do an (php) update?

- Did you make a change on your server? File uploaded to wrong directory?

Especially if checkout etc. worked before - there must be a perfectly logical reason why it stopped working.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

It worked before and then several customers stated they couldn't buy on the site.

This problem occurs on every device and several different web browsers.

The php version is the same

Not aware of any changes on the server, but I will open a ticket to verify.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Cookies must be enabled to purchase online

Post by ecartz »

cwh2000 wrote: Wed Aug 20, 2025 6:38 pm I deleted that file from the directory
I'd delete the whole directory if you delete that file. The file is meant to protect the directory, which got special permissions at one point.

Another place you can look for cookie related settings is in your includes/configure.php file. You could post your COOKIE_OPTIONS. These are public values, so safe to post.

A third place is in the PHP configuration.

The only places I see that redirect to the cookie_usage page are login (if the test cookie fails) or when doing an action, if the session isn't started.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply