Logs for #cakephp

Page 1 of 35,941, showing 100 records out of 3,594,027 total, starting on record 1, ending on 100

# At Username Text
# Aug 9th, 21:54 styks1987 Instead of specifying on the entity?
# Aug 9th, 21:54 styks1987 Can you set which fields are virtual when building a query?
# Aug 9th, 18:47 inoas but I see exception messages, log files/prints twice
# Aug 9th, 18:47 inoas When I execute shell scripts the write to log files and to stdout/stderr
# Aug 9th, 17:09 kitcat711 Hello, I was using chrisshick/cakephp3-html-purifier plugin, but it seems that is is not going to be updated to be compliant with 3.6. Which hmtlpurifier plugin would you recommand?
# Aug 7th, 12:38 nisseni I'm getting this error: default cache was unable to write '77cdf40047b7b8e666cec24ecbfdb1d9' to Memcached cache - can't find anything on google. I've tried File cache with the same result.
# Aug 7th, 12:19 spriz at least not the magic of writing the patterns
# Aug 7th, 12:18 spriz okay, then I’ll look into it in the weekend if I get around it - I havn’t really learned regex yet
# Aug 7th, 12:18 admad using regex is fine
# Aug 7th, 12:17 spriz I couldn’t figure any other way than using regex, and I’ll have to spend my weekend on that, in case that’s the right way to do it
# Aug 7th, 12:17 spriz >“I don’t see a lot of tests covering the comments in the file, and my regex is not strong - so maybe someone would like to help a bit? :+1:“ ;P
# Aug 7th, 12:16 admad @spriz where are the tests? :slightly_smiling_face:
# Aug 7th, 12:04 dereuromark That is all on you
# Aug 7th, 12:04 dereuromark And it is a good idea :slightly_smiling_face:
# Aug 7th, 12:03 spriz your :+1: was guidance enough :,)
# Aug 7th, 12:03 admad welcome, but i gave no guidance in this case :slightly_smiling_face:
# Aug 7th, 12:02 spriz Done https://github.com/cakephp/cakephp/pull/12438 :slightly_smiling_face: Thanks a lot for the guidance
# Aug 7th, 11:43 spriz roger
# Aug 7th, 11:42 admad sounds good to me. you can target `3.next`
# Aug 7th, 11:42 spriz roger - if you don’t see any big downsides of it, I’ll fire it into a PR :slightly_smiling_face: just didn’t want to waste time if I just overlooked something crayz
# Aug 7th, 11:41 admad makes sense
# Aug 7th, 11:41 spriz so if any dev would update it outside the CI server it generates a shit ton of diffs ,:(
# Aug 7th, 11:40 spriz we create this files on our CI server - so it’s /var/lib/jenkins/jobs/{job-name}/{workspace-n}/project
# Aug 7th, 11:40 admad well then :+1: :slightly_smiling_face:
# Aug 7th, 11:40 spriz yurp
# Aug 7th, 11:40 admad ah you want relative paths in the comments?
# Aug 7th, 11:39 spriz to me it just doesn’t makse sense with full paths in the `*.pot` files
# Aug 7th, 11:39 spriz Okay, so that’s a bad idea I guess?
# Aug 7th, 11:38 admad @spriz i stopped reading further once i encountered "Use relative paths..."
# Aug 7th, 11:36 spriz Any Cake core guy could say either :+1: or :-1: for this change/addition to the `bin/cake i18n extract` command: https://www.diffchecker.com/AHg3f8NY ?
# Aug 7th, 11:30 steinkel hi @vinicius.big not exactly an example, but here's what you can do to make it work: 1. ensure you have a working user (you can login via login form) 2. add some value to the api_token in the database, for example "12345" 3. check you can access your application now using the authorize object, passing the API token as a get param "?api_key=12345" 4. you can also check the unit tests for examples on how to use it or configure it
# Aug 7th, 11:30 slackebot https://github.com/CakeDC/auth/blob/master/tests/TestCase/Auth/ApiKeyAuthenticateTest.php 5. this feature will be replaced by https://github.com/cakephp/authentication/blob/master/src/Authenticator/TokenAuthenticator.php in a near-future version of the plugin
# Aug 7th, 11:22 vinicius.big Hello guys! Does anyone has an example on how to work with `CakeDC/User` API Token? Whats is the flow to connect, for example, an app using token? How can I authenticate an user to consume data from my controllers?
# Aug 7th, 11:08 steinkel add your Authorization object to the Auth configuration and you'll be OK
# Aug 7th, 10:59 itmpls would i have to disable any cakedc setting?
# Aug 7th, 10:59 itmpls ah, so the order might be off. thanks
# Aug 7th, 10:54 steinkel keep in mind you'll need to be authenticated for this to work properly
# Aug 7th, 10:53 steinkel Auth will check them in order, if any of them return true, you'll be authorized
# Aug 7th, 10:53 steinkel check the order of the Authorization objects, adding a dummy (return true) one would work as you mentioned
# Aug 7th, 10:50 itmpls also using cakedc/users
# Aug 7th, 10:50 itmpls tried to specify function isAuthorized() { return true; } in app controller
# Aug 7th, 10:50 itmpls is there a way to hardcode / bypass authorization when implementing Auth? i have authentication set, but I need to figure out the permissions stuff later
# Aug 7th, 10:11 bernat You could do string subtitution in the pot file after extraction.
# Aug 7th, 10:11 bernat The code that extracts the strings is usually low levels staff that doesn't know about relative directories. You could be adding strings from anywhere to your pot. I guess that's why it uses absolute paths.
# Aug 7th, 10:09 spriz unfortunately it doesn’t :)
# Aug 7th, 10:08 bernat Yes, I think it should work like that by default.
# Aug 7th, 10:08 spriz Would be awesome to replace `/var/lib/jenkins/jobs/apacta-translations-update/workspace/plugins/Companies/src/Template/Element/navbar.ctp:56` with `./plugins/Companies/src/Template/Element/navbar.ctp:56`
# Aug 7th, 10:07 spriz I hoped it should be used to remove the full path in the `*.pot` file locations
# Aug 7th, 10:06 spriz it seems to use ‘paths’ to actually find the things anyway
# Aug 7th, 10:06 spriz I guess it’s some old unused code then :slightly_smiling_face:
# Aug 7th, 10:05 spriz roger
# Aug 7th, 10:05 bernat I haven't*
# Aug 7th, 10:04 bernat I've checked it but if it works it must be reading it somewhere.
# Aug 7th, 10:04 spriz it also reads from ./plugins by default
# Aug 7th, 10:04 spriz but there’s no usage of `$this->params['app']` anywhere
# Aug 7th, 10:04 bernat It reads code from src/ and writes pot files to src/Locale by default.
# Aug 7th, 10:03 bernat It does all file operations realtive to that directory.
# Aug 7th, 10:03 spriz I can’t see where it’s used in the task/shell classes
# Aug 7th, 10:03 spriz but for what reason?
# Aug 7th, 10:00 bernat @spriz, it does tell the shell command where the app directory is.
# Aug 7th, 09:56 spriz Could anyone tell me what the `-app` options on the `I18nShell actually does? (link: https://github.com/cakephp/cakephp/blob/master/src/Shell/Task/ExtractTask.php#L316)
# Aug 7th, 09:45 bernat Anyone that can guide me? I've already found something but I'm not sure how to continue from here.
# Aug 7th, 09:44 bernat Hi. I'm trying to investigate this issue: https://github.com/AD7six/cakephp-shadow-translate/issues/52
# Aug 7th, 09:36 nisseni I'm getting this error: default cache was unable to write '77cdf40047b7b8e666cec24ecbfdb1d9' to Memcached cache - can't find anything on google. I've tried File cache with the same result.
# Aug 7th, 08:40 clementcrown wao, thank you @chrisshick and @saeideng
# Aug 7th, 08:38 chrisshick it clearly shows your intl is disabled
# Aug 7th, 08:38 chrisshick i was just about to say that lol
# Aug 7th, 08:37 saeideng `'--disable-intl' `
# Aug 7th, 08:34 clementcrown you can also see that intl is also enabled from that place, or what do you think?
# Aug 7th, 08:34 clementcrown @chrisshick http://landmarkpolytechnic.edu.ng/new.php
# Aug 7th, 08:32 chrisshick @clementcrown
# Aug 7th, 08:31 chrisshick Are you using nginx or apache?
# Aug 7th, 08:31 clementcrown ok
# Aug 7th, 08:30 chrisshick There could be multiple reasons for that
# Aug 7th, 08:30 clementcrown thanks @chrisshick,but I was expecting the error log to show today's date, or what do you think?
# Aug 7th, 08:30 chrisshick have you checked that it is in your php.ini
# Aug 7th, 08:29 clementcrown getting solutions to problem shouldnt be difficult like this @admad , how has my lack of experience caused the error log file to be updated last on the 4th of august and the site is still showing the same error?
# Aug 7th, 08:29 chrisshick @clementcrown it has to be the intl extension
# Aug 7th, 08:28 admad i have to go, hopefully someone else can help you
# Aug 7th, 08:27 clementcrown the error log has not even been updated since that time, and the site is not working
# Aug 7th, 08:26 clementcrown @admad,thanks for your help, can you see the last line of my error log ? the error log was last updated on the 4th of august
# Aug 7th, 08:26 admad > I am becoming tired of Cakephp don't rant about the framework when it's your lack of experience that is causing the problem
# Aug 7th, 08:26 clementcrown [04-Aug-2018 08:44:28 UTC] PHP Fatal error: You must enable the intl extension to use CakePHP. in /home2/landmar1/public_html/portal/config/bootstrap.php on line 25
# Aug 7th, 08:25 admad php doesn't lie, so if it says it can't find intl then it's not properly installed/loaded. your server could have different config files for cli and webserver so ensure it's enabled for both
# Aug 7th, 08:24 clementcrown I am becoming tired of Cakephp
# Aug 7th, 08:23 clementcrown how else can I make the error show?
# Aug 7th, 08:23 clementcrown 'debug' => filter_var(env('DEBUG', TRUE), FILTER_VALIDATE_BOOLEAN),
# Aug 7th, 08:22 clementcrown sorry set to true
# Aug 7th, 08:22 clementcrown the debug is still set to false
# Aug 7th, 08:21 admad because with debug off all errors are converted to 4xx or 5xx. You don't want technical details about your app to be shown to your users in production do you?
# Aug 7th, 08:20 clementcrown i am even surprised the error are not displaying, why404 error ?
# Aug 7th, 08:16 clementcrown the error log is showing INTL exntsion issue , however, this extension has been installed and the server restarted
# Aug 7th, 08:12 admad check the error log for details of actual exception
# Aug 7th, 08:11 clementcrown please help me
# Aug 7th, 08:11 clementcrown please why is my cake application showing page not found http://landmarkpolytechnic.edu.ng/portal/users/login
# Aug 7th, 07:54 admad ;)
# Aug 7th, 07:54 ondrej.nedvidek how straightforward if you can 'read' :)
# Aug 7th, 07:53 ondrej.nedvidek just noticed in API ;) yep missed that originally .. thanks ;)