aimeos / aimeos-symfony

Symfony e-commerce bundle for professional, ultra fast online shops, complex B2B applications and #gigacommerce

Home Page:https://aimeos.org/Symfony

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Solved] No item found for conditions: Array ( [locale.site.code] => default )

landNull opened this issue · comments

commented

Followed installation instructions here on Github
/shop page loaded just fine

Added a custom logo, favicon, and filled in all of the fields on the settings page
Saved
/shop throws the following error
No item found for conditions: Array ( [locale.site.code] => default )

Did some research and found several people having the same issue with aimeos-Typo3
"
Your MySQL database version doesn't support long indexes required for utf8mb4
"
Is this also the case for aimeos-symfony?

If you use a MySQL version before MySQL 5.7.8 or MariaDB before MariaDB 10.2.2, the problem applies to all integrations including the Symfony bundle.

commented

Thank you for the prompt response
OS: Debian 10
Mariadb: 10.3.31

Maridb server ,cnf was already set to use utf8mb4 before I installed Aimeos.
/etc/mysql/mariadb.conf.d/50-server.cnf

character-set-server = utf8mb4
collation-server = utf8mb4_general_ci

Solution

I edited 50-server.cnf

collation-server = utf8mb4_general_ci
to
collation-server = utf8mb4_unicode_ci

Drop the database then re-follow install instructions starting at:
https://github.com/aimeos/aimeos-symfony#composer

The entered user name and password doesn't match the credentials you can log into the DB.

commented

The entered user name and password doesn't match the credentials you can log into the DB.

Well that's embarrassing.. that'll teach me to copy paste and run off to my next task. :p ;)

Make sure you've added the security.yaml exactly as in the docs:
https://github.com/aimeos/aimeos-symfony#login-and-admin

Afterwards, use the ./bin/console command described at the end of the section to create a new admin account and use the credentials entered there to log in.

Did you add the composer scripts and ran "composer up" afterwards?
https://github.com/aimeos/aimeos-symfony#composer

The records in the mshop_locale_site table are missing, either because the database setup didn't complete successfully or the command hasn't been executed.

commented

Re-ran composer update
received errors about duplicate database tables.

Loaded /shop and there it is in all it's glory! 👍