Closed NowakAdmin closed 1 year ago
After more research. Error occured becouse user real@mail.com was already exist in database. I succesfully bypass it using same method as https://github.com/aimeos/aimeos-core/commit/411d6f139950aba663022b041c3338a55c3f688e
aimeos\aimeos-core\src\MShop\Common\Item\Address\Iface.php line 275 aimeos\aimeos-core\src\MShop\Common\Item\Address\Base.php line 393
just change to ?string
I don't know it its worth commit or just adnotation in installation guide to not use existing user email.
We cannot reproduce the problem in our local installation. Whenever we run:
php artisan aimeos:account --super aimeos@aimeos.org
it works without problems. Is the telephone
column defined as non-NULL in your users
table?
I checked column telephone and it's nullable, default ''
i use utf8mb4 in database, meyby this caused error ?
my migration in users is:
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('surname')->nullable();
$table->string('telephone', 20)->nullable();
$table->string('id_number', 20)->nullable();
$table->string('country', 20)->nullable();
$table->date('birthdate')->nullable();
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
"telephone" is also a column name used by Aimeos but has a different definition and is not nullable.
You should remove it from your migration so the Aimeos column definition is used after you run php artisan aimeos:setup
again.
Environment
Describe the bug Can't create super user account after installation. Debug in screenshoot section.
To Reproduce Steps to reproduce the behavior:
Expected behavior Create user account.
Do i need to add telephone prefix inside config? My laravel is set to PL language mby this cause problem ?
Screenshots
Additional context none