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.
Drupal 7.23
Webform 7.x-4.0-beta1
webform_optionsmarkup-7.x-2.0-alpha1
Installation and enabling of the module resulted in the following error due to pathing and naming issues:
Dropped webform_optionsmarkup folder into /sites/all/modules
Enabled at /admin/modules and received warning errors:
Warning: include_once([path]/staging/sites/all/modules/webform/components/webform_display_optionsmarkup.inc): failed to open stream: No such file or directory in _theme_process_registry() (line 565 of [path]/staging/includes/theme.inc).
Warning: include_once(): Failed opening '[path]/staging/sites/all/modules/webform/components/webform_display_optionsmarkup.inc' for inclusion (include_path='.:') in _theme_process_registry() (line 565 of [path]/staging/includes/theme.inc).
The patch below correctly fixes this bug, I have reviewed and checked this. Please let me know if there are any problems.
-Samson Tse
Comment | File | Size | Author |
---|---|---|---|
#6 | 2156321-enable_html_webform_markup.patch | 575 bytes | nevergone |
Comments
Comment #1
TimeBandit CreditAttribution: TimeBandit commentedComment #2
shawn_smiley CreditAttribution: shawn_smiley commentedIt sounds like you installed the module correctly. I wonder if there has been another API change in the Webform 4.x module. I'll have to take a look and get back to you on this one.
Comment #3
mr.alinaki CreditAttribution: mr.alinaki commentedHave the same issue
Comment #4
charlie-s CreditAttribution: charlie-s commentedI get this anytime I build a custom webform component. It's happened for probably 12 months now. Basically, when the caches clear and Webform tried to load all component includes, it looks inside of its own components folder instead of the contrib module's component folder.
I'll spend some time on this now and see if I can resolve.
Comment #5
charlie-s CreditAttribution: charlie-s commentedThat wasn't so bad. The
_webform_theme_optionsmarkup()
function incomponents/webform_optionsmarkup.inc
had 2 issues:webform_display_optionsmarkup.inc
notwebform_display_optionsmarkup.inc.
Patch provided.
Comment #6
nevergone CreditAttribution: nevergone commentedCorrected patch.
Comment #7
shawn_smiley CreditAttribution: shawn_smiley commentedThanks @csdco and @nevergone, I'll try to review the patch and get it committed in the next few days.
Comment #8
SamsonTse CreditAttribution: SamsonTse commentedThe patch below correctly fixes this bug, I have reviewed and checked this. Please let me know if there are any problems.
diff --git a/components/webform_optionsmarkup.inc b/components/webform_optionsmarkup.inc
index 09188f2..1868352 100644
--- a/components/webform_optionsmarkup.inc
+++ b/components/webform_optionsmarkup.inc
@@ -40,7 +40,8 @@ function _webform_theme_optionsmarkup() {
return array(
'webform_display_optionsmarkup' => array(
'render element' => 'element',
- 'file' => 'components/webform_display_optionsmarkup.inc',
+ 'file' => 'components/webform_optionsmarkup.inc',
+ 'path' => drupal_get_path('module', 'webform_optionsmarkup'),
),
);
}
-Samson Tse
Comment #9
gge CreditAttribution: gge commented#8 works with Webform 7.x-4.0-rc3. No more warnings.
Thanks.
Comment #10
anouConfirmed. #8 does the job pretty well. Thanks. (Webform Options Markup 7.x-2.0-alpha1 + Webform 7.x-4.4)
Comment #11
archimedes CreditAttribution: archimedes commentedDid this ever get committed?
Comment #12
shawn_smiley CreditAttribution: shawn_smiley at Achieve Internet commentedCommitted 827f4a10c5761cdb697e944b3b0d5910dba4d27c