Logs for #cakephp

Page 5 of 36,424, showing 100 records out of 3,642,341 total, starting on record 401, ending on 500

# At Username Text
# Dec 8th, 15:13 slackebot2 are more things. So I ask, so that my collaboration is not in vain and ends up in a maze that no one else understands anything: how to proceed? I've worked with documentation and text editing, and it was not easy for me to understand cakephp with the documentation that now said one thing then exemplified another ....
# Dec 8th, 15:13 slackebot2 But in Portuguese it says: "ApplesController (...‘ ApplesController.php ') is accessed by http://example.com/apples. " Now the example used is 'users' in English, which agrees with the general context. Already in Portuguese we have 'people', 'users' and 'apples'! In addition, the documentation in Portuguese is not following the documentation in English. Compare the following topic "View Conventions" in English and Portuguese. You can see that ther
# Dec 8th, 12:18 dereuromark yeah, dev prefix only works with string (non numeric) branch names. thus my recommendation to always call cake4 branches as such, to avoid this confusion
# Dec 8th, 11:39 challgren 4.x-dev?
# Dec 8th, 11:23 dereuromark The latter is only valid afaik.
# Dec 8th, 03:50 challgren THe guide might be too updated
# Dec 8th, 03:49 challgren Did you try dev-4.x or 4.x-dev?
# Dec 8th, 02:22 niel45 I give up looking for where that dependency is coming from. Guess I'll wait until 4.0.0 final is released ;-)
# Dec 8th, 02:01 niel45 ffs. finally get to doing: php composer.phar require --update-with-dependencies "cakephp/cakephp:4.0.*" and it fails because cakephp/bake requires 3.8.*
# Dec 8th, 01:41 challgren Thats what I did when it failed
# Dec 8th, 01:41 challgren A simple solution is find and replace in the dir
# Dec 8th, 01:17 niel45 it SHOULD fix the ones in app code though and it failed at that
# Dec 8th, 01:17 challgren It would only throw fatals if its trying to execute the code. Rector I believe doesnt execute the code. But I may be wrong
# Dec 8th, 01:17 niel45 it's not. PHP is trowing the fatal error because the classes don't match
# Dec 8th, 01:16 challgren Yeah it shouldnt be trying to mess with stuff in vendor
# Dec 8th, 01:16 niel45 it's in the dependencies, so it can't really
# Dec 8th, 01:15 challgren Ohh well rector should have done that for yah
# Dec 8th, 01:09 niel45 yup, just needed a bunch of tests to be updated to have return type added to them.
# Dec 8th, 01:02 niel45 fixes look pretty simple
# Dec 8th, 00:47 niel45 thanks any way
# Dec 8th, 00:43 challgren Im not sure at this point. I’d open an issue with cakephp/upgrade
# Dec 8th, 00:42 niel45 yes
# Dec 8th, 00:42 challgren Is that the full error?
# Dec 8th, 00:40 niel45 yes
# Dec 8th, 00:40 challgren Is your original app 3.8?
# Dec 8th, 00:39 niel45 not quite. the final path there is slightly different /home/newapp/app/tests
# Dec 8th, 00:38 challgren So your running `bin/cake upgrade rector --rules phpunit80 /home/otherapp/tests`
# Dec 8th, 00:35 niel45 I'm trying to do this from the instructions: bin/cake upgrade rector --rules phpunit80 <path/to/app/tests>
# Dec 8th, 00:35 challgren Whats the command your running?
# Dec 8th, 00:35 niel45 no
# Dec 8th, 00:34 challgren Are you trying to run your tests?
# Dec 8th, 00:34 niel45 .../app/tests isn't it?
# Dec 8th, 00:33 challgren Your not running it on the correct path
# Dec 8th, 00:32 niel45 it's failing to fix though. crashes with a fatal error: Fatal error: Declaration of Cake\TestSuite\TestCase::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void in /home/niel/dev/www/nzedb-cake/vendor/cakephp/cakephp/src/TestSuite/TestCase.php on line 35
# Dec 8th, 00:31 challgren Rector will try to fix stuff in your vendor if you do /home/otherapp/
# Dec 8th, 00:30 challgren it should be only on the src or tests directories
# Dec 8th, 00:27 corey.taylor.fl vendor is where the dependencies live so you need them until you're done.
# Dec 8th, 00:17 niel45 hmmm apparently not
# Dec 8th, 00:10 niel45 is it ok to delete the contents of .../vendor
# Dec 8th, 00:09 niel45 damnit. fatal error running rector
# Dec 8th, 00:02 challgren Yeah my app didnt have a locales either
# Dec 8th, 00:02 challgren Ahh ok, I trashed my 4.x upgrade branch and I did it like 3 days ago so my paths may not be 100% correct
# Dec 8th, 00:01 niel45 I see templates in base directory, but not locales
# Dec 8th, 00:01 niel45 @corey.taylor.fl good point, but I won't be looking at commiting until its all done and tested
# Dec 8th, 00:01 corey.taylor.fl It should be `templates/`
# Dec 8th, 00:00 challgren Plus youd see the git changes
# Dec 8th, 00:00 challgren Or /home/otherapp/template Im trying to recall off the top of my head
# Dec 8th, 00:00 corey.taylor.fl I think the assumption is you'd see them move in git.
# Dec 8th, 00:00 challgren the moved from /home/otherapp/src/Templates to /home/otherapp/templates
# Dec 7th, 23:59 niel45 only one problem, updating the files doesn't tell you where/if they were moved
# Dec 7th, 23:59 challgren Best to do like ROOT . ’/locales/ IMHO
# Dec 7th, 23:59 niel45 oops, I do see them. tired eyes at the end of the day :-(
# Dec 7th, 23:58 challgren No they do exist if they didn’t we be discussion other issues right now :P
# Dec 7th, 23:58 niel45 and if those entries do not exists then I'm fine?
# Dec 7th, 23:58 challgren so /home/otherapp/config/app.php
# Dec 7th, 23:57 challgren yes
# Dec 7th, 23:57 niel45 does "Once you’ve renamed your template and locale files, make sure you update App.paths.locales and App.paths.templates paths to be correct." refer to .../config/app.php entries?
# Dec 7th, 23:57 niel45 yup
# Dec 7th, 23:55 challgren ok cool if you like bow and arrows I found you :P
# Dec 7th, 23:53 niel45 ok. it's plain niel
# Dec 7th, 23:53 challgren Was going to tag you in the pull for the docs
# Dec 7th, 23:53 niel45 yeah, why?
# Dec 7th, 23:53 challgren niel45 you got a github name?
# Dec 7th, 23:51 niel45 getting ready for final release
# Dec 7th, 23:50 niel45 glad to find it for you ;-) I'm just trying it out on a test repo before I let it near active code :-)
# Dec 7th, 23:50 corey.taylor.fl I wonder if console can print out the name of the first argument it can't find so people know it means 'file_name' that didn't match.
# Dec 7th, 23:49 challgren But I’ll fix that cd /code/upgrade that is confusing
# Dec 7th, 23:49 challgren Well at least I went through the upgrade docs earlier the last 2 would have really messed you up
# Dec 7th, 23:48 niel45 always needs someone else's eyyes to see where you screwes up ;-)
# Dec 7th, 23:48 challgren Haha ok cool
# Dec 7th, 23:48 niel45 ok, no error now. thanks
# Dec 7th, 23:47 niel45 oops
# Dec 7th, 23:47 challgren not file_name
# Dec 7th, 23:47 challgren `file_rename`
# Dec 7th, 23:47 niel45 niel@pop-os:~/dev/www/upgrade$ bin/cake upgrade file_name locales ../nzedb-cake/app-cake/
# Dec 7th, 23:47 niel45 Error: Received too many arguments. Got 1 but only 1 arguments are defined.
# Dec 7th, 23:47 niel45 yup, tried that, didn't work just gave me an error
# Dec 7th, 23:46 challgren Ok now run `bin/cake upgrade file_rename locales /home/otherapp/`
# Dec 7th, 23:46 niel45 yes
# Dec 7th, 23:46 challgren Ahh ok so your in ./upgrade right now?
# Dec 7th, 23:46 niel45 no "composer install --no-dev" as per the instructions for installing it
# Dec 7th, 23:45 challgren How are you already in the directory when installing? Did you do composer require?
# Dec 7th, 23:45 niel45 ok, well then the instructions are confusing "cd ~/code/upgrade" is very specific, and doesn't exist. Not to mention that after installing, we're already in the "upgrade" directory so it is redundant.
# Dec 7th, 23:44 challgren Eg `bin/cake upgrade rector --rules phpunit80 /home/otherproject/tests`
# Dec 7th, 23:43 challgren then you cd into the upgrade di8rectory and run your commands
# Dec 7th, 23:43 niel45 yup, did it that way
# Dec 7th, 23:43 challgren It needs to be setup as its own project/folder outside the app/plugin
# Dec 7th, 23:42 challgren You do not install it into your current app/plugin
# Dec 7th, 23:42 niel45 Installing goes as expected, but the ones to run it on your application/plugin fail at first stepo
# Dec 7th, 23:41 niel45 I'm trying to use the instructions here https://book.cakephp.org/4/en/appendices/4-0-upgrade-guide.html but they don't work for me
# Dec 7th, 23:39 niel45 can anyone help with the 4.x upgrade tool?
# Dec 7th, 23:38 corey.taylor.fl Update TwigView to twig 3.0? https://github.com/WyriHaximus/TwigView/issues/219
# Dec 7th, 20:26 luizcmarin the twig/twig is updated 3.0, but in cake is 2.12.2..... I am suggesting his update.
# Dec 7th, 17:59 martin oh it is standalone I think? but can I also use custom oauth?
# Dec 7th, 17:53 martin yes I did found that one, but that works with the old auth component?
# Dec 7th, 17:50 admad you can use my social-auth plugin :slightly_smiling_face:
# Dec 7th, 17:49 admad oauth is technically authorzation
# Dec 7th, 17:48 martin hmm cakephp authenticain middleware does not support login via oauth (like facebook etc) because it is not a authentication method? hmm :S
# Dec 7th, 14:50 dereuromark usually
# Dec 7th, 14:50 dereuromark in 4.x /templates/