Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
after enabling webform, cannot reach the structure/webform UI
getting alert :The website encountered an unexpected error. Please try again later.
log:Uncaught PHP Exception Exception: "Only local files should be passed to _locale_parse_js_file()."
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI need more information so that I can replicate this issue...
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
ChrisSnyderI am receiving the same issue. I hope I can add a little more information.
* I had an existing web form that I had created with Webform 5.0.0-beta4
* I updated from 5.0.0-beta4 to 5.0.0-beta5
* When editing the existing web form I get the error:
I have not tested this with the latest dev version or with a clean install.
Comment #5
ChrisSnyderTo add to this issue, It looks like Drupal is having a hard time loading
https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.21.0/codemirror.js
. This might be because it is an external resource and may not be loaded properly?Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedWe need to document the steps required to reproduce this issue. I suspect that the locale.module is being enabled.
What version of Drupal are you using?
An immediate work-around is to install all the needed libraries using drush (@see /admin/help/webform#libraries)
Comment #7
ChrisSnyderI am using Drupal 8.2.6
Comment #8
ChrisSnyderMy apologies. I am having difficulties reproducing the issue on a fresh installation of webform. Installing the libraries locally, using
drush webform-libraries-download
, does provide a resolution and allows me to edit the webforms.Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@chrissnyder I think the patch in #1803330: Add file_exists() to _locale_parse_js_file() to prevent PHP warning might fix the issue.
Any chance, could you break your site by uninstalling the libraries and testing the patch.
Comment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedChanging to 'Major' since there is a work-around and a patch.
Comment #11
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented#1803330: Add file_exists() to _locale_parse_js_file() to prevent PHP warning will address this issue and there are two workarounds, apply the recommended patch or install all the required webform libraries.
Comment #12
agoradesign CreditAttribution: agoradesign commentedfyi, this problem is most likely solved by #2872343: CDN delivered libraries are not properly marked as external