Aimeos installation from composer works but stop executing before database setup
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 15
- Joined: 14 Jul 2020, 10:59
Aimeos installation from composer works but stop executing before database setup
Hi, thanks for taking the time to help me.
My System Configuration:
Windows 10
Wamp 64bit
PHP 7.4.0
I am trying to install the aimeos Laravel package using Composer, the installation successfully creates the project but it fails to execute the command App\Composer::configure. after that, it doesn't allow me to set up the connection to the database through the command line. The errors I get are (also see image)
Script App\Composer::configure handling the post-create-project-cmd event terminated with an exception
[Symfony\Component\Console\Exception\RuntimeException]
Aborted
looking at the aimeos installation youtube tutorial, it seems that the connection step is important as after the connection is made, a few more dependencies are downloaded. if you have any advice please do let me know, thanks.
My System Configuration:
Windows 10
Wamp 64bit
PHP 7.4.0
I am trying to install the aimeos Laravel package using Composer, the installation successfully creates the project but it fails to execute the command App\Composer::configure. after that, it doesn't allow me to set up the connection to the database through the command line. The errors I get are (also see image)
Script App\Composer::configure handling the post-create-project-cmd event terminated with an exception
[Symfony\Component\Console\Exception\RuntimeException]
Aborted
looking at the aimeos installation youtube tutorial, it seems that the connection step is important as after the connection is made, a few more dependencies are downloaded. if you have any advice please do let me know, thanks.
- Attachments
-
- Picture2.jpg (168.24 KiB) Viewed 3238 times
Re: Aimeos installation from composer works but stop executing before database setup
Strange! Can you add a try/catch method in this method and echo the stack trace of the exception when you run
Example code:
Code: Select all
composer run-script post-create-project-cmd
Code: Select all
try {
} catch( \Exception $e ) {
echo $e->getMessage() . PHP_EOL;
echo $e->getTraceAsString() . PHP_EOL;
throw $e;
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 15
- Joined: 14 Jul 2020, 10:59
Re: Aimeos installation from composer works but stop executing before database setup
in which file should I put this method?
try {
} catch( \Exception $e ) {
echo $e->getMessage() . PHP_EOL;
echo $e->getTraceAsString() . PHP_EOL;
throw $e;
}
try {
} catch( \Exception $e ) {
echo $e->getMessage() . PHP_EOL;
echo $e->getTraceAsString() . PHP_EOL;
throw $e;
}
Re: Aimeos installation from composer works but stop executing before database setup
In your mentioned App\Composer::configure() method.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 15
- Joined: 14 Jul 2020, 10:59
Re: Aimeos installation from composer works but stop executing before database setup
this is what i get when i put the try and catch block in that method.
- Attachments
-
- error.jpg (170.92 KiB) Viewed 3203 times
Re: Aimeos installation from composer works but stop executing before database setup
Seems like it's a bug in that PHP 7.4 version:
https://github.com/symfony/symfony/issues/34702
You should update to a newer 7.4 release before installing Aimeos.
https://github.com/symfony/symfony/issues/34702
You should update to a newer 7.4 release before installing Aimeos.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 15
- Joined: 14 Jul 2020, 10:59
Re: Aimeos installation from composer works but stop executing before database setup
PhP : 7.3.12
Aimeos: latest
Windows 10
Wamp: latest version
Hi, I have changed my PHP version from 7.4.0 to 7.3.12 and the DB connection step seems to continue working. However, on the final step I get an exception, the tables are created but the setup stops before allowing me to set up an account for the admin.
Thanks
Aimeos: latest
Windows 10
Wamp: latest version
Hi, I have changed my PHP version from 7.4.0 to 7.3.12 and the DB connection step seems to continue working. However, on the final step I get an exception, the tables are created but the setup stops before allowing me to set up an account for the admin.
Thanks
- Attachments
-
- Picture6.jpg (124.56 KiB) Viewed 3161 times
-
- Picture5.jpg (110.94 KiB) Viewed 3161 times
-
- Picture4.jpg (124.78 KiB) Viewed 3161 times
Re: Aimeos installation from composer works but stop executing before database setup
The Laravel migration for the "users" table changed the "id" column from "int" to "bigint" to "int" between versions :-/
Can you please try the dev version instead:
And tell us if it works now?
Can you please try the dev version instead:
Code: Select all
composer create-project aimeos/aimeos:2019.10.x-dev myshop
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 15
- Joined: 14 Jul 2020, 10:59
Re: Aimeos installation from composer works but stop executing before database setup
Tried that but it gives me the same error . Is possible that i am missing some php extensions? these are the extensions i have installed.
- Attachments
-
- Picture1.jpg (33.4 KiB) Viewed 3138 times
Re: Aimeos installation from composer works but stop executing before database setup
No, it's not a problem of PHP extensions but how the database reacts.
Can you please post the output of "composer show"?
Can you please post the output of "composer show"?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star