https://catalogue.bm-lyon.fr/ gives blank page

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 13
Joined: 2019-12-26, 13:32

https://catalogue.bm-lyon.fr/ gives blank page

Unread post by BenUpsakin » 2021-07-25, 10:28

Hello fellow PM users,

Now library's website https://catalogue.bm-lyon.fr/ doesn't load under Pale Moon. It doesn't work either with Internet Explorer or kmeleon or Seamonkey. It still works with Edge.

But, and this is rather odd, it works with Pale Moon clone (or so I think it is) MyPal.

I sent an email to the library but don't know if hey're going to answer me.

That it works with MyPal but not Pale Moon is the most peculiar to me. I mean, I thought it was just the same browser just a little faster and optimized for Windows XP.

Hope someone can help, or a next Pale Moon update will help fix it. Thanks.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2181
Joined: 2018-05-05, 13:29

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by vannilla » 2021-07-25, 11:06

The error is:

Code: Select all

SyntaxError: expected expression, got keyword 'import'
As for why it works on MyPal maybe it's because of the user agent string.

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2017-12-14, 12:59

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by gepus » 2021-07-25, 13:28

vannilla wrote:
2021-07-25, 11:06
The error is:

Code: Select all

SyntaxError: expected expression, got keyword 'import'
You get the same error with MyPal and as expected the site won't load with it either.

I took the extra effort to download MyPal and check since the story smelled fishy to begin with. :wtf:

New Tobin Paradigm

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by New Tobin Paradigm » 2021-07-25, 15:56

gepus wrote:
2021-07-25, 13:28
You get the same error with MyPal and as expected the site won't load with it either.

I took the extra effort to download MyPal and check since the story smelled fishy to begin with. :wtf:
Gross. But deception on the part of the XPFucks is not unexpected. Each group is taking turns coming at us it seems so it was only a matter of time before they showed up again.

User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 13
Joined: 2019-12-26, 13:32

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by BenUpsakin » 2021-07-27, 20:51

I wondered how to change useragent, in case it was the culprit. Now it no longer works in MyPal. In Mypal I created a string value in the about:config,

general.useragent.override.bm-lyon.fr
with this value
Mozilla/5.0 (Windows NT 5.1; rv:99.9) Gecko/20100101 Firefox/99.9

and it doesn't work either.

Has someone any suggestion as to how to fix this? Thanks

User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 13
Joined: 2019-12-26, 13:32

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by BenUpsakin » 2021-07-27, 20:54

I almost forgot to say, I also downloaded the basilisk browser to make it work on a goanna browser, but it hasn't worked so far. No goanna browser (MyPal, PaleMoon, Kmeleon, Basilisk) could load that webpage.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by Moonchild » 2021-07-28, 00:23

Verified in a supported browser not on XP.

Since for once it's not minified, the problem is the following code:

Code: Select all

// Trick to dispatch events when module is hot reloaded
if (false) {
    Promise.all([import('webpack-hot-middleware/client'), import('./redux/globalActions')]).then(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            client = _ref2[0],
            actions = _ref2[1];

        client.subscribeAll(function (event) {
            if (event.action == "built") {
                store.dispatch(actions.fetchManifest());
            }
        });
    });
}
This fails because even if this code will never run (it's in an if(false) {} block so will never be executed) it still requires the code to properly parse for the interpreter. Especially because they force strict mode ("use strict;" clause).
If the site isn't actually using that code they shouldn't shove it out to browsers, for one. Using import() as a function that way does not work in our engine; it's a reserved keyword. This trips up the parser which in turn aborts the entire script (because something that can't be parsed also can't be executed), which, in turn, delivers a blank page because they do not have any content except the content generated by the (now failing) script.

The webmaster can fix this by not pushing the offending code out to browsers (delete the code I indicated) since it's not in use anyway.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 13
Joined: 2019-12-26, 13:32

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by BenUpsakin » 2021-07-28, 13:14

OK I sent an email to the library - hope they will forward it to the webmaster and he'll change that blocking piece of java script. Thank you for having taken time to analyse what was going wrong,

New Tobin Paradigm

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by New Tobin Paradigm » 2021-07-28, 14:45

Why would the lib contact the site?

BenFenner
Astronaut
Astronaut
Posts: 588
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by BenFenner » 2021-07-28, 15:25

New Tobin Paradigm wrote:
2021-07-28, 14:45
Why would the lib contact the site?
Because the library commissioned the web site and would be the first point of contact when trying to report an issue with the web site of the library (physical books library).
Heck, maybe the web site was created by the library staff themselves...

New Tobin Paradigm

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by New Tobin Paradigm » 2021-07-28, 15:52

Huh?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by Moonchild » 2021-07-28, 19:07

library as in a physical library, Tobin. You know, a place that has and lends out books?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by New Tobin Paradigm » 2021-07-28, 20:48

Books... made with paper?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by Moonchild » 2021-07-28, 21:26

Yes, and real ink! Sometimes even pictures you can't just copy at will!
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by New Tobin Paradigm » 2021-07-28, 21:27

Pfft.. nonsense.

User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 13
Joined: 2019-12-26, 13:32

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by BenUpsakin » 2021-07-29, 07:32

Sorry for not having made that clear. It's a library's website I'm having these problems with - the library of the city of Lyon in France. I can no longer access their catalog.

User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 13
Joined: 2019-12-26, 13:32

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by BenUpsakin » 2021-11-26, 10:33

Dear all,

I had the same problem with Seamonkey. But I have just solved it by spoofing the User Agent.

about:config

New string

general.useragent.override

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

I wonder if the way to spoof the user agent is the same in Pale Moon? (actually I use MyPal but I consider it and pale moon are twins)

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2017-12-14, 12:59

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by gepus » 2021-11-26, 14:30

BenUpsakin wrote:
2021-11-26, 10:33
I wonder if the way to spoof the user agent is the same in Pale Moon?
No need to spoof the user agent. The site seems to work so far. Tested with Pale Moon 29.4.2.1, something you could have done before posting.

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by coffeebreak » 2021-11-26, 18:20

The site loaded here as well, though quite slowly, it took at least a full minute.
Got same result with both Compat and Native UA modes.
Error console showed nothing.

BenUpsakin wrote:
2021-11-26, 10:33
the user agent
For info (since it seems entirely unnecessary for this site):
1. Read the release notes (archived) for Pale Moon v28.17.0 (2020-12-18) that describe changes to how that's done.

2. More importantly - Why spoof globally when you're trying to affect just ONE domain?
UA spoofing can be site-specific:
general.useragent.override.somedomain.com
your string

BenUpsakin wrote:
2021-11-26, 10:33
(actually I use MyPal but I consider it and pale moon are twins)
YOU might think like that, but the developers of this project don't.
MyPal is not supported on this forum. Please don't seek support for MyPal here in future.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: https://catalogue.bm-lyon.fr/ gives blank page

Unread post by Moonchild » 2021-11-26, 22:55

Please don't waste people's time here by asking for support for a different browser.
Pale Moon and Mypal are not twins. Don't assume they are just because the GUI looks similar.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked