Aimeos installation from composer works but stop executing before database setup

How to configure and adapt Aimeos based shops as developer
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!
octorber123
Posts: 15
Joined: 14 Jul 2020, 10:59

Aimeos installation from composer works but stop executing before database setup

Post by octorber123 » 14 Jul 2020, 11:25

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.
Attachments
Picture2.jpg
Picture2.jpg (168.24 KiB) Viewed 3210 times

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Aimeos installation from composer works but stop executing before database setup

Post by aimeos » 16 Jul 2020, 21:15

Strange! Can you add a try/catch method in this method and echo the stack trace of the exception when you run

Code: Select all

composer run-script post-create-project-cmd
Example code:

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, Image give us a star

octorber123
Posts: 15
Joined: 14 Jul 2020, 10:59

Re: Aimeos installation from composer works but stop executing before database setup

Post by octorber123 » 17 Jul 2020, 15:19

in which file should I put this method?

try {

} catch( \Exception $e ) {
echo $e->getMessage() . PHP_EOL;
echo $e->getTraceAsString() . PHP_EOL;
throw $e;
}

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Aimeos installation from composer works but stop executing before database setup

Post by aimeos » 17 Jul 2020, 17:39

In your mentioned App\Composer::configure() method.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

octorber123
Posts: 15
Joined: 14 Jul 2020, 10:59

Re: Aimeos installation from composer works but stop executing before database setup

Post by octorber123 » 18 Jul 2020, 01:05

this is what i get when i put the try and catch block in that method.
Attachments
error.jpg
error.jpg (170.92 KiB) Viewed 3175 times

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Aimeos installation from composer works but stop executing before database setup

Post by aimeos » 18 Jul 2020, 07:46

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

octorber123
Posts: 15
Joined: 14 Jul 2020, 10:59

Re: Aimeos installation from composer works but stop executing before database setup

Post by octorber123 » 20 Jul 2020, 11:51

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
Attachments
Picture6.jpg
Picture6.jpg (124.56 KiB) Viewed 3133 times
Picture5.jpg
Picture5.jpg (110.94 KiB) Viewed 3133 times
Picture4.jpg
Picture4.jpg (124.78 KiB) Viewed 3133 times

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Aimeos installation from composer works but stop executing before database setup

Post by aimeos » 21 Jul 2020, 09:05

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:

Code: Select all

composer create-project aimeos/aimeos:2019.10.x-dev myshop
And tell us if it works now?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

octorber123
Posts: 15
Joined: 14 Jul 2020, 10:59

Re: Aimeos installation from composer works but stop executing before database setup

Post by octorber123 » 21 Jul 2020, 10:09

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
Picture1.jpg (33.4 KiB) Viewed 3110 times

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Aimeos installation from composer works but stop executing before database setup

Post by aimeos » 21 Jul 2020, 10:20

No, it's not a problem of PHP extensions but how the database reacts.
Can you please post the output of "composer show"?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply