*Thanks* for the feedback Reuben!

I was able to set the variable using:

$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";;
$this->Authake->setPreviousUrl($actual_link);


Regards,
 Julio


On Friday, May 16, 2014 12:46:46 AM UTC-5, Reuben wrote:
>
> Actually, looking at the code, getPreviousUrl assumes that the URL stored 
> in the session at Authake.previousUrl is either an array or a CakeRequest, 
> since that is what is required for Router::reverse().
>
> You'll need to inspect the Session, and see what is being stored in 
> Authake.previousUrl. This gets set during the beforeFilter on the component 
> (
> https://github.com/mtkocak/authake/blob/a3bd3ac48f8b6472a048b177a2099ec29821eacb/Controller/Component/AuthakeComponent.php#L160
> )
>
> On Thursday, 15 May 2014 03:08:26 UTC+10, Julio Rodriguez wrote:
>>
>> Hello, 
>>
>> I'm using authake (https://github.com/mtkocak/authake) and getting the 
>> following error after successful login:
>> Anyone know how to resolve this?
>>
>> *Warning* (2): array_merge(): Argument #1 is not an array 
>> [*CORE/Cake/Routing/Router.php*, line *1119*]
>> Code Context
>>
>> array_merge - [internal], line ??
>> Router::reverse() - CORE/Cake/Routing/Router.php, line 1119
>> AuthakeComponent::getPreviousUrl() - 
>> ROOT/plugins/Authake/Controller/Component/AuthakeComponent.php, line 194
>> UserController::login() - 
>> ROOT/plugins/Authake/Controller/UserController.php, line 437
>> ReflectionMethod::invokeArgs() - [internal], line ??
>> Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
>> Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
>> Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
>> [main] - APP/webroot/index.php, line 108
>>
>>
>>
>> TIA
>>
>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to