Logs for #cakephp

Page 30 of 36,922, showing 100 records out of 3,692,143 total, starting on record 2,901, ending on 3,000

# At Username Text
# Jun 16th 2021, 20:08 japerlman ```$ cat composer.json | grep cakephp/plugin-installer "cakephp/plugin-installer": "^1.3",```
# Jun 16th 2021, 20:07 japerlman ```$ dir composer.json composer.json```
# Jun 16th 2021, 20:07 japerlman yes
# Jun 16th 2021, 20:07 kevin.pfeifer and you are in the directory where the composer.json is present?
# Jun 16th 2021, 20:06 japerlman no idea why mine is showing that error, I'm copy/pasting your text
# Jun 16th 2021, 19:59 kevin.pfeifer it should say something like that ```-> % composer why cakephp/plugin-installer cakephp/app dev-master requires cakephp/plugin-installer (^1.3) ```
# Jun 16th 2021, 19:56 japerlman The suggestion from @bmuddagot me what I needed, but that's the output from your command. Seems odd to me but I'm very new so I accept that I don't know much
# Jun 16th 2021, 19:56 japerlman ```$ composer why cakephp/plugin-installer [InvalidArgumentException] Could not find package "cakephp/plugin-installer" in your project```
# Jun 16th 2021, 19:54 kevin.pfeifer something seems to require an old plugin-installer check it via ```composer why cakephp/plugin-installer```
# Jun 16th 2021, 19:54 japerlman thanks! had the wrong composer.json open at first, then had to delete a stale composer.lock file but it looks like it's doing it's thing now. Thank you.
# Jun 16th 2021, 19:49 bmudda you probably have to update you composer.json to update plugin installer library ```"cakephp/plugin-installer": "^1.3"```
# Jun 16th 2021, 19:47 japerlman Or is that not the reason for my error?
# Jun 16th 2021, 19:47 japerlman ```ERROR: The system cannot find the file specified. C:\xxxx\xxxx\xxxxx\vendor\composer\tmp-6493c3d89bb30a9ae52c10e3e9387636```
# Jun 16th 2021, 19:46 japerlman How do I update my plugin installer? Or do I need to install an older version of composer? ```$ composer require friendsofcake/crud:^5.0 Loading "cakephp/plugin-installer" which is a legacy composer-installer built for Composer 1.x, it is likely to cause issues as you are running Composer 2.x.```
# Jun 16th 2021, 17:23 kevin.pfeifer I personally just add the scripts “in the middle” of my HTML when I need to have specific JS loaded in cells
# Jun 16th 2021, 17:20 tyler.adam.lazenby That is unfortunate. What if you need to have a script in order for parts of your cell to work. Do you just have to remember to add it or be content with adding a script tag in the middle of your html?
# Jun 16th 2021, 17:19 kevin.pfeifer the `['block' => true]` doesn’t work in elements ;)
# Jun 16th 2021, 17:17 ndm > Cell templates have an isolated scope that does not share the same View instance as the one used to render template and layout for the current controller action or other cells. Hence they are unaware of any helper calls made or blocks set in the action’s template / layout and vice versa.
# Jun 16th 2021, 17:14 tyler.adam.lazenby Just doesn't add the script tag
# Jun 16th 2021, 17:14 greg138 Does it give an error, or just not add the script tag?
# Jun 16th 2021, 17:13 tyler.adam.lazenby ```$this->Html->script('build/cellEmail.bundle.js?v=1.0.0i', ['block' => true]);```
# Jun 16th 2021, 17:13 tyler.adam.lazenby Are cells unable to call script?
# Jun 16th 2021, 15:56 neon1024 I did not. Thanks @kevin.pfeifer I’ll give that a try :thumbsup:
# Jun 16th 2021, 15:46 kevin.pfeifer this is default true
# Jun 16th 2021, 15:46 kevin.pfeifer did you disable the debugging in the docker engine?
# Jun 16th 2021, 15:33 neon1024 My boss claims it’s because the framework bootstrap is loading too many files per request, but I thought if that was the case, it would 504 more consistently. My shared volume is mounted with `cached` too
# Jun 16th 2021, 15:32 neon1024 Anyone else have issues with Cake / PHP applications and Docker on a Mac? At least twice a day my containers will throw a 504 timeout, and the `com.docker.hyperkit` process goes up to 300% CPU
# Jun 16th 2021, 15:23 ndm Yeah, seems like bake generates UUIDs for string columns that are part of the primary key: https://github.com/cakephp/bake/blob/master/src/Command/FixtureCommand.php#L342-L347 Not much that you could do about it. Even if it would respect the limit, it could still not insert a value that would make sense.#
# Jun 16th 2021, 15:18 ndm That's what I wanted to know... so the sample record contains that value. Gotta have a look at bake
# Jun 16th 2021, 15:15 rudy1976s when I go running test it crash because the string is too long
# Jun 16th 2021, 15:15 rudy1976s ```/** * Fields * * @var array */ // phpcs:disable public $fields = [ 'id' => ['type' => 'integer', 'length' => null, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null], 'locale' => ['type' => 'string', 'length' => 5, 'null' => false, 'default' => null, 'collate' => 'latin1_swedish_ci', 'comment' => '', 'precision' => null], 'name' => ['type'
# Jun 16th 2021, 15:15 slackebot => 'string', 'length' => 255, 'null' => false, 'default' => null, 'collate' => 'latin1_swedish_ci', 'comment' => '', 'precision' => null], 'description' => ['type' => 'string', 'length' => 255, 'null' => true, 'default' => null, 'collate' => 'latin1_swedish_ci', 'comment' => '', 'precision' => null], '_constraints' => [ 'primary' => ['type' => 'primary', 'columns' => ['id', 'locale'], 'length' => []], ], '_options'
# Jun 16th 2021, 15:15 slackebot => [ 'engine' => 'InnoDB', 'collation' => 'latin1_swedish_ci' ], ]; // phpcs:enable /** * Init method * * @return void */ public function init(): void { $this->records = [ [ 'id' => 1, 'locale' => '9abe2ef2-0329-4249-8fc3-c4a9e6b11cb4', 'name' => 'Lorem ipsum dolor sit amet', 'description' => 'Lorem ipsum dolor sit amet', ], ];
# Jun 16th 2021, 15:15 slackebot parent::init(); }```
# Jun 16th 2021, 15:14 rudy1976s I have just baked a fixture
# Jun 16th 2021, 15:10 ndm @rudy1976s Generally, yes, but that's irrespective of the column type, it depends on what is actually populating that column.
# Jun 16th 2021, 15:09 ndm @tomrwaller Personally I use Xdebug (https://xdebug.org/docs/profiler), whether you'd consider that beginner friendly really depends...
# Jun 16th 2021, 15:07 rudy1976s @ndm I would expect a 5 long string not 36 isnt'it ?
# Jun 16th 2021, 15:02 tomrwaller By best I mean most beginner friendly :)
# Jun 16th 2021, 15:02 tomrwaller @ndm What would be the best way to do that?
# Jun 16th 2021, 15:01 rudy1976s the filling is happening in the record array of the fixture file
# Jun 16th 2021, 14:44 ndm That looks OK... now where exactly is that filling happening?
# Jun 16th 2021, 14:43 rudy1976s ```'locale' => ['type' => 'string', 'length' => 5, 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null],```
# Jun 16th 2021, 14:43 rudy1976s the locale field generated by bnake is like the following :
# Jun 16th 2021, 14:42 rudy1976s the locale field is always filled with random generated uuid it seems
# Jun 16th 2021, 14:42 rudy1976s all from console
# Jun 16th 2021, 14:42 rudy1976s I have also baked the table and entity tests
# Jun 16th 2021, 14:41 rudy1976s @ndm I am baking fixtures from shell about two tables where one is a shadow strategy translation table
# Jun 16th 2021, 14:40 ndm @rudy1976s What exactly is filling your locale field where exactly? Are you talking about baking fixtures? Importing records for the fixtures?
# Jun 16th 2021, 14:36 ndm @tomrwaller I'd suggest to start with profiling where exactly in the code the memory usage accumulates, and go from there.
# Jun 16th 2021, 14:26 rudy1976s the lenght of the filled string is 36 which seems a uiid
# Jun 16th 2021, 14:25 rudy1976s hello I am creating Fixtures for my tables: I have Translations using Shadow strategy: when creating fixtures I have always the locale field filled with a string much more bigger than 5, which is the limit. is there something to do to avoid this behavior ? I always need to modify Fixtures by hand
# Jun 16th 2021, 14:13 tomrwaller I have about 200 answers in my current test. I get the error below when I try to save... `Allowed memory size of 268435456 bytes exhausted (tried to allocate 163986352 bytes)`
# Jun 16th 2021, 14:12 tomrwaller `<?php foreach ($assessment->answers as $key => $answer) : ?>` `... make a table ...` `<?php echo $this->Form->control('answers.' . $key . '.applicable'); ?>` `... about 10 more of these controls for different fields ...` `<?php endforeach; ?>`
# Jun 16th 2021, 14:10 tomrwaller At the moment, I have an assessment, that has a whole bunch of associated answers. Those answers have some TINYINT fields among others that I'm presenting to a 'run' view - basically the assessment with a table of all the answers with relevant checkboxes. It works, but when I added some additional fields for each answer, such as comments, I now get the memory error.
# Jun 16th 2021, 14:09 tomrwaller Can anybody share with me the most 'efficient' way of updating loads of associated entities from a single view? I say efficient, because the way I'm doing it at the moment has started throwing up SQL memory exhaustion errors, and I'm pretty sure it's down to the fact I'm trying to update ~200 associated entities from a single view.
# Jun 16th 2021, 10:03 rudy1976s I don't know if that depends on my side or not but I noticed in other plugin it's alwayes there.
# Jun 16th 2021, 10:02 rudy1976s I had to modify plugin composer.json and add reference to the fixture in autoload and not in autoload-dev as described in the docs
# Jun 16th 2021, 10:01 rudy1976s @steinkel I fixed my problem
# Jun 16th 2021, 09:01 neon1024 @steinkel Thanks for the offer to open source the CakeDC SAML plugin. Now I’ve learnt a bit more about SAML and the flow, it seems a plugin would be very handy. I have created my own Authenticator, Identifier and Resolver classes, but the AuthnRequest returns a redirect url and I’m a bit lost how I can control the redirect flow from inside an Authentication Resolver
# Jun 16th 2021, 08:11 rudy1976s @steinkel I will make a try , thank you
# Jun 16th 2021, 08:09 steinkel you can clone the repo to another folder too and try running the tests isolated from your app
# Jun 16th 2021, 08:08 steinkel plugin tests should run OK from the plugin itself
# Jun 16th 2021, 08:08 rudy1976s @steinkel let me try one sec
# Jun 16th 2021, 08:08 steinkel if you cd to vendor/x/Blog and run the testsuite from inside of the plugin?
# Jun 16th 2021, 08:08 rudy1976s ```<testsuite name="Blog"> <directory>./vendor/CMSGreen/Blog/tests/TestCase/</directory> </testsuite>```
# Jun 16th 2021, 08:07 rudy1976s I have setup the testsuite in the related section of the phpunit.xml
# Jun 16th 2021, 08:07 rudy1976s the error is the following: `Referenced fixture class "Blog\Test\Fixture\PagesFixture" not found. Fixture "plugin.Blog.Pages" was referenced in test case "Blog\Test\TestCase\Model\Table\PagesTableTest".` In [/var/www/acme/vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureManager.php, line 228]
# Jun 16th 2021, 08:06 rudy1976s I am running the test using the following command : phpunit --testsuite Blog ( Blog is the name of the plugin located in vendor)
# Jun 16th 2021, 08:05 steinkel how are you running the tests and what's your specific error please?
# Jun 16th 2021, 08:04 rudy1976s Thank you !
# Jun 16th 2021, 08:04 rudy1976s Am I forgetting something ?
# Jun 16th 2021, 08:03 rudy1976s I have added the testuite block in the phpunit.xml
# Jun 16th 2021, 08:02 rudy1976s and run dump autoload
# Jun 16th 2021, 08:02 rudy1976s I need to run a test from a plugin located in vendor: I have created a base Table test case using the related fixture. When launching the php unit I have troubles: it seems that phpunit is unablwe to find the fixture. I have setup the fixture namespace in that plugin , as specified in the docs
# Jun 16th 2021, 08:00 rudy1976s good morning all !!
# Jun 14th 2021, 20:28 kevin.pfeifer und danke für den haufen an infos ^^
# Jun 14th 2021, 20:27 kevin.pfeifer ebenso :)
# Jun 14th 2021, 20:27 kevin.pfeifer :+1:
# Jun 14th 2021, 20:27 alamnaryab :$
# Jun 14th 2021, 20:27 alamnaryab thank you
# Jun 14th 2021, 20:27 jh anyway ... ich wünsche einen guten abend :=
# Jun 14th 2021, 20:26 alamnaryab ok I will post again tomorrow here in chat
# Jun 14th 2021, 20:26 jh https://gleam.run/book/tour/ ... kompiliert jetzt das erste mal direkt nach JS und nach Beam-VM (quasi JVM oder PHP OP Code)
# Jun 14th 2021, 20:26 jh das hier ist static typed und schönes erlang: https://gleam.run/
# Jun 14th 2021, 20:25 jh schade dass es nicht static typed ist
# Jun 14th 2021, 20:25 kevin.pfeifer I would have to recreate that issue with a basic template before I can help you further but don’t have time for that ^^ I guess you will need to either wait for more answers or trial/error more
# Jun 14th 2021, 20:25 alamnaryab you are only one who gave me this much time? thank you
# Jun 14th 2021, 20:25 jh ich lasse einfach den "cronjob" als abhängige anwendung laufen, blockiert nicht den thread da alles nur prozesse sind und nicht OO
# Jun 14th 2021, 20:24 jh redis, und dies und das
# Jun 14th 2021, 20:24 jh Und in dem Soul of Erlang video sieht man auch dass man bei der Erlang VM (BEAM, sowas wie JVM) ein Mini OS bekommt und für die meisten projekte nicht noch mehr tools braucht
# Jun 14th 2021, 20:24 kevin.pfeifer spannend
# Jun 14th 2021, 20:24 jh den rest schreibst du auf dem server und der server rendered und schickt dom diffs
# Jun 14th 2021, 20:24 kevin.pfeifer no thank you ^^ I am not a fan of remote desktop software in general Its more like your issue is a bit specific as I understand it
# Jun 14th 2021, 20:24 jh double click, scoll to end of page, sowas
# Jun 14th 2021, 20:23 jh du brauchst JS nur für user behavior events
# Jun 14th 2021, 20:23 jh daher ist elixir/phoenix auch interessant
# Jun 14th 2021, 20:23 jh und ein wenig jQuery lol
# Jun 14th 2021, 20:23 jh ja ist schlimm ... früher FTP, Linux, Apache, MySQL, HTML, CSS, PHP
# Jun 14th 2021, 20:23 alamnaryab will it be possible if you take my anydesk for few minutes may be I am doing some obvious mistake