asterisk2billing.org
http://forum.asterisk2billing.org/

Sorry, you don't have access to this page !
http://forum.asterisk2billing.org/viewtopic.php?f=22&t=6417
Page 1 of 1

Author:  RFantry [ Tue Oct 20, 2009 3:24 am ]
Post subject:  Sorry, you don't have access to this page !

I searched the forum and every fix about this error has not worked. It only happens on the customer ui but every customer can login fine. The customer can go to the "buy now" button down at the bottom of the page and once they click that it goes to checkout_payment.php which always loads fine but once they click the "continue" button to go to checkout_confirmation.php it says "Sorry, you don't have access to this page !". The odd thing is if I go to log back in from the link and that error page and login it usually works the next time around and I can get to paypal and pay, if I don't use that link then it will always give me that error. I checked the PHP error log and no errors occurred, I have checked my permission on my session folder and they are 777 and owned by asterisk. All of the files i listed above are also owned by asterisk so I dont think its a permissions issue. I have tested this on firefox, IE7 and 8, and google chrome so its not a browser issue. I really don't know what else it could be. Any help would be greatly appreciated!

Thanks!

Author:  jroper [ Tue Oct 20, 2009 8:52 am ]
Post subject:  Re: Sorry, you don't have access to this page !

Hi

Can you check the ownership of the php session variable.

e.g. if CentOS based, then the command would be chown -R asterisk:asterisk /var/lib/php/session/

Joe

Author:  RFantry [ Tue Oct 20, 2009 12:50 pm ]
Post subject:  Re: Sorry, you don't have access to this page !

Did what you said and still not working.

Here is a ls -l on the folder...
drwxrwxrwx 2 asterisk asterisk 4096 Oct 20 08:38 session

Author:  jroper [ Tue Oct 20, 2009 12:54 pm ]
Post subject:  Re: Sorry, you don't have access to this page !

Hi

What is the complete URL of checkout_confirmation.php when you click it.

Joe

Author:  RFantry [ Tue Oct 20, 2009 1:01 pm ]
Post subject:  Re: Sorry, you don't have access to this page !

It is https://www.mydomain.com/a2billing/cust ... mation.php

Just thought of something... The page before is http, could it be losing the session when transfering to https?

Author:  jroper [ Tue Oct 20, 2009 1:19 pm ]
Post subject:  Re: Sorry, you don't have access to this page !

That's possible, change to http in the system settings

Author:  RFantry [ Tue Oct 20, 2009 10:50 pm ]
Post subject:  Re: Sorry, you don't have access to this page !

Didnt change anything... one thing I find weird is when it fails and I click on the link to login again it brings me to https://www.mydomain.com//a2billing/customer/ instead of 1 slash like this https://www.mydomain.com/a2billing/customer/. If it has the 2 slashes it works.

Author:  RFantry [ Sat Oct 24, 2009 10:14 pm ]
Post subject:  Re: Sorry, you don't have access to this page !

I found out why this was happening... For some reason I was at https://www.mydomain.com/a2billing/ .... But the link the continue to go to paypal was https://mydomain.com/a2billing/ ... The session was getting lost when the www was not there. After correcting this it is working fine.

Author:  goncalojr [ Wed Nov 03, 2010 12:14 am ]
Post subject:  Re: Sorry, you don't have access to this page !

just run: service memcached start.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/