# |
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 |
slackebot |
parent::init(); }``` |
# |
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 |
=> '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 |
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: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 |