Active
Project:
Date
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2012 at 15:15 UTC
Updated:
20 Feb 2017 at 23:17 UTC
Jump to comment: Most recent
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 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) commentedSame problem, tried debug steps, problem remains…
Comment #3
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 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 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 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 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 commentedworked for me. I only had to activate "date repeat field".
thank you!
Comment #10
paulraj augustin commentedMyself too... Enabling date repeat field module has worked for me. Thanks
Comment #11
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 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 commentedToday I turned on
date_repeatanddate_repeat_fieldas an experiment and decided I didn't need them, so I disabled them, and that triggered this error.How to reproduce:
date_repeatanddate_repeat_fieldmodulesYesdate_repeat_fieldIf you set the field's "Repeating date" field to
Nobefore disablingdate_repeat_field, things will work fine.The error happens in
date_elements.incinside 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
1if you leave the "Repeating date" set toYesbefore 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_fieldfor 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 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.