r/cs50•
Timmythetiny

pset7 phpMyAdmin token mismatch errors

I have had no luck getting phpMyAdmin to work. Every time I try to use it, any button I click in the UI pops up the message "Error: token mismatch." I've followed every troubleshooting thread I could find to little avail, including deleting my entire workspace, starting from fresh, and reuploading all my pset files. No dice. Any thoughts? Thanks in advance!

Posted Aug 1, 2016, 3:29 AM UTC

13
delipitystaff•

Delete your cookies for the c9 site (if you're using Chrome developer tools, you can see the specific cookies and right-click to delete them.) Then reload the phpmyadmin page and it should work.

1
TimmythetinyOP•

Thanks! I'll give it a go and let you know how it works.

Edit: Success indeed. Going through the Chrome advanced settings to clear the cookies from c9 did not work at all, but doing it through the dev tools worked. Many thanks!

1
clomasss•

The phpmyadmin worked the other day now I cannot get it to work despite trying that. I've also had to revert back to cs50 IDE version 57 to get it to work in the first place.

1
Stevelar•

Hi Delipity. I am really struggling with this. I did delete the cookie within Chrome Developer tools and it did work. I have taken a break from CS50 and now back to complete pset7, but I get the Token Mismatch error again, but this time when I go into Chrome's developer tools I cannot even see any cookies. I deleted the cookies for the ide site in Chrome's settings but that did not work. Do you have any ideas? Thank you in advance

1
delipitystaff•

Let's ask u/kzidane as he's the IDE guy these days. Kareem?

2
kzidane•

Hi Stevelar,

If you go to CS50 IDE > phpMyAdmin, then click anything, you're expected to get "Token Mismatch" (this is a known bug that we've fixed and should be deployed shortly).

In the meantime, while inside phpMyAdmin, if you click inside Chrome's omnibox (where you type a URL) and hit Enter, on your keyboard, then proceed to use phpMyAdmin, you shouldn't be getting the error?

2
Stevelar•

Thank you! That is very helpful. Cheers

1
Stevelar•

Actually never mind. It is working now. I had opened the Developer Tools from the phpmyadmin site before. But if I open it from the main ide.cs50.io page the cookies did show up which I deleted and it now works.

1