Code Required error when registering

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!
User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 19 Dec 2022, 10:11

aimeos wrote: 19 Dec 2022, 09:39 Only if you enabled SHOP_MULTISHOP too. If you don't want a multi-vendor setup with merchant registration, disable SHOP_MULTISHOP and SHOP_REGISTRATION. Then, /register will be available too but only for customers.
I do want a multi-vendor setup with shop registration enabled. Everything works fine as you described, but the issue remains the code field that is required, as stated on your previous post. Sorry if this is back and forth, but it seems to resolve my issue, there must be a shop ID or number field on the registration field, and it is just not there. And thanks again for your patience

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

Re: Code Required error when registering

Post by aimeos » 19 Dec 2022, 10:22

Sorry, we've seen that the register.blade.php file in the current Aimeos distribution was missing the code for the account. This has been fixed now, please add this to your ./resources/views/auth/register.blade.php file:
https://github.com/aimeos/aimeos/blob/m ... php#L9-L23
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 19 Dec 2022, 12:33

aimeos wrote: 19 Dec 2022, 10:22 Sorry, we've seen that the register.blade.php file in the current Aimeos distribution was missing the code for the account. This has been fixed now, please add this to your ./resources/views/auth/register.blade.php file:
https://github.com/aimeos/aimeos/blob/m ... php#L9-L23
Thank you very much.
I see I have a new error: "Missing required parameter for [Route: verification.verify] [URI: {site}/verify-email/{id}/{hash}] [Missing parameter: site]."

But I will battle with this one on my own for a while. Thanks again

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

Re: Code Required error when registering

Post by aimeos » 19 Dec 2022, 13:27

Do you have a stack trace?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 19 Dec 2022, 13:38

aimeos wrote: 19 Dec 2022, 13:27 Do you have a stack trace?
app /Providers/AppServiceProvider.php: 50
return URL::temporarySignedRoute('verification.verify', $time, $params);

Is this what you are referring to?

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

Re: Code Required error when registering

Post by aimeos » 19 Dec 2022, 13:53

Yes. These additional lines should fix the problem:
https://github.com/aimeos/aimeos/commit ... b0914ccb3f

Can you please check?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 19 Dec 2022, 14:05

aimeos wrote: 19 Dec 2022, 13:53 Yes. These additional lines should fix the problem:
https://github.com/aimeos/aimeos/commit ... b0914ccb3f

Can you please check?
Hi - Thank you

Class "App\Providers\Request" not found

app/Providers/AppServiceProvider.php : 53
$params['site'] = Request::route( 'site', Request::input( 'site', config( 'shop.mshop.locale.site', 'default' ) ) );

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

Re: Code Required error when registering

Post by aimeos » 19 Dec 2022, 14:15

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 19 Dec 2022, 14:24

aimeos wrote: 19 Dec 2022, 14:15 Added this line: https://github.com/aimeos/aimeos/commit ... 4882178ec6
Is it better now?
Non-static method Illuminate\Http\Request::route() cannot be called statically

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

Re: Code Required error when registering

Post by aimeos » 19 Dec 2022, 14:34

Maybe it must be:

Code: Select all

use Illuminate\Support\Facades\Request;
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply