forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: 915855 on February 12, 2016, 04:08:42 am

Title: Warning your browser does not accept script's cookies
Post by: 915855 on February 12, 2016, 04:08:42 am
I already searched this forum for this error but all of the posts for this problem do not give enough detail to help me solve this problem. Can someone please give me detailed information on how to fix this error. Thank you.
Title: Re: Warning your browser does not accept script's cookies
Post by: phill104 on February 12, 2016, 11:31:59 am
It is simply a case of setting your browsers security level so it accepts cookies. Surely you see the same issue with other sites?
Title: Re: Re: Warning your browser does not accept script's cookies
Post by: 915855 on February 12, 2016, 02:13:53 pm
It is simply a case of setting your browsers security level so it accepts cookies. Surely you see the same issue with other sites?
I already changed the security level of my browsers and allowed my site to accept cookies but it did not work. I also tried logging in with 3 different computers and had the same problem. My research found that it has to do with my sites cookies but they did not give enough detail for me to fix the problem. If someone already went through this problem, can you please help me. My sites address is http://www.funny-silly.com  Thank you.
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 12, 2016, 07:15:48 pm
Two things to check:

Make sure that the time on your server is set correctly.

Make sure that CPG is configured with a valid cookie_name (default would be cpg15x).
Title: Re: Re: Warning your browser does not accept script's cookies
Post by: 915855 on February 12, 2016, 11:18:15 pm
Two things to check:

Make sure that the time on your server is set correctly.

Make sure that CPG is configured with a valid cookie_name (default would be cpg15x).

I already submitted a support ticket with my server to see if the time is off. In the meantime, can you please tell me how I can check to see if I have a valid cookie_name. I already tried finding the cookie_name on myphpadmin but I could not find it. Attached is a picture of myphpadmin. Can you please tell where it is located at? Thank you







Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 12, 2016, 11:57:27 pm
Attached is a picture of myphpadmin.
That is not a Coppermine Photo Gallery database.
Title: Re: Re: Warning your browser does not accept script's cookies
Post by: 915855 on February 13, 2016, 12:23:40 am
That is not a Coppermine Photo Gallery database.
Yes, you are right, thanks for letting me know. I am attaching another picture of myphpadmin, can someone please tell me where the cookie file is stored. Thank you.
Title: Re: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 13, 2016, 12:33:13 am
can someone please tell me where the cookie file is stored.
The cookie_name value is stored in the config table.
Title: Re: Re: Re: Warning your browser does not accept script's cookies
Post by: 915855 on February 13, 2016, 12:40:30 am
The cookie_name value is stored in the config table.
The cookie name is cpg15x , do I have to change anything? Thank you for your help.
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 13, 2016, 01:00:13 am
The cookie name is cpg15x , do I have to change anything?
Nothing you should need to change.  My guess is that there might be an issue with your server time setting.
Title: Re: Re: Warning your browser does not accept script's cookies
Post by: 915855 on February 13, 2016, 01:08:58 am
Nothing you should need to change.  My guess is that there might be an issue with your server time setting.

Thank you so much for your help.
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 13, 2016, 02:19:58 pm
I did a little more investigation of your cookie problem. I've determined that your server time is set okay. Your problem is caused by your cookie_path being set to /ricsil/ ( it should be just a single / ).
You can change it by using the method we went through above to get to the cookie_name.
Title: Re: Re: Warning your browser does not accept script's cookies
Post by: 915855 on February 13, 2016, 02:45:17 pm
I did a little more investigation of your cookie problem. I've determined that your server time is set okay. Your problem is caused by your cookie_path being set to /ricsil/ ( it should be just a single / ).
You can change it by using the method we went through above to get to the cookie_name.
It worked but I had to take out both slashes / from the cookie_path . Thank you so much for taking the time and helping me.
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 13, 2016, 04:03:51 pm
It worked but I had to take out both slashes / from the cookie_path .
It still fails on some browsers. You need to remove 'ricsil' and make it just '/'.
Title: Re: Re: Warning your browser does not accept script's cookies
Post by: 915855 on February 14, 2016, 04:41:30 pm
It still fails on some browsers. You need to remove 'ricsil' and make it just '/'.
I made the changes, I sincerely appreciate it that you took your time to help me. Thanks for everything.
Title: Re: Warning your browser does not accept script's cookies
Post by: czarekd85 on February 19, 2016, 12:32:35 pm
Hello,

I have the same situation. My browser Edge, but Firefox also (only on my CPG site) says: Warning your browser does not accept script's cookies. I can't login on any account. Last week I made update from cpg 14x to 15x. My cookie_name was cpg143, but I changed to cpg15x, my cookie_path is /. I don't know what can I do else to solve this problem?

My page adress: www.gpa.mazowsze.pl

Czarek
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 19, 2016, 02:01:16 pm
Did you run http://www.gpa.mazowsze.pl/update.php ?
Title: Re: Warning your browser does not accept script's cookies
Post by: czarekd85 on February 19, 2016, 02:05:28 pm
Yes, and there was no warnings / errors.
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 19, 2016, 02:37:56 pm
It appears that you are using the cookie_consent plugin. Did you update the plugin to a CPG 1.5 version?
https://sourceforge.net/p/coppermine/code/HEAD/tree/branches/cpg1.5.x/plugins/cookie_consent
Title: Re: Warning your browser does not accept script's cookies
Post by: czarekd85 on February 19, 2016, 02:45:19 pm
Yes, I've installed cookie_consent plugin: cpg1.5.x_plugin_cookie_consent_v1.0. Should I do anything else? In version 14x I didn't have this plugin.
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 19, 2016, 02:53:15 pm
Try running without the cookie_consent plugin to see if that is the source of the problem.
Title: Re: Warning your browser does not accept script's cookies
Post by: Αndré on February 19, 2016, 02:53:29 pm
You need to accept the Coppermine cookies before you try to login.
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 19, 2016, 02:56:07 pm
You need to accept the Coppermine cookies before you try to login.
Doesn't appear to be functioning, André.
Title: Re: Warning your browser does not accept script's cookies
Post by: ron4mac on February 19, 2016, 03:34:55 pm
I changed to cpg15x, my cookie_path is /.

Make sure that the cookie path is just a single / with no spaces on either side of it.
( same with cookie name - no leading or trailing spaces )
Title: Re: Warning your browser does not accept script's cookies
Post by: czarekd85 on February 19, 2016, 05:19:39 pm
Thanks for replies.
1. Accepting cookies doesn't solve the problem
2. For 100% I don't have any spaces in cookie_name and cookie_path - I've checked it in database
3. I can turn off this plugin by changing 1 to 0 in cookies_need_consent (in cpg_config table) and then cookie warning in my browser dissapears and I can login normally.