Jetpack Scan enqueues incorrect script in some cases, causing 404 errors
Impacted plugin
Jetpack
Quick summary
Jetpack Scan enqueues a script in certain cases which does not exist. This causes 404 errors to occur. This can be reproduced by manually deleting a transient, but it is being triggered in the wild in at least one case.
Steps to reproduce
- On a site with Jetpack Scan active, use the WordPress console to run
delete_transient('jetpack_scan_state'); - Reload the Jetpack dashboard and notice a 404 error to the path
/wp-content/plugins/jetpack/modules/scan/_inc/build/scan/admin-bar-notice.min.js?minify=false&ver=1
A clear and concise description of what you expected to happen.
The non-existent script should never be enqueued.
What actually happened
No response
Impact
Some (< 50%)
Available workarounds?
There is no user impact
Platform (Simple and/or Atomic)
No response
Logs or notes
No response
The script appears to be enqueued here: https://github.com/Automattic/jetpack/blob/trunk/projects/plugins/jetpack/modules/scan/class-admin-bar-notice.php#L108-L120
The bug was most likely introduced in #34072. #35648 should fix things.
reported 7725222-zd-a8c
Support References
This comment is automatically generated. Please do not edit it.
- [ ] 7725222-zen
Another report in the forum: https://wordpress.org/support/topic/jetpack-create-errors-accessing-non-existing-files-ws-iframe-html/