Problems with resources in admin dashboard

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
FAlberto
Posts: 5
Joined: 13 Mar 2019, 19:22

Problems with resources in admin dashboard

Post by FAlberto » 13 Mar 2019, 19:30

Hi!

I'm new in Aimeos and I added this package to my website written in SlimPHP.

Everything was ok until that in the admin dashboard don't charged some resources.

Specifically when I go to the /admin route, there are a call with the OPTIONS method to /admin/default/jsonadm with the 404 code.

I don't know how to fix this. Please anyone can help me?

Slim ^3.0, aimeos-slim ~2017.07, Windows 10

https://imgur.com/a/HOHXWp2
Image
Last edited by FAlberto on 14 Mar 2019, 13:30, edited 1 time in total.

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

Re: Problems with resources in admin dashboard

Post by aimeos » 13 Mar 2019, 20:03

Which version of Slim and Aimeos do you use?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

FAlberto
Posts: 5
Joined: 13 Mar 2019, 19:22

Re: Problems with resources in admin dashboard

Post by FAlberto » 14 Mar 2019, 13:08

From composer.json:

"slim/slim": "^3.0" ,
"aimeos/aimeos-slim": "~2017.07"

I update the aimeos-slim version to 2018.10 and the same issue is ocurring.

I followed the instructions on the https://github.com/aimeos/aimeos-slim

Thanks in advance.

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

Re: Problems with resources in admin dashboard

Post by aimeos » 15 Mar 2019, 09:44

Does one of your routes collide with the Aimeos ones? We've checked and in a blank Slim installation the OPTIONS request to the JsonAdm API works without problems. Another problem could be that your web server doesn't allow OPTIONS requests for some reason (e.g. configuration).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

FAlberto
Posts: 5
Joined: 13 Mar 2019, 19:22

Re: Problems with resources in admin dashboard

Post by FAlberto » 15 Mar 2019, 13:07

Very thanks, the problem is with one middleware that I use in my routes.php, the TrailingSlash middleware, but i don't know exactly why, I commented this middleware and the problem is solved...

Really thanks :D.

Post Reply