Topic on Project:Support desk

Further issues with: "wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again."

7
90.216.199.123 (talkcontribs)

This issue was marked as resolved in this post. But it is still a problem for me so i thought i would start a new thread about it.

The issue cropped up a few weeks after i installed mediawiki so i decided to reinstall the whole thing including databases as i had not started using it yet.

This time i dont want to do that as i have been using it and i want to know how to stop this from occuring again.

For both times it broke, I believe the error first appeared when i tried to access the site from my phone. Could be coincidence but worth mentioning.

Two other notes of interest:

  1. Both times i was logged in on another computer. I have still not logged out as im afraid i cant get back in again, although i ahve tried a different login name to no avail.
  2. When i log in repeatedly on my mac i get a blank page now although before it would give me the warning. Nothing seems to ahve changed and other computers still give me the warning.

I have tried creating a tmp folder in the wiki folder, public_html and root, giving them all 777 permision. I also made sure all my tmp folders are empty and putting

session_save_path("tmp");

at the end of my LocalSettings.php as suggested by these sites: http://stackoverflow.com/questions/16127882/how-can-i-fix-the-mediawiki-error-wiki-uses-cookies-to-log-in-users-you-have-c http://stackoverflow.com/questions/1148583/problem-with-mediawiki-cookies

The last site suggested ensuring the Internet Guest Account has correct permsisions which im unsure of so this is the only step i have not taken but i cannot see why that would randomly change itself.

  • Wiki version: 1.21.2
  • PHP 5.4 (FastCGI)
  • MySQL:
  • Server: Bluehost

I tried to get the debug log working and succeeded only in chaning my wiki login page to plain text somehow. Even after commenting out the debug log and delting the text file i wanted it to save to this remains...

I am clueless about all this so if there is any other details required for diagnosis, please let me know.

Thanks in advance for any help i get with this.

90.219.35.251 (talkcontribs)

Hmm, i guess noone has ideas on how to resolve this issue. What about ideas to further investigate it? Im getting quite desperate to have this working again but im at then end of my admittedly limited knowledge of how to find potetntial issues. Any suggested avenues to explore would be very welcome!

MarkAHershberger (talkcontribs)

I missed your question before. Sorry for the late reply.

You say you're seeing a blank page when you log in repeatedly. There are probably some errors that you're missing at this point. What happens if you add:

error_reporting( -1 );
ini_set( 'display_errors', 1 );

right after the <?php line in your LocalSettings.php file? Do you see anything besides the blank screen?

Also you should use

session_save_path("$IP/tmp");

in your LocalSettings.php instead of just "tmp". But that should be changed as soon as you resolve this problem since it will make your wiki easy to hack into.

94.13.40.143 (talkcontribs)

Hi thanks for the reply and sorry for not getting back to you. I got pretty frustrated with it and made a point of leaving it for awhile! The blank page only happened on my macs Firefox browser (but not on Windows Firefox browser). It happenend after spamming the login button but this no longer works. I think it's probably unrelated anyway. I put in the code for error catching so if it does work eventualy il post back here. Further ideas for helping me inverstigate or solve my issues are still most welcome! Not nearly as important but any notes on restoring the page back to normal from the plain text look would be great too! Thanks in advance, Douglas

MarkAHershberger (talkcontribs)

I don't understand what you mean by this bit:

any notes on restoring the page back to normal from the plain text look would be great

Could you describe the problem you're having with "plain text"?

94.13.40.143 (talkcontribs)

That is a minor issue and unrelated im sure. Shouldn't have gone of topic, i can fix that later. (FYI: i mean its like a plain html file). I noticed the following 2 errors after your advice with enabling error logs: Warning: Cannot modify header information - headers already sent by (output started at /home7/USERNAME/public_html/WIKI/includes/specials/SpecialUserlogin.php:1391) in /home7/USERNAME/public_html/WIKI/includes/WebResponse.php on line 38

Warning: include(): Failed opening '/home7/USERNAME/public_html/WIKI/resources/Resources.php' for inclusion (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home7/USERNAME/public_html/WIKI/includes/resourceloader/ResourceLoader.php on line 204 Note: I wrote in caps the key words that i worried might not be good to post online for the world to see. I have not checked these errors out myself yet with my own google-foo but i will tomorrow if i get time and post back here with any findings.

Thanks a lot for taking the time to help me Mark.

94.13.40.143 (talkcontribs)

After more than a month i ahd the same result as this user: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Wiki_uses_cookies_to_log_in_users._You_have_cookies_disabled._Please_enable_them_and_try_again._Please_help_:%28#x.5BRESOLVED.5D_Wiki_uses_cookies_to_log_in_users._You_have_cookies_disabled._Please_enable_them_and_try_again._Please_help_:.28_33415

I went to show the issue to a PHP developer and it was working! Not exactly a solution to wait for weeks until it fixes itself but thats me sorted until it happens again... The plain html issue fixed itself as well. Thanks for your help Mark. Much appreciated.

Reply to "Further issues with: "wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.""