php / web-php

The www.php.net site
http://www.php.net
Other
843 stars 536 forks source link

jQuery script hash doesn't match on php.net/manual/add-note.php, so no jQuery. Previewing note wipes query params for the note's destination page. #687

Open televators opened 2 years ago

televators commented 2 years ago

Was writing out a note to add to the array_filter() page and when I hit the Preview button under the text field, it just refreshes the page and loses all query params. Checked console and looks like the jQuery script tag's sha384 hash doesn't match and so jQuery isn't loaded on the page.

EDIT: Was playing around more and realized Preview feature doesn't work unless you do the math captcha thing, which I assumed was only needed to submit. So, I can preview my note, but the page still refreshes with all query params missing. Not sure if the jQuery thing and the loss of query params thing is related.

Here's the console output:

None of the “sha384” hashes in the integrity attribute match the content of the subresource. add-note.php
Uncaught TypeError: can't access property "isArray", c is undefined
    <anonymous> https://www.php.net/cached.php?t=1421837618&f=/js/ext/typeahead.min.js:1
    <anonymous> https://www.php.net/cached.php?t=1421837618&f=/js/ext/typeahead.min.js:1
cached.php:1:383
Uncaught ReferenceError: jQuery is not defined
    <anonymous> https://www.php.net/cached.php?t=1653918602&f=/js/search.js:403
cached.php:403:1
Uncaught ReferenceError: jQuery is not defined
    <anonymous> https://www.php.net/cached.php?t=1637324403&f=/js/common.js:18
    <anonymous> https://www.php.net/cached.php?t=1637324403&f=/js/common.js:18
cached.php:18:147
    <anonymous> https://www.php.net/cached.php?t=1637324403&f=/js/common.js:18
    <anonymous> https://www.php.net/cached.php?t=1637324403&f=/js/common.js:18

I'm on Firefox 102.0b3 (64-bit) on Windows 10.

cmb69 commented 2 years ago

According to https://www.srihash.org/, the hash is correct, and I have no issues with Firefox 102.0 on Windows 10. Is that maybe an issue with the beta version you're using?

Anyhow, after pressing preview, the query params are gone for me too. Not sure if there is an actual problem, but apparently it is unrelated to jQuery.

cmb69 commented 2 years ago

Anyway, this is not a documentation issue, but rather related to web-php.