Log message #4056529

# At Username Text
# Jul 25th 2017, 08:30 neon1024 Using `ini_set('session.gc_maxlifetime', 3600);` would be my first thought
# Jul 25th 2017, 08:25 tawriq Hi, I am using php 7.1 and cakephp 3.3.*. Is there an easy way to manipulate a sessions expiry date on the fly ?
# Jul 25th 2017, 08:18 littleylv so you mean `/Users/chongChong/Documents/Work/myapp/logs/` is your local PC path. But when you run cli in your server, it attempt to write log into this fold?
# Jul 25th 2017, 08:17 neon1024 Morning everyone
# Jul 25th 2017, 08:09 johnwayne and localy there is no file like cli-error.log so my question is from where hes getting that path
# Jul 25th 2017, 08:05 johnwayne @littleylv but that path doesnt exists on server.... its only local
# Jul 25th 2017, 07:53 littleylv @johnwayne `chmod 777 /Users/chongChong/Documents/Work/myapp/logs/cli-error.log` or just delete it. It may be created by root or someone else but now you are trying to write it by apache
# Jul 25th 2017, 07:46 dipesh22 $routes->connect('/authenticate', ['controller' => 'Users', 'action' => 'login', 'cors' => [ 'origin' => 'https://UI_PART_URL>', 'methods' => ['POST'], 'headers' => ['Access-Control-Allow-Credentials' = true] ]]);
# Jul 25th 2017, 07:46 dipesh22 I have used below code for the same
# Jul 25th 2017, 07:45 dipesh22 But, We are getting an error "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource"
# Jul 25th 2017, 07:45 dipesh22 @littleylv I have already used https://github.com/snelg/cakephp-cors
# Jul 25th 2017, 07:44 johnwayne @littleylv but it is strange that I can see path from local PC on server online
# Jul 25th 2017, 07:33 littleylv @johnwayne change your file permission with `chmod`
# Jul 25th 2017, 07:31 littleylv @dipesh22 i am afraid i have no good idea but i searched github and find this https://github.com/snelg/cakephp-cors> . It’s for 3.0-3.2 and <https://github.com/ozee31/cakephp-cors for 3.3+
# Jul 25th 2017, 07:26 johnwayne Hi, I have problems with file_put_contents. Files are on server but in warning path pointing to local file. Warning: file_put_contents(/Users/chongChong/Documents/Work/myapp/logs/cli-error.log): failed to open stream: Permission denied in /Users/chongChong/Documents/Work/myapp/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line
# Jul 25th 2017, 07:25 dipesh22 @littleylv Thanks for your time. I have checked this URL in that there is mentioned that it's for 3.2 version. So, what about 3.0 version
# Jul 25th 2017, 07:05 littleylv @dipesh22 https://book.cakephp.org/3.0/en/controllers/request-response.html#setting-cross-origin-request-headers-cors
# Jul 25th 2017, 06:47 sonu_nk When i am accessing : http://myurl/api/forms/getforms.json is throwing error, but my http://myurl/api/forms.json is working well..
# Jul 25th 2017, 06:47 sonu_nk Error: ApiController could not be found.
# Jul 25th 2017, 06:46 sonu_nk i am getting error when i am access api url ... https://pastebin.com/5g26RTU5
# Jul 25th 2017, 06:45 dipesh I want to use CORS in cakephp 3.0. So, how can I enable CORS?
# Jul 25th 2017, 06:34 dipesh22 Hello, I am trying to use CORS in cakephp 3.0. So how can I enable it?
# Jul 25th 2017, 05:47 Modicrumb sweet
# Jul 25th 2017, 05:47 Modicrumb nevermind, got it handled
# Jul 25th 2017, 05:32 Modicrumb it's true by default though...
# Jul 25th 2017, 05:31 Modicrumb ahh i see there is an allowMultipleNulls
# Jul 25th 2017, 05:30 Modicrumb what's the best way to do this?
# Jul 25th 2017, 05:30 Modicrumb and if it isn't filled out obviously i don't care about it being unique
# Jul 25th 2017, 05:29 Modicrumb basically i want a field to be unique, however i want it to be optional as well
# Jul 25th 2017, 05:29 Modicrumb i'm having a problem
# Jul 25th 2017, 03:16 FeonoR This field is needed in one case, and should be hidden in other
# Jul 25th 2017, 03:15 FeonoR Or no...it's impossible in my case
# Jul 25th 2017, 03:12 genellern @feonor why don't you set the hidden type?
# Jul 25th 2017, 01:42 FeonoR Help me
# Jul 25th 2017, 01:20 feonor How can I get text of select component in my controller when i use getData() ?
# Jul 25th 2017, 00:51 feonor Is it possible to use javascript in my views to show hide fields created by FormHelpers ?
# Jul 25th 2017, 00:16 FeonoR Hi to all, could anybody help me with using javascript in my cake project ?7
# Jul 24th 2017, 22:35 xuding tx
# Jul 24th 2017, 22:35 xuding fixed the issue
# Jul 24th 2017, 22:35 xuding upgrading to cakephp 3.4.11
# Jul 24th 2017, 22:27 xuding sorry, it should be 5.7.21