Hi,
Here is my config file
Eventhough I have default controller dashboard,my webiste is redirecting to https://mybaseurl/trongate_administrators/login
I am not able to figure it out. Please help me out.
Best Regards,
Siri K
Automatically my website is routing to BASE_URL/trongate_administrators/login
2 years ago
2 years ago
#1
2 years ago
#2
Hi Siri,
Please post your index method of Dashboard.php
Please post your index method of Dashboard.php
2 years ago
#3
Hi Simon,
Here is my index method
Here is my index method
2 years ago
#4
I have had this problem caused by trongate security and a method calling on _make_sure_allowed(), redirecting to admin login. Perhaps try using trongate token method to get user info instead? This video may help
2 years ago
#5
Hi,
But I am not using the security check. I already commented those two lines.
But I am not using the security check. I already commented those two lines.
2 years ago
#6
Hello, Are you using a public template?
It looks like your calling on another module as well- 'Conversations', could that index be causing the redirect? Try plugging your Dashboard module into a fresh Trongate apps 'Welcome' module / re-name it to welcome and what not and see if the problem persists without the dependency. Many of my issues are caused my something very small being overlooked or added and most I never figured out just started over and never saw the problem again. Your issue is one of them.
It looks like your calling on another module as well- 'Conversations', could that index be causing the redirect? Try plugging your Dashboard module into a fresh Trongate apps 'Welcome' module / re-name it to welcome and what not and see if the problem persists without the dependency. Many of my issues are caused my something very small being overlooked or added and most I never figured out just started over and never saw the problem again. Your issue is one of them.
2 years ago
#7
Hi,
No, I am not using public template. I am using some other bootstrap template. But this is working fine on my localhost. I am getting issue on live.
Best Regards,
Siri K
No, I am not using public template. I am using some other bootstrap template. But this is working fine on my localhost. I am getting issue on live.
Best Regards,
Siri K
2 years ago
#8
Hi Siri,
Please insert die('check1'); statements to track down the redirect
It looks very obvious the redirect issue you are having is going on in here. Also, search your app for checks on "(ENV" as looks to me your user is not logged in and being redirected when the app is not in 'dev' mode.
Please insert die('check1'); statements to track down the redirect
It looks very obvious the redirect issue you are having is going on in here. Also, search your app for checks on "(ENV" as looks to me your user is not logged in and being redirected when the app is not in 'dev' mode.
2 years ago
#9
Hi Simon,
Issue has been resolved.
Thank you.
Siri K
Issue has been resolved.
Thank you.
Siri K