# |
Feb 9th 2018, 08:34 |
admad |
why would a logout function work again after you have been already logged out the first time? :slightly_smiling_face: |
# |
Feb 9th 2018, 08:26 |
h.mavisakalian |
Does anyone have an idea on what might have caused this? |
# |
Feb 9th 2018, 08:26 |
h.mavisakalian |
.htaccess is correct, the logout redirect also. |
# |
Feb 9th 2018, 08:25 |
h.mavisakalian |
It works the local server, the problem is on the live server. |
# |
Feb 9th 2018, 08:24 |
h.mavisakalian |
The second time I try to log out it just redirects to the index page and thats it. |
# |
Feb 9th 2018, 08:24 |
h.mavisakalian |
My logout function started not working after using it one time. |
# |
Feb 9th 2018, 08:23 |
h.mavisakalian |
I have an odd problem with one of my projects. May be someone can help |
# |
Feb 9th 2018, 08:23 |
h.mavisakalian |
Hi guys |
# |
Feb 9th 2018, 06:50 |
jameg83 |
Thanks. |
# |
Feb 9th 2018, 06:48 |
admad |
you sure can, maybe someone else can help if i am not around :slightly_smiling_face: |
# |
Feb 9th 2018, 06:48 |
jameg83 |
Admad, I haven’t got access at the minute. Can I post the full error message in a few hours? |
# |
Feb 9th 2018, 06:48 |
jkarlmen |
I'll take you advice @admad |
# |
Feb 9th 2018, 06:48 |
jkarlmen |
But I have learned something valuable so I do appreciate that |
# |
Feb 9th 2018, 06:47 |
jkarlmen |
I have about 3 weeks to build a relatively complex application |
# |
Feb 9th 2018, 06:46 |
jkarlmen |
I read up on general OOP but had to get started due to a time crunch ... I'll have to review that |
# |
Feb 9th 2018, 06:46 |
admad |
read up on PHP OOP basics to avoid such gotchas in future |
# |
Feb 9th 2018, 06:46 |
jkarlmen |
Thank you @ricksaccous... you have saved me from madness |
# |
Feb 9th 2018, 06:45 |
jkarlmen |
I am super new to MVC ... I'm suprised I got this far into this application before that bit of inheritance bit me |
# |
Feb 9th 2018, 06:45 |
admad |
@jameg83 can you show the full exact error message |
# |
Feb 9th 2018, 06:45 |
jameg83 |
It works fine from the command line admad. But not when executed via php. Any ideas? |
# |
Feb 9th 2018, 06:45 |
jkarlmen |
and it was one line of code |
# |
Feb 9th 2018, 06:45 |
jkarlmen |
wow ... 3 days I fought with this |
# |
Feb 9th 2018, 06:44 |
ricksaccous |
but you get the picture |
# |
Feb 9th 2018, 06:44 |
admad |
having to call parent::foo() is PHP 101. |
# |
Feb 9th 2018, 06:44 |
ricksaccous |
or i probably said it badly |
# |
Feb 9th 2018, 06:44 |
ricksaccous |
since in the subclass you overwrite it |
# |
Feb 9th 2018, 06:44 |
ricksaccous |
yeah otherwise you are not inheriting the stuff from the parent method |
# |
Feb 9th 2018, 06:43 |
jkarlmen |
? |
# |
Feb 9th 2018, 06:43 |
jkarlmen |
so i have to call parent::initialize before it will load the stuff from app controller |
# |
Feb 9th 2018, 06:43 |
jkarlmen |
oh ... oh my |
# |
Feb 9th 2018, 06:43 |
ricksaccous |
ie initialize() { doing stuff here} instead of initialize() {parent::initialize(); dostuffhere} |
# |
Feb 9th 2018, 06:42 |
ricksaccous |
are you calling methods in other controllers that are over-riding appController method? |
# |
Feb 9th 2018, 06:42 |
jkarlmen |
yup just checked |
# |
Feb 9th 2018, 06:42 |
jkarlmen |
as far as I can tell |
# |
Feb 9th 2018, 06:41 |
ricksaccous |
are your other controllers extending AppController class? |
# |
Feb 9th 2018, 06:35 |
jkarlmen |
anyone have any idea why that is |
# |
Feb 9th 2018, 06:35 |
jkarlmen |
So it wouldn't work until I loaded it into ExampleController.php |
# |
Feb 9th 2018, 06:35 |
jkarlmen |
it wasn't apply it to the sub classes |
# |
Feb 9th 2018, 06:34 |
jkarlmen |
Turns out although i loaded the th CakeDC/Users.UserAuth component in AppController.php |
# |
Feb 9th 2018, 06:34 |
jkarlmen |
so I wound up figuring out why cakedc authlinks weren't working |
# |
Feb 9th 2018, 06:25 |
admad |
php doesn't like, if it says it doesn't have permission than it doesn't :slightly_smiling_face: |