TYPO3 installation guide creates errors

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rowild

TYPO3 installation guide creates errors

Post by rowild » 05 Jan 2023, 09:43

Here

https://github.com/aimeos/aimeos-typo3#installation

at some point there is the line

composer req aimeos/aimeos-typo3:~22.10

This throws an error:

Code: Select all

./composer.json has been updated
Running composer update aimeos/aimeos-typo3
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - aimeos/aimeos-typo3[22.10.1, ..., 22.10.4] require aimeos/ai-admin-graphql 2022.10.* -> satisfiable by aimeos/ai-admin-graphql[2022.10.1, 2022.10.2, 2022.10.3, 2022.10.4].
    - aimeos/ai-admin-graphql 2022.10.1 requires webonyx/graphql-php dev-master -> found webonyx/graphql-php[dev-master] but it does not match your minimum-stability.
    - aimeos/ai-admin-graphql[2022.10.2, ..., 2022.10.4] require webonyx/graphql-php ~15.0 -> found webonyx/graphql-php[v15.0.0-alpha.1, v15.0.0-alpha.2, v15.0.0-beta.1] but it does not match your minimum-stability.
    - Root composer.json requires aimeos/aimeos-typo3 ~22.10 -> satisfiable by aimeos/aimeos-typo3[22.10.1, 22.10.2, 22.10.3, 22.10.4].

What must be done here?

ddev, TYPO3 11.5, php 8.1

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

Re: TYPO3 installation guide creates errors

Post by aimeos » 05 Jan 2023, 10:50

The Aimeos GraphQL package requires a package which isn't tagged as stable yet and the composer default setting for "minimum-stability" doesn't allow dev packages. The package explicitly requires "webonyx/graphql-php ~15.0@dev" now. Can you please try again?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: TYPO3 installation guide creates errors

Post by rowild » 05 Jan 2023, 15:45

That seems to have worked, but only after I added

"minimum-stability": "dev",
"prefer-stable": true,

to the composer file. This should really go into the documentation. If you agree I could prepare a PR for this page:
https://github.com/aimeos/aimeos-typo3#installation

and instead of this sentence:

Code: Select all

This will install TYPO3 into the ./myshop/ directory.

Then, change to the ./mshop/ directory and install the Aimeos extension for TYPO3 with:
write this:

Code: Select all

This will install TYPO3 into the ./myshop/ directory.

Change to the ./mshop/ directory and add these lines to your composer.json:

```json
"minimum-stability": "dev",
"prefer-stable": true,
```

Install the Aimeos extension for TYPO3 with:

[...]

rowild

Re: TYPO3 installation guide creates errors

Post by rowild » 05 Jan 2023, 15:52

Terribly sorry, but it seems there is another problem. I change to `ddev ssh` and execute `php ./vendor/bin/typo3 extension:setup`, which causes this error:

Code: Select all

be-web:/var/www/html$ php ./vendor/bin/typo3 extension:setup

In DBALException.php line 126:
                                                                                                                      
  The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection().                                                                                                      

extension:setup [-e|--extension EXTENSION]
Executing the php line outside of ddev results in this error:

Code: Select all

php ./vendor/bin/typo3 extension:setup

In AbstractMySQLDriver.php line 112:
                                                              
  An exception occurred in driver: No such file or directory                 

In ConnectionFailed.php line 34:
                             
  No such file or directory                   

In MysqliConnection.php line 83:
                             
  No such file or directory  
Any idea what I am doing wrong here now?

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

Re: TYPO3 installation guide creates errors

Post by aimeos » 06 Jan 2023, 12:18

rowild wrote: 05 Jan 2023, 15:45 to the composer file. This should really go into the documentation. If you agree I could prepare a PR for this page:
https://github.com/aimeos/aimeos-typo3#installation
Yes, that would be great! :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: TYPO3 installation guide creates errors

Post by aimeos » 06 Jan 2023, 12:19

rowild wrote: 05 Jan 2023, 15:52

Code: Select all

php ./vendor/bin/typo3 extension:setup
In MysqliConnection.php line 83:
  No such file or directory  
Did you install the PHP mysqli driver in your ddev environment? Check with "php -m".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: TYPO3 installation guide creates errors

Post by rowild » 06 Jan 2023, 17:32

Yes, mysqli is installed. Tested with

Code: Select all

> $ ddev ssh
> [ddev-path]$ php -m
UPDATE:
In my today's installation the

```bash
php ./vendor/bin/typo3 extension:setup
php ./vendor/bin/typo3 aimeos:setup
```

worked!!! No idea why, but obviously I messed up last time.

Thank you for your support!

Post Reply