Error running composer update with fresh install of Laravel
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 7
- Joined: 20 Jul 2015, 19:38
Error running composer update with fresh install of Laravel
I created a fresh install of Laravel 5.1.4, then modified the .env file and the composer.json file per the instructions at https://aimeos.org/docs/Laravel/Install_Aimeos, then ran composer update and received the following error:
I am the owner of the directories with full rwx permissions.
Should I continue with the Artisan commands?
Code: Select all
> cp -r ext/*/client/extjs/deploy/* public/packages/aimeos/shop/client/extjs/deploy/
cp: cannot stat ‘ext/*/client/extjs/deploy/*’: No such file or directory
Script cp -r ext/*/client/extjs/deploy/* public/packages/aimeos/shop/client/extjs/deploy/ handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output: cp: cannot stat ‘ext/*/client/extjs/deploy/*’: No such file or directory
Should I continue with the Artisan commands?
Re: Error running composer update with fresh install of Lara
Code: Select all
> cp -r ext/*/client/extjs/deploy/* public/packages/aimeos/shop/client/extjs/deploy/
cp: cannot stat ‘ext/*/client/extjs/deploy/*’: No such file or directory
Script cp -r ext/*/client/extjs/deploy/* public/packages/aimeos/shop/client/extjs/deploy/ handling the post-update-cmd event returned with an error
-
- Posts: 7
- Joined: 20 Jul 2015, 19:38
Re: Error running composer update with fresh install of Lara
Removing that line corrected the error, but I noticed that the syntax of the app.php providers array seems to have changed from what you are showing in your documentation.
You have:
However the syntax in 5.1.4 now is:
Anyway, now when running I get the following error:
You have:
Code: Select all
return array(
'providers' => array(
...
'Aimeos\Shop\ShopServiceProvider',
),
);
Code: Select all
App\Providers\AppServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Aimeos\Shop\ShopServiceProvider::class,
Code: Select all
php artisan aimeos:setup --option=setup/default/demo:1
Code: Select all
[MW_DB_Exception]
Executing statement "
SELECT DISTINCT lvu."id", lvu."name" as "label", lvu."name" as "code",
lvu."company", lvu."vatid", lvu."salutation", lvu."title",
lvu."firstname", lvu."lastname", lvu."address1",
lvu."address2", lvu."address3", lvu."postal", lvu."city",
lvu."state", lvu."countryid", lvu."langid",
lvu."telephone", lvu."email", lvu."telefax", lvu."website",
lvu."birthday", lvu."status", lvu."vdate", lvu."password",
lvu."created_at" AS "ctime", lvu."updated_at" AS "mtime", lvu."editor"
FROM "users" AS lvu
WHERE ( lvu."name" LIKE 'demo-%' )
LIMIT 100 OFFSET 0
" failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lvu.company' in 'field list'
Re: Error running composer update with fresh install of Lara
That's essentially the same, just another way to get the class name.davidlanier wrote:Removing that line corrected the error, but I noticed that the syntax of the app.php providers array seems to have changed from what you are showing in your documentation.
Someone else reported that problem before. Due to an unknown reasondavidlanier wrote: Anyway, now when runningI get the following error:Code: Select all
php artisan aimeos:setup --option=setup/default/demo:1
Code: Select all
[MW_DB_Exception] " failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lvu.company' in 'field list'
Code: Select all
"php artisan vendor:publish",
"php artisan migrate",
Thanks
-
- Posts: 7
- Joined: 20 Jul 2015, 19:38
Re: Error running composer update with fresh install of Lara
I wasn't paying attention and just noticed that I have two publish directives in the post update section:
Code: Select all
"post-install-cmd": [
"php artisan vendor:publish",
"php artisan migrate",
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan vendor:publish --tag=public --force",
"php artisan vendor:publish",
"php artisan migrate",
"php artisan optimize"
],
Re: Error running composer update with fresh install of Lara
That's necessary because otherwise, the CSS and JS file won't get updated with new versions.davidlanier wrote:I wasn't paying attention and just noticed that I have two publish directives in the post update section:
Code: Select all
"post-update-cmd": [ "php artisan vendor:publish --tag=public --force", "php artisan vendor:publish", "php artisan migrate", "php artisan optimize" ],
Does it work now if you execute "composer update" and afterwards "artisan aimeos:setup"?
-
- Posts: 7
- Joined: 20 Jul 2015, 19:38
Re: Error running composer update with fresh install of Lara
Yes it is working now. There were some additional files pulled down in the composer update so all is well with the world now.
Thanks for you help!
Thanks for you help!

Re: Error running composer update with fresh install of Lara
Can you execute the following commands by hand:davidlanier wrote:No. I'm still getting the unknown column lvu.company in the select statement.
Code: Select all
php artisan vendor:publish
php artisan migrate
"./database/migrations/2015_03_06_000000_aimeos_users_table.php" is there and the migrations are executed.
-
- Posts: 7
- Joined: 20 Jul 2015, 19:38
Re: Error running composer update with fresh install of Lara
Sorry, I forgot to run the update first and you replied before I had a chance to edit my previous reply.
All is well now, except I'm getting a blank page when opening in my browser. I should have the demo right? I think I still need to make the csrf edits though.
All is well now, except I'm getting a blank page when opening in my browser. I should have the demo right? I think I still need to make the csrf edits though.
Re: Error running composer update with fresh install of Lara
Please continue with the setup. You need to add a base template, then you can test:davidlanier wrote: All is well now, except I'm getting a blank page when opening in my browser. I should have the demo right? I think I still need to make the csrf edits though.
https://aimeos.org/docs/Laravel/Adapt_base_template
https://aimeos.org/docs/Laravel/Test_installation
The CSRF thing is necessary if you are using version 1.0.x to get through the checkout.