# |
Jan 8th 2020, 05:43 |
ciby48719 |
currently i am using the cakephp3.6 version |
# |
Jan 8th 2020, 05:43 |
ciby48719 |
I have some doubts regarding the cakephp setup in WAMP server |
# |
Jan 8th 2020, 05:42 |
ciby48719 |
Hello Team |
# |
Jan 8th 2020, 02:06 |
kurosugunji |
Where do you use newEntity, do you need to change to newEmptyEntity? |
# |
Jan 8th 2020, 02:03 |
dereuromark |
newEmptyEntity() as documented in migration guide etc |
# |
Jan 8th 2020, 02:01 |
kurosugunji |
NewEntity is used from model / table when accessing DB. Does anyone else know the right way? ? |
# |
Jan 8th 2020, 01:59 |
kurosugunji |
Can’t use newentity in cakephp4?? |
# |
Jan 8th 2020, 01:04 |
MrEm |
Well, it gave me a migration, so I'm happy. But I like the idea of reporting a bug. Thank you for your help |
# |
Jan 8th 2020, 01:03 |
ndm |
Looks like some kind of conflict, internally the migrations plugin tries to dispatch an old-style shell, and somehow that fails, for reasons. Might be worth reporting as a bug. |
# |
Jan 8th 2020, 00:47 |
ndm |
The new error, I remember seeing that one, it had something to do with using the wrong command alias or something... or having to explicitly specify the plugin name as a prefix, I don't remember exactly |
# |
Jan 8th 2020, 00:45 |
MrEm |
ah, OK |
# |
Jan 8th 2020, 00:45 |
ndm |
I mean stop doing `php bin/cake.php plugin load migrations`, it's not necessary as the plugin load call is already present, and you'd only readd an invalid one |
# |
Jan 8th 2020, 00:44 |
MrEm |
Exception: Shell class for "Migrations" could not be found. If you are trying to use a plugin shell, that was loaded via $this->addPlugin(), you may need to update bin/cake.php to match https://github.com/cakephp/app/tree/master/bin/cake.phpIn [/home/ubuntu/dev/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php, line 332] |
# |
Jan 8th 2020, 00:44 |
MrEm |
Also, looks like we got closer - new error (after it runs the migration_snapshot: |
# |
Jan 8th 2020, 00:44 |
MrEm |
^ what do you mean? |
# |
Jan 8th 2020, 00:43 |
ndm |
Means also you don't need to try loading the plugin again via the console |
# |
Jan 8th 2020, 00:42 |
MrEm |
Hmmm... lemme try changing that |
# |
Jan 8th 2020, 00:40 |
ndm |
That should be `'Migrations'` I think uppercase `M` |
# |
Jan 8th 2020, 00:40 |
ndm |
The bug is coming from inside the house :ghost: |
# |
Jan 8th 2020, 00:39 |
MrEm |
https://pastebin.com/Di2A6CDU |
# |
Jan 8th 2020, 00:38 |
MrEm |
https://pastebin.com/PiBLyGyn |
# |
Jan 8th 2020, 00:38 |
savant |
Can you pastebin your Application.php? |
# |
Jan 8th 2020, 00:37 |
ndm |
check the logs |
# |
Jan 8th 2020, 00:37 |
MrEm |
There is no stacktrace - only exactly what I pasted |
# |
Jan 8th 2020, 00:36 |
ndm |
What's the stacktrace for the error? IIRC the plugin load command doesn't try to load or otherwise validate what you're passing to it, so I'd think that error stems from a possibly wrong plugin loading call in your app, most likely in your `Application.php` file. |
# |
Jan 8th 2020, 00:32 |
MrEm |
blasted folder and did install |
# |
Jan 8th 2020, 00:32 |
MrEm |
still getting error |
# |
Jan 8th 2020, 00:32 |
MrEm |
k. |
# |
Jan 8th 2020, 00:31 |
savant |
that should make sure everything is properly installed :) |
# |
Jan 8th 2020, 00:31 |
savant |
composer install |
# |
Jan 8th 2020, 00:31 |
savant |
and then |
# |
Jan 8th 2020, 00:31 |
savant |
rm -rf vendor |
# |
Jan 8th 2020, 00:31 |
savant |
okay can you try |
# |
Jan 8th 2020, 00:31 |
savant |
hmmm |
# |
Jan 8th 2020, 00:26 |
MrEm |
under cakephp/migrations |
# |
Jan 8th 2020, 00:25 |
MrEm |
it's there |
# |
Jan 8th 2020, 00:25 |
MrEm |
nope |
# |
Jan 8th 2020, 00:25 |
savant |
did you move the plugin out of the vendor directory? |
# |
Jan 8th 2020, 00:25 |
savant |
hmmm that looks like it should be fine |
# |
Jan 8th 2020, 00:21 |
MrEm |
no worries - I appreciate the help |
# |
Jan 8th 2020, 00:17 |
savant |
im on a call |