php - base64_decode() exception when changing URL of Laravel -



php - base64_decode() exception when changing URL of Laravel -

i have laravel installation on server located /var/www/html/site/ , can access here dev.site.com. alter board url site.com changing document root virtual host. point site.com /var/www/html/site/public , laravel gives error:

base64_decode() expects parameter 1 string, array given

this happens when access website using url site.com , when alter dev.site.com, it's fine again. i've updated application url site.com.

i'm running laravel 4.2 on centos 4.5 final.

virtual hosts <virtualhost *:80> servername dev.site.com serveralias dev.site.com serveradmin tech@mydomain.com documentroot "/var/www/html/site/public" <directory /var/www/html/site/public> allowoverride allow </directory> </virtualhost> <virtualhost *:80> servername site.com serveralias site.com serveradmin tech@mydomain.com documentroot "/var/www/html/site/public" <directory /var/www/html/site/public> allowoverride allow </directory> </virtualhost>

/var/www/html/site/vendor/laravel/framework/src/illuminate/encryption/encrypter.php

* @param string $payload * @return array * * @throws decryptexception */ protected function getjsonpayload($payload) { $payload = json_decode(base64_decode($payload), true);

7 illuminate\encryption\encrypter getjsonpayload

* decrypt given value. * * @param string $payload * @return string */ public function decrypt($payload) { $payload = $this->getjsonpayload($payload); // we'll go ahead , remove pkcs7 padding encrypted value before just clear again, if go dev.site.com it's fine 1 time again.

solved clearing cookies....

php url laravel virtualhost

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -