- 🇮🇳India nikhil_110
I also faced the same problem so I added
if (!str_starts_with($filepath, $dir) && !empty($filepath)) {
in locale_js_translate function in local.module file at line number 528.check !empty($filepath) value
After added this, it work again.
- 🇪🇸Spain rzb Barcelona
I faced the same problem after deploying to production, and could not reproduce in any other environment, even copying the production DB to local env.
I guess the solution mentioned by @nikhil_110 only masks the root cause of the problem, but it is safe to protect the website from 500 errors in the case there is no js path to read.
Here is a little patch to apply it. - 🇵🇱Poland lordzik
Got this WSOD today after upgrade from Drupal 10.3.10 to Drupal 10.4.1
Thanks for the patch!
Can we commit this change?