Hello, I installed your software. I am using the latest version of Firefox and Windows 8. After I log in with admin_commish password. I get this error:
You're Logged In!
You've been successfully authenticated. Unfortunately, your browser stopped the forward that was attempted.
Good news: You can click here to be taken there right now.
When I click "here" it gives me this error:
Access Restricted
In order to access this portion of the site, you must be the commissioner. Click here to go to the login page.
It just keeps looping these pages. For some reason its not passing the login token between pages. I tried using IE 8 and 9. They all do the same thing. Please help. Draft is in a few days.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, so a couple of things - I'm looking into this now, but just to cover the bases...
I'm assuming your browser(s) are allowing cookies to be used? PHPDraft utilizes PHP sessions which can only be used if browser cookies are enabled.
What type of host are you using?
This is odd - "Access restricted" is not a message from PHPDraft (I did a text search on the project and did not find any references) so I'm afraid it might be an install issue with your hosting - but I will continue to investigate on my end.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whoop, text search fail. The authentication piece of the site actually titles the page as such (I turned case-sensitive search OFF and everything, and Netbeans still lied to me).
So, since this is straight from PHPDraft, this is a good thing - but at the moment the only thing I can think it would be is that your browser(s) are not allowing cookies.
One thing that may be breaking here is that I know certain router software (such as DD-WRT for example) allow you to disallow cookie packets - once I mistakenly turned this on then never understood why I wasn't able to log in to Yahoo Fantasy Sports - here the dumb-dumb I was, I told the router to stop all cookies. I was providing proper credentials to Yahoo, their server was handing me auth cookies and forwarding me on to pages - and I was having a similar situation to yours... I kept getting bounced back to the login page.
I'll try a fresh install on my local machine to see if I get the same thing at all. Please let me know if you're able to look into these settings on the router (since you've tried multiple browsers I doubt its a setting in a browser).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Additionally, if you're browser is properly accepting cookies, take a look at whatever browser you're looking and see if there's a cookie with this key: "PHPSESSID" available.
In Firefox, you can view your cookies by going to Options -> Privacy -> Remove individual cookies, then in that dialog filter on whatever site you're at (so if you're on shared hosting, myphpdraft.sharedhost.com, type "sharedhost.com" or "myphpdraft" and see what cookies come up. If there aren't any - that's your issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm I am using a linksys EA3500. I have never had any issues in the past with this blocking cookies. I am going to try to access it at work and see if its my pc or home internet. If that doesn't work then I would say its possible its my host. I will install phpserver on my home server tonight and try it that route. Thank you for all of your responses. I will update after I try these other options.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get the same issue on my work pc and network. I looked for the PHPSESSID cookie and it is not there on any of my browsers. I wonder if my host is blocking it. I use WebHostingPad for my host. Not sure if you have any experience with them but they're a pretty big discount host. I wouldn't be surprised if they're not allowing certain types of cookies for security reasons. I run a forum and blog that requires authentication and that works fine. So not sure how much water that holds either. I'll try this on a local server when I get the chance and see if that resolves it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you tell what version of PHP your host is using?
This is odd - since that cookie doesn't exist, something somewhere along the way is preventing it from being accepted - but it has to be specific to the account PHPDraft is hosted on. You have other apps on that host that use authentication, and they must be using cookies somehow. Very odd.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Additionally, it would be interesting to know the result if you ran the file below on your host (checks to make sure PHP can create cookies in your browser):
From one of the comments on that page: while you're at it, create a PHP file in the PHPDraft folder and put "<?php phpinfo(); ?>" in it, and report back what the "session" section holds.
HA!!! my php version was on native on my host. I changed it to 5.5 and its working now. Thank you for all of the replies and help on this. I really appreciate the quick responses. I hope to impress the goons in my league with your software for my draft this weekend. Thanks for providing this software.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I installed your software. I am using the latest version of Firefox and Windows 8. After I log in with admin_commish password. I get this error:
You're Logged In!
You've been successfully authenticated. Unfortunately, your browser stopped the forward that was attempted.
Good news: You can click here to be taken there right now.
When I click "here" it gives me this error:
Access Restricted
In order to access this portion of the site, you must be the commissioner. Click here to go to the login page.
It just keeps looping these pages. For some reason its not passing the login token between pages. I tried using IE 8 and 9. They all do the same thing. Please help. Draft is in a few days.
Ok, so a couple of things - I'm looking into this now, but just to cover the bases...
I'm assuming your browser(s) are allowing cookies to be used? PHPDraft utilizes PHP sessions which can only be used if browser cookies are enabled.
What type of host are you using?
This is odd - "Access restricted" is not a message from PHPDraft (I did a text search on the project and did not find any references) so I'm afraid it might be an install issue with your hosting - but I will continue to investigate on my end.
Whoop, text search fail. The authentication piece of the site actually titles the page as such (I turned case-sensitive search OFF and everything, and Netbeans still lied to me).
So, since this is straight from PHPDraft, this is a good thing - but at the moment the only thing I can think it would be is that your browser(s) are not allowing cookies.
One thing that may be breaking here is that I know certain router software (such as DD-WRT for example) allow you to disallow cookie packets - once I mistakenly turned this on then never understood why I wasn't able to log in to Yahoo Fantasy Sports - here the dumb-dumb I was, I told the router to stop all cookies. I was providing proper credentials to Yahoo, their server was handing me auth cookies and forwarding me on to pages - and I was having a similar situation to yours... I kept getting bounced back to the login page.
I'll try a fresh install on my local machine to see if I get the same thing at all. Please let me know if you're able to look into these settings on the router (since you've tried multiple browsers I doubt its a setting in a browser).
Additionally, if you're browser is properly accepting cookies, take a look at whatever browser you're looking and see if there's a cookie with this key: "PHPSESSID" available.
In Firefox, you can view your cookies by going to Options -> Privacy -> Remove individual cookies, then in that dialog filter on whatever site you're at (so if you're on shared hosting, myphpdraft.sharedhost.com, type "sharedhost.com" or "myphpdraft" and see what cookies come up. If there aren't any - that's your issue.
Hmm I am using a linksys EA3500. I have never had any issues in the past with this blocking cookies. I am going to try to access it at work and see if its my pc or home internet. If that doesn't work then I would say its possible its my host. I will install phpserver on my home server tonight and try it that route. Thank you for all of your responses. I will update after I try these other options.
I get the same issue on my work pc and network. I looked for the PHPSESSID cookie and it is not there on any of my browsers. I wonder if my host is blocking it. I use WebHostingPad for my host. Not sure if you have any experience with them but they're a pretty big discount host. I wouldn't be surprised if they're not allowing certain types of cookies for security reasons. I run a forum and blog that requires authentication and that works fine. So not sure how much water that holds either. I'll try this on a local server when I get the chance and see if that resolves it.
Can you tell what version of PHP your host is using?
This is odd - since that cookie doesn't exist, something somewhere along the way is preventing it from being accepted - but it has to be specific to the account PHPDraft is hosted on. You have other apps on that host that use authentication, and they must be using cookies somehow. Very odd.
Additionally, it would be interesting to know the result if you ran the file below on your host (checks to make sure PHP can create cookies in your browser):
http://nik.chankov.net/2010/01/16/detecting-if-the-cookies-are-enabled-with-php/
Additionally, there may be a setting for PHP-only (if your other apps are not PHP, this may explain why they still work) that breaks PHP sessions:
http://stackoverflow.com/questions/155920/php-session-data-not-being-saved
From one of the comments on that page: while you're at it, create a PHP file in the PHPDraft folder and put "<?php phpinfo(); ?>" in it, and report back what the "session" section holds.
Here's a view of what my local Apache installation reports (I think it uses PHP 5.5 but yours should be roughly similar):
https://s3.amazonaws.com/uploads.hipchat.com/14419/52223/s9j2sittycfpzsf/php_info.png
HA!!! my php version was on native on my host. I changed it to 5.5 and its working now. Thank you for all of the replies and help on this. I really appreciate the quick responses. I hope to impress the goons in my league with your software for my draft this weekend. Thanks for providing this software.