Page 1 of 1

Problems with resources in admin dashboard

Posted: 13 Mar 2019, 19:30
by FAlberto
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

Re: Problems with resources in admin dashboard

Posted: 13 Mar 2019, 20:03
by aimeos
Which version of Slim and Aimeos do you use?

Re: Problems with resources in admin dashboard

Posted: 14 Mar 2019, 13:08
by FAlberto
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.

Re: Problems with resources in admin dashboard

Posted: 15 Mar 2019, 09:44
by aimeos
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).

Re: Problems with resources in admin dashboard

Posted: 15 Mar 2019, 13:07
by FAlberto
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.