alafalaki
(Ala Falaki)
June 24, 2015, 10:40am
1
Hi,
i have a project, it works on shop.local and shop.local/admin, i used the tutorial on sharing hosts to make this happen.
now i wanted to deploy this project in my work office server so that my team mates could see and work with it.
i just copied/pasted the whole thing, updated the mysql database.
everything works fine, except two things:
1- when i want to use my login form, i get "Unable to verify your data submission."
and i have csrf in my head layout.
2- my yii debugging toolbar doesn’t show up anymore.
what did i do wrong ?
webin2015
(Webin2015)
June 25, 2015, 9:35am
2
AlaFalaki:
Hi,
i have a project, it works on shop.local and shop.local/admin, i used the tutorial on sharing hosts to make this happen.
now i wanted to deploy this project in my work office server so that my team mates could see and work with it.
i just copied/pasted the whole thing, updated the mysql database.
everything works fine, except two things:
1- when i want to use my login form, i get "Unable to verify your data submission."
and i have csrf in my head layout.
2- my yii debugging toolbar doesn’t show up anymore.
what did i do wrong ?
try this.
In frontend config file
'request' => [
'baseUrl' => '/appname',
'enableCsrfValidation'=>false,
],
and define different session for front and backend app.
'session' => [
'name' => 'PHPFRONTSESSID',
'savePath' => __DIR__ . '/../temp',//create temp folder in frontend.
],
regards
webin
Hi!
Regarding:
Debug Toolbar has a default to show only on localhost / 127.0.0.1.
You have to allow other IPs if you want to see Debug Toolbar on other clients.
Read: http://www.yiiframework.com/doc-2.0/guide-tool-debugger.html
alafalaki
(Ala Falaki)
June 26, 2015, 4:08pm
4
try this.
In frontend config file
'request' => [
'baseUrl' => '/appname',
'enableCsrfValidation'=>false,
],
and define different session for front and backend app.
'session' => [
'name' => 'PHPFRONTSESSID',
'savePath' => __DIR__ . '/../temp',//create temp folder in frontend.
],
regards
webin
Thanks for response, i don’t have access to the office server now, i will test you answer later, but my application(login form) works perfectly in my laptop, but did not work on server, i don’t think that is a configuration issue, am i wrong ?
alafalaki
(Ala Falaki)
June 26, 2015, 4:10pm
5
yeah, i figured that out, could you help me on first question ?
AlaFalaki:
Thanks for response, i don’t have access to the office server now, i will test you answer later, but my application(login form) works perfectly in my laptop, but did not work on server, i don’t think that is a configuration issue, am i wrong ?
Hey!
When everything is running fine on your local machine but not on the server:
(Webserver Config, PHP config, PHP modules etc?)
Maybe you could execute the "requirements.php" in your projects root folder?
It could indicate if something on your server is missing.
Regards
alafalaki
(Ala Falaki)
June 27, 2015, 7:27am
7
MetaCrawler:
Hey!
When everything is running fine on your local machine but not on the server:
(Webserver Config, PHP config, PHP modules etc?)
Maybe you could execute the "requirements.php" in your projects root folder?
It could indicate if something on your server is missing.
Regards
Well actually my local machine is Linux-ubuntu but the server is windows8.
Is it the problem ?
(my configuration is same on both local and server)
alafalaki
(Ala Falaki)
June 27, 2015, 12:54pm
8
well i figured out what the problem is,
It’s kinda odd.
You could still help me here.
thanks in advance.