There is a problem running the new installation

Help for integrating the Laravel package
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!
xueMing
Posts: 3
Joined: 06 Jul 2018, 03:31

There is a problem running the new installation

Post by xueMing » 06 Jul 2018, 03:51

There was a problem with the first installation of Laravel and Aimeos. I don't know how to solve it!
(1/1) Exception
No item found for conditions: Array
(
[locale.site.code] => default
)
in Base.php line 561
at Base->findItemBase(array('locale.site.code' => 'default'), array(), false)
in Standard.php line 349
at Standard->findItem('default')
in Standard.php line 124
-----------------------------------------
The local installation WINDOWS 10
“php”:“^ 7.0.12”,
“laravel / framework”:“5.4。*”,
“aimeos / aimeos-laravel”:“~2018.04” 

xueMing
Posts: 3
Joined: 06 Jul 2018, 03:31

Re: There is a problem running the new installation

Post by xueMing » 06 Jul 2018, 07:37

I think that's the reason, but I don't know how to solve it
In Simple.php line 97:

An exception occurred while executing 'ALTER TABLE users_address ADD CONSTRAINT fk_lvuad_pid FOREIGN KEY (parentid)
REFERENCES users (id) ON UPDATE CASCADE ON DELETE CASCADE':

SQLSTATE[HY000]: General error: 1005 Can't create table 's_test.#sql-6650_1a' (errno: 150)

xueMing
Posts: 3
Joined: 06 Jul 2018, 03:31

Re: There is a problem running the new installation

Post by xueMing » 06 Jul 2018, 09:18

It was a table engine problem = =....

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

Re: There is a problem running the new installation

Post by aimeos » 09 Jul 2018, 07:37

This problem can occur if you have records in the users_address table without corresponding records in the users table. Aimeos 2018.07 tries to add a foreign key constraint which fails in that case. The latest version contains a setup task that removes the dangling records in the users_address table before applying the contraint.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Kriskev
Posts: 3
Joined: 18 Jul 2018, 08:54

Re: There is a problem running the new installation

Post by Kriskev » 18 Jul 2018, 09:02

How fix ? Same error

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: There is a problem running the new installation

Post by sixbynine » 18 Jul 2018, 09:16

I think I had the same problem.
See this : post6396.html
Maybe it could help you.

Kriskev
Posts: 3
Joined: 18 Jul 2018, 08:54

Re: There is a problem running the new installation

Post by Kriskev » 18 Jul 2018, 09:48

If I understand correctly, I just have to remove the user_address table

Kriskev
Posts: 3
Joined: 18 Jul 2018, 08:54

Re: There is a problem running the new installation

Post by Kriskev » 18 Jul 2018, 10:21

I tried composer update, it's the same error.

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: There is a problem running the new installation

Post by sixbynine » 18 Jul 2018, 15:34

I think you should post the exact error you got.

Post Reply