Not sure if this is 1 or 2 bugs.
If you create a content type with a date field and set the number of values to 1 and save. Re-edit and set Repeat dates to yes and save. The number of values will appear to be automatically,changed to unlimited.
However creating content with repeating dates does not work.
Error given is:
Warning: implode() [function.implode]: Invalid arguments passed in form_error() (line 1614 of /services3/webpages/k/i/kidsacademy.ca/public/cms/includes/form.inc).
Which I think is error 2. (form error seems to be being called without an $element value)
The error would have been 'Date: this field cannot hold more than 1 values' from line 84 of field.default.inc
If you manually set number of values to unlimited before setting repeat dates, everything works as expected.
Thats as far as i got.
| Comment | File | Size | Author |
|---|---|---|---|
| #27 | Screen Shot 2013-05-30 at 2.01.59 PM.png | 66.09 KB | davidneedham |
| #15 | multiple-values-and-repeat-dates-1391464-15.patch | 421 bytes | ohthehugemanatee |
| #12 | 1391464-12-date-repeat-error.patch | 513 bytes | ohthehugemanatee |
Comments
Comment #1
hejeva commentedGetting same error.
Comment #2
mattrweaver commentedI got this error, too
I only get it with repeating events.
Comment #3
hejeva commentedThis appears to be fixed in if you get Date 7.x-2.0-rc2. So it wasn't a calendar issue but a date issue.
Comment #4
tonyhead commentedI got the same error with lastest Calendar 7.x-3.0-rc1 + Date 7.x-2.1 + Views 7.x-3.2.
Warning: implode() [function.implode]: Invalid arguments passed 在 form_error() (行 1616 在 /home/abc/public_html/abc.com/includes/form.inc).Comment #5
zyexal commentedsame here
Date 7.x-2.2+8-dev
Comment #6
drupalninja99 commentedI am getting the same issue.
Comment #7
mattrweaver commentedI have tried all of the latest versions of the constituent modules. I am still getting this error.
Comment #8
karens commentedUnable to replicate any problem. You need to use the latest dev versions of both Date and Calendar and be sure you are not using any deprecated calendar items. If you've used older version of the calendar delete or revert them (you will have an option to do one or the other), then create a new one using the template.
If there's still a problem I need to you tell me how to create the error from a fresh install, step by step.
Comment #9
rebecca.ellis commentedDid anyone figure this out or submit a new issue? I'm having the same problem and want to follow / figure it out.
Comment #10
mattrweaver commentedIt's not an issue with calendar. I get the same problem with FullCalendar. Must be date module, which I've tried various versions of, with no success.
frak.
Comment #11
azovsky commentedThis is errors in the Date module.
#1.
Warning: implode() [function.implode]: Invalid arguments passed in form_error() (line 1614 of /services3/webpages/k/i/kidsacademy.ca/public/cms/includes/form.inc).For fix this need change in the file date.module, function date_field_widget_error (line 381 / 7.x-2.x-dev 2012-May-12):
Comment #12
ohthehugemanatee commentedThe trivial patch from #11 worked for me. Attaching in patch format for review.
Comment #13
ohthehugemanatee commentedaugh forgot to update status.
@KarenS This issue seems to be reproduced in several threads... probably because it's generic to error processing with repeats. The root error message might explain some of the other threads where people could just rebuild the field and everything would be OK... Anyway I thought this thread would be the best place to attach the patch, since this is where the fix was reported.
Comment #15
ohthehugemanatee commentedBah - wrong root for the patch. Attached an improved one.
Comment #16
ohthehugemanatee commentedComment #17
karens commentedStill no one has told me how to reproduce the problem, except to say "This issue seems to be reproduced in several threads". If the steps to reproduce the problem are on some other issue, I need a link to a specific place where that is described. Without steps to reproduce this will sit here until I happen to stumble across a way to see the problem, which may or may not ever happen.
Comment #18
karens commentedComment #19
drakythe commentedKarenS,
I've now successfully recreated this on both 2.5 and 2.x-dev. Here are the steps I followed.
This process has resulted in the form_error() implode error mentioned in the first post. Since the following code:
lines 377-382 in date.module
Seems to be the hangup I ran it through a debugger and got the following results for $error
I'm not expert on what exactly is going on, but it looks like when the node type is updated to allow for repeating dates, it is not updated to allow more than 1 value correctly, as it should be. I hope this helps.
Comment #20
drakythe commentedSorry for the multi-post but I felt like the issue could use a rename, and I found two other issues that I marked as duplicates because they seem to all be symptoms of this same problem ( #1432928: warning: implode() invalid parameters #1535936: Problem with repeats and FullCalendar )
Comment #21
hejeva commentedRan into this same error again on new site I am building. Basically created an event and made it repeatable.
When creating a new event: I get the invalid argument form_error().
If I apply the patch described above, I get the following error " Date: this field cannot hold more than 1 values."
I looked at the how the date field was setup and the field is set to unlimited values.
Date: 7.x-2.5
Comment #22
drakythe commentedhejeva,
The patch won't fix the error, the root of the problem is a lot different than what it addresses. In order to get rid of that error you need to remove your current date field (just delete it) and then recreate it with all the appropriate options selected at the time you create it. If you edit the field after creation to allow for repeating dates, you will get this error.
Also, please keep the version at the latest -dev release.
Comment #23
mixxmac commentedSetting the Number of Values to Unlimited under Global settings fixed the error for me. Before, I had left the Number of Values as 1, thinking that choosing Repeating Date = Yes was all I needed to do. I thought I needed 1 repeating date, not Unlimited repeating dates.
Not sure if that is the reason for this error, but it seems to be working so far. I'm using version 7.x-2.5 of the date module.
Comment #24
Renee S commentedFresh install, after adding a Date repeating field to an entity, I see this error on entity save. "Unlimited" is set (and indeed greyed out). I'm running 2.6 of Date. Updating to the latest dev seems to have fixed it.
Comment #25
bdupls commentedIf you specify a Stop repeating date On Date: well into advance 2020-01-01 This solves the problem.
I would consider this a bug on the module as the 'it seems to come from the Stop reading After # occurrences field, but there is a way around it until it gets fixed
Comment #26
bellerophons_pegasus commentedI've got the same problem. As soon as I set an event to be repeated more than once, I get:
Warning: implode(): Invalid arguments passed in form_error()I use Calendar 7.x-3.4 and Date 7.x-2.6+2-dev (2012-Sep-30).
Comment #27
davidneedhamThe patch in #15 did not work for me. After applying the patch and clearing my cache, I get a form validation error whenever trying to save a new or existing node with the date field:
Date: this field cannot hold more than 1 values.A screenshot is attached.
Comment #28
bellerophons_pegasus commentedJust tried the workaround of #22. It works!
Thank you!
Comment #29
calebtr commentedI wanted to add that when you get this error, your repeated dates are not saved in the database.
#22 also worked for me. It seemed like I needed to come up with a new machine name for the field, also, even after deleting the original field.
Comment #30
calebtr commentedI was poking around the dev version of the module and couldn't reproduce the problem.
I started with a fresh (dev) D7 installation, installed Date-7.x-2.x-dev, created a field with the limit 1 and no repeating, saved it, and was able to later update it to a repeating date.
The form kept me from changing the repeat status if there as any content in the field.
Is this fixed in dev?
Comment #31
eft commentedThis issue was fixed in 2012 and was included in the release of Date 7.x-2.7 in December 2013. The commit message unfortunately doesn't reference the issue number or symptoms but you can see how KarenS sorted the problem via link to commit below.
http://drupalcode.org/project/date.git/commit/f2222617226951cc911f026429...
Marking as fixed.
Comment #32
cmonnow commentedFor anyone interested, I haven't updated beyond Date 7.x-2.6 yet and have some other heavy hacks that need transferring so for now I applied the "cardinality" patch manually as linked to in #31.
I had to remove the date field and re-create for the error to disappear. It works as expected with 1 Date field set (no need to set unlimited) and using the original field name didn't pose a problem as reported previously.
Comment #33
esmitex commentedI had the following error:
I applied the patch and it causes this error:
Date d'intervention: this field cannot hold more than 1 values.So I set the multivalue settings to "This field can hold more than 1 value".
And it causes this error:
Fatal error: Call to a member function modify() on a non-object in /homepages/45/d444012100/htdocs/smq/sites/all/modules/rules/modules/rules_core.eval.inc on line 174Comment #34
gramoun_kal commentedThis is how it happened to me:
I first created my events with dates without a repeat option. I changed my mind about it, deleted all the content, enabled the "date repeat" module that comes with "date" and edited my previously-repeatless-dates so it would allow for repetion.
On saving my first event, I was served the error message and only the first node was created.
Deleting the date field and re-adding it did fix the problem.