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 try and 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: 8
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
Board Warrior
Board Warrior
Posts: 1828
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
Astronaut
Astronaut
Posts: 641
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:

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10670
Joined: 2012-10-09, 19:37
Location: Sector 001

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.
He tasks me. He tasks me and I shall have him.
I'll chase him round the moons of Nibia and round the Antares maelstrom and round perdition's flames before I give him up.. Prepare to alter course.

Image
binaryoutcast.compaypal.me/mattatobinthereisonlyxul.org

User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 8
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: 8
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: 31305
Joined: 2011-08-28, 17:27
Location: Tranås, 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.
"Remember, only you can prevent Earth's destruction by spelling Pale Moon with a space." -- Athenian200
Image

User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 8
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,

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10670
Joined: 2012-10-09, 19:37
Location: Sector 001

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?
He tasks me. He tasks me and I shall have him.
I'll chase him round the moons of Nibia and round the Antares maelstrom and round perdition's flames before I give him up.. Prepare to alter course.

Image
binaryoutcast.compaypal.me/mattatobinthereisonlyxul.org

BenFenner
Lunatic
Lunatic
Posts: 314
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...

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10670
Joined: 2012-10-09, 19:37
Location: Sector 001

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

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

Huh?
He tasks me. He tasks me and I shall have him.
I'll chase him round the moons of Nibia and round the Antares maelstrom and round perdition's flames before I give him up.. Prepare to alter course.

Image
binaryoutcast.compaypal.me/mattatobinthereisonlyxul.org

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 31305
Joined: 2011-08-28, 17:27
Location: Tranås, 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?
"Remember, only you can prevent Earth's destruction by spelling Pale Moon with a space." -- Athenian200
Image

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10670
Joined: 2012-10-09, 19:37
Location: Sector 001

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

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

Books... made with paper?
He tasks me. He tasks me and I shall have him.
I'll chase him round the moons of Nibia and round the Antares maelstrom and round perdition's flames before I give him up.. Prepare to alter course.

Image
binaryoutcast.compaypal.me/mattatobinthereisonlyxul.org

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 31305
Joined: 2011-08-28, 17:27
Location: Tranås, 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!
"Remember, only you can prevent Earth's destruction by spelling Pale Moon with a space." -- Athenian200
Image

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10670
Joined: 2012-10-09, 19:37
Location: Sector 001

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

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

Pfft.. nonsense.
He tasks me. He tasks me and I shall have him.
I'll chase him round the moons of Nibia and round the Antares maelstrom and round perdition's flames before I give him up.. Prepare to alter course.

Image
binaryoutcast.compaypal.me/mattatobinthereisonlyxul.org

User avatar
BenUpsakin
Moongazer
Moongazer
Posts: 8
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: 8
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
Astronaut
Astronaut
Posts: 641
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: 2907
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: 31305
Joined: 2011-08-28, 17:27
Location: Tranås, 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.
"Remember, only you can prevent Earth's destruction by spelling Pale Moon with a space." -- Athenian200
Image

Locked