Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2010 at 08:37 UTC
Updated:
7 Aug 2013 at 11:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
spelcheck commentedDitto, running
Views 6.x-3.x-dev (2010-04-09) w/ views_theme_classes.patch
NodeReferrer 6.x-1.x-dev (2010-Mar-29)
I've got a feeling it's a conflict with NodeReferrer, but let's see what yaz085 says.
Comment #2
dawehnerOn which kind of fields, do you see this behavior.
Its fair from your side, if you provide a way to reproduce problems :)
Comment #3
spelcheck commentedAfter some testing, I'm only seeing it with NodeReferrer module and only when setting the 'Argument' specifically for NodeReferrer. I'm pretty sure it's just a problem with that module but until we hear back from yaz, I guess we're just stalled. Thanks for the quick response!
Comment #4
dawehnerDo you have the argument default taxonomy: tid?
Comment #5
dagmarI'm pretty sure that this is a duplicate of this #754294: foreach warning produced in views_plugin_argument_default_taxonomy_tid.inc @elizzle, can you try the patch for this issue?
Comment #6
dagmarwoops... multipost
Comment #7
spelcheck commentedI can't test it right this moment, but I can tell you that when I dsm'd $form immediately after
$form += array('#default_value' => array());$form['#default_value'] was NULL for a checkbox that is taxonomy related. I'm optimistic that's the patch that will do it :D
Comment #8
spelcheck commentedThat did take care of the error message, but NodeReferrer still isn't saving the status of the checkboxes at the bottom of Argument setup. I'll check in with the author and see what I can find. Thank you for the help, this is definitely a dupe of 754294.
Comment #9
dawehner#754294: foreach warning produced in views_plugin_argument_default_taxonomy_tid.inc
Than create an issue on nodereferer. They would have to fix it in their argument handler.
Comment #10
kenorb commentedNot duplicate, because I'm not using taxonomy plugin and I've the same error.
Related issue: #738530: view warning: array_merge() ... Argument #2 is not an array in ... date_api_filter_handler.inc on line 43
Comment #11
kenorb commentedURL: /admin/build/views/ajax/config-item/calendar/default/argument/date_argument
Comment #12
dagmarViews load taxonomy plugin as a possible option in a radio box, even if you are not using it.
Please update to the last dev of views 3 and reopen if this bug still persists.
Comment #13
kenorb commentedMore detailed backtrace in attachment.
Comment #14
kenorb commentedSORRY for duplicate!
Comment #15
kenorb commentedThanks, I'll try.
The difference is that I don't have merge() warning mentioned there.
Comment #16
kenorb commentedComment #17
kenorb commentedComment #18
kenorb commentedSorry, I'm confused now:)
Duplicate.
Comment #19
bstrange commentedI am not sure if this is helpful or not however, this issue came up when I searched the exact error I am getting. When I attempt to edit a product in Ubercart I get the exact error that the original poster does.
I do not believe the error occurred prior to updating Views, filefield, and CCK yesterday. The versions I am running of each are as follows:
-Views 6.x-2.11 (yes I realize this isn't the version this issue is in queue for but I was unsure if I should start a seperate issue when the error message is identical)
-CCK 6.x-2.7
-FileField 6.x-3.5
-Ubercart 6.x-2.2 (since the problem occurred with an Ubercart product, I will list the Ubercart version as well).
As I felt I may be addressing this issue in the wrong issue queue, I did some more digging and disabled all addons installed yesterday along with the views/cck/filefield updates, and the issue went away. It turns out, the offending module is:
Ubercart Google Base Integration 6.x-1.x-dev
Disabling the module removes the error. I am still hesitant to post this in this issue queue, and if anything, even the line number in the error were different, I would not; but since it is the exact error message, I thought I'd post it up.
If I shouldn't have posted, I apologize, but you never know if the information you provide might provide an "Ah ha!" moment for someone else. :)
Edit to add: Applied Views patch from http://drupal.org/node/754294 and it did not resolve the issue; so it is very possible that my issue is unrelated. I will leave my post up in case anyone else finds this thread searching for the error message resulting from Ubercart Google Base Integration 6.x-1.x-dev and cross post it in their issue queue.
Comment #20
verbosity commentedI just had this error, its annoying but more a warning than anything else.
The error happens ( as stated above ) when a checkbox / checkboxes entry has not been set. a simple way to avoid this is to include a line that checks if the array you are going to use is not set and set it as an empty array:
EG:
$default_values=array();
once this is done the error wont be triggered.
If you find this in someones module, let them know, or create a patch, its an easy fix.
Comment #21
brian.sanchez commentedI'm not sure if this could help someone, but it helped me,
includes/form.inc
function form_type_checkboxes_value($form, $edit = FALSE) {
if ($edit === FALSE) {
$value = array();
$form += array('#default_value' => array());
if ($form['#default_value']){
foreach ($form['#default_value'] as $key) {
$value[$key] = 1;
}
return $value;
}
}
elseif (!isset($edit)) {
return array();
}
}
the only change is the if ($form['#default_value']){ }
that's it!. the drupal error message is gone.
Best
Brian Sanchez
Comment #22
kenorb commentedFor Search API Views see: #1433720: Invalid argument supplied for foreach() in form_type_checkboxes_value()