Can't delete multiple products from admin

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!
JoseBibiloni
Posts: 6
Joined: 06 Apr 2020, 17:43

Can't delete multiple products from admin

Post by JoseBibiloni » 24 Apr 2020, 03:50

When trying to delete multiple products using the checkboxes and then the x at the top of the checkboxes I get a confirmation asking if I want to delete the items selected and lists them but once you confirm I get the following error:

Code: Select all

"Class "\Aimeos\Admin\JQAdm\Product\En\Factory" not available"

Using Laravel 5.8, Aimeos 2020.04, PHP 7.2, Ubuntu 18.04

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

Re: Can't delete multiple products from admin

Post by aimeos » 25 Apr 2020, 08:01

Laravel 5.x has a routing bug assigning any parameter to an optional route parameter. If you can, upgrade to Laravel 6
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

JoseBibiloni
Posts: 6
Joined: 06 Apr 2020, 17:43

Re: Can't delete multiple products from admin

Post by JoseBibiloni » 29 Apr 2020, 03:51

aimeos wrote: 25 Apr 2020, 08:01 Laravel 5.x has a routing bug assigning any parameter to an optional route parameter. If you can, upgrade to Laravel 6
Would love to but there are limitations I can't control that makes me stay in 5.x Is there another workaround I could do? Anything I should search for specifically?

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

Re: Can't delete multiple products from admin

Post by aimeos » 29 Apr 2020, 17:19

Possible workaround could be to add an empty "id" parameter here if it doesn't exist:
https://github.com/aimeos/ai-admin-jqad ... #L515-L516
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

JoseBibiloni
Posts: 6
Joined: 06 Apr 2020, 17:43

Re: Can't delete multiple products from admin

Post by JoseBibiloni » 13 May 2020, 18:17

aimeos wrote: 29 Apr 2020, 17:19 Possible workaround could be to add an empty "id" parameter here if it doesn't exist:
https://github.com/aimeos/ai-admin-jqad ... #L515-L516
Do you mean something like $searchParams['id'] = ''; ?

I added that but the problem persists. I am looking to upgrade but no success yet so I am trying the workaround.

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

Re: Can't delete multiple products from admin

Post by aimeos » 14 May 2020, 17:43

That workaround works: https://github.com/aimeos/ai-admin-jqad ... 5c55590b28
Use

Code: Select all

composer req aimeos/ai-admin-jqadm:2020.04.x-dev
until the new version is tagged.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

JoseBibiloni
Posts: 6
Joined: 06 Apr 2020, 17:43

Re: Can't delete multiple products from admin

Post by JoseBibiloni » 15 May 2020, 23:26

aimeos wrote: 14 May 2020, 17:43 That workaround works: https://github.com/aimeos/ai-admin-jqad ... 5c55590b28
Use

Code: Select all

composer req aimeos/ai-admin-jqadm:2020.04.x-dev
until the new version is tagged.
worked perfectly thank you!

Post Reply