akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
954 stars 514 forks source link

Bug in Firefox: The route does not exist and other js errors #6044

Closed pardahlman closed 7 years ago

pardahlman commented 7 years ago

Hello team πŸ‘‹ ,

Thanks for an amazing system! I'm running version 1.7.0 Akeneo on Linux, here's the generated system info file.

I'm using the web interface on my Windows 10 machine, and noticed that many of the views aren't rendered correctly on Firefox (latest version, 52.0.1).

For example, there is an error message in the console when I navigate to /configuration/channel/

> Error: The route "pim_datagrid_view_rest_default_columns" does not exist.   router.js:9:313

If I navigate to /configuration/attribute/ I get the following error

> TypeError: _.__ is not a function[Learn More]  abstract-filter.js:61:22

This seams to abort the rendering of the site, leaving the main content are blank, see screen shot below

image

When I visit the same URL with latest version of Chrome (57.0.2987.133) the views are rendered as expected.

mickaelandrieu commented 7 years ago

Hello @pardahlman,

looking at your screenshot, the url should be #url=/configuration/channel/ isn't it?

I can't reproduce the issue on 1.7.4 // Firefox 54 // Windows 10, would you mind to update your PIM and confirm the issue is fixed?

Thank for your report?

pardahlman commented 7 years ago

Hey, @mickaelandrieu - thanks for getting back to me.

I think you are right, I tried to reproduce the issue in my current instance running 1.7.3 CE, and I get the same URL as you and it works πŸ‘

I have a different issue on the same theme, though... I'm not able to list products in Firefox, see screenshot below

products-1 7 3

The console log states: "Empty string passed to getElementById().". Tried to reproduce this on demo.akeneo.com but it works there. Perhaps it something with my installation, but it works in Chrome which feels strange to me.

mickaelandrieu commented 7 years ago

@pardahlman I was not able to reproduce on my own side both on Chrome and Firefox... hmm is there something special with your products, can you try to make a reproducible test case? Something we can reproduce on demo.akeneo.com could be really useful to help us fix the issue :)

pardahlman commented 7 years ago

I know, very frustrating. There is nothing special with the products, expect that they (and the categories) may contain some special characters (Γ₯, Γ€ and ΓΆ), but that shouldn't fail. I've tried to repo it in demo, but without any success.

Also, since the problem is browser specific I just get the feeling that is has to do with some corner case in the javascript... but then again, it worked at the demo, so... I don't. I've tried to dig into the problem a bit further, but I didn't really find anything useful, except the fact that the value of selector is just #, and the call to getElementById is performed by an empty string. Here's my debugger session

image

It is perhaps best to close this issue, and I'll be sure to file a new one if I have some more concrete information about the issue.

mickaelandrieu commented 7 years ago

Ok, I feel sorry to not be able to help you more.

Don't hesitate to fill a new issue with a reproducible use case, I'm pretty sure there is a real bug and we will be happy to fix it as soon as we can.

Regards