Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jul 3, 2022 · 2 comments

Comments

@televators
Copy link

televators commented Jul 3, 2022

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.

@televators televators changed the title jQuery script hash doesn't match on php.net/manual/add-note.php, so no jQuery on the page and can't preview note. 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. Jul 3, 2022
@cmb69
Copy link
Member

cmb69 commented Jul 3, 2022

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
Copy link
Member

cmb69 commented Aug 25, 2022

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

@cmb69 cmb69 transferred this issue from php/doc-en Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants