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.
When I go to edit a node that has a repeating date option, I get the WSOD. The error it is throwing is
Fatal error: Call to undefined function date_repeat_after_build() in /[blocked]/includes/form.inc on line 1787
Forgive me if this has already been addressed. I looked through the queue, but didn't see this specific error.
Thank you!
Comments
Comment #1
arlinsandbulte CreditAttribution: arlinsandbulte commentedI cannot reproduce this issue.
Created a repeating date on a node. Edited the node. No Problems.
Please, follow the debug steps here: http://drupal.org/node/755312
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedSame problem, tried debug steps, problem remains…
Comment #3
brandy.brown CreditAttribution: brandy.brown commentedYes the problem still persists. I now see that it is throwing that error on the node/add page as well.
Comment #4
arlinsandbulte CreditAttribution: arlinsandbulte commentedAs I said, I could not reproduce the problem.
We need instructions on how to reproduce the problem, preferably starting from a clean Drupal install.
Until the issue can be reproduced, there is nothing we can do.
Comment #5
brandy.brown CreditAttribution: brandy.brown commentedOK. I didn't have the repeat field option enabled under modules. I enabled it, created a new field. On the first try it doesn't save the data in that field and then it redirects to the same node/edit form. Consequently, I now am receiving this error
Fatal error: Call to undefined function element_validate_integer_positive() in includes/form.inc on line 1336
Which I see a closed ticket for...
I'll keep investigating.
Comment #6
KarenS CreditAttribution: KarenS commentedIf you are seeing "undefined function element_validate_integer_positive()" you are using an outdated version of core. Get core current and things should work fine.
Comment #7
ironkiat CreditAttribution: ironkiat commentedI encountered this problem too, so what I did was activate all the relevant date repeat api and repeat field module, the error is gone after that.
See Screenshot
Comment #8
fleepp CreditAttribution: fleepp commentedworked for me. I only had to activate "date repeat field".
thank you!
Comment #10
Paulraj Augustin CreditAttribution: Paulraj Augustin commentedMyself too... Enabling date repeat field module has worked for me. Thanks
Comment #11
Breakerandi CreditAttribution: Breakerandi commentedSorry, but this is not real fixed. Activating the module if you don't need it is always not a good solution due to performance reasons..
Comment #12
bisonbleu CreditAttribution: bisonbleu commentedReopening - I'm also running into this issue. Currently, the only way out is to leave date_repeat and date_repeat_field enabled. Disabling these modules leads to a fatal error.
Comment #13
Lord Pachelbel CreditAttribution: Lord Pachelbel commentedToday I turned on
date_repeat
anddate_repeat_field
as an experiment and decided I didn't need them, so I disabled them, and that triggered this error.How to reproduce:
date_repeat
anddate_repeat_field
modulesYes
date_repeat_field
If you set the field's "Repeating date" field to
No
before disablingdate_repeat_field
, things will work fine.The error happens in
date_elements.inc
inside thedate_field_widget_form()
function:Even after uninstalling the modules, not just disabling them, that if-statement was evaluating true because not only is $field['settings']['repeat'] not empty, it contains the value
1
if you leave the "Repeating date" set toYes
before disabling the module. So this quick patch didn't work:But this one did:
I'm not sure if it's desirable or not to leave data from the module hanging around after it's uninstalled, but that's basically why this error is happening.
Incidentally, enabling
date_repeat_field
for the first time causes this one-time error:Notice: Undefined index: repeat in date_repeat_field_bundles() (line 189 of /sites/all/modules/date/date_repeat_field/date_repeat_field.module).
which is like the inverse of this issue.Comment #14
Lord Pachelbel CreditAttribution: Lord Pachelbel commentedWhen I cloned the Git repo for the dev version of this module, the exact code I came up with was already there. So this issue has already been fixed at some point.