Jump to:
| Project: | NodeReferrer |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
Hi,
This happens everytime I hit submit on a node.
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home.10.8/lefermen/www/sites/default/modules/nodereferrer/nodereferrer.module on line 137.
* warning: array_values() [function.array-values]: The argument should be an array in /home.10.8/lefermen/www/sites/default/modules/nodereferrer/nodereferrer.module on line 137.
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home.10.8/lefermen/www/sites/default/modules/nodereferrer/nodereferrer.module on line 138.
* warning: array_values() [function.array-values]: The argument should be an array in /home.10.8/lefermen/www/sites/default/modules/nodereferrer/nodereferrer.module on line 138.
Thx
Ben
Comments
#1
please give the solution.......
#2
Are you still having this issue? Have you tried resubmitting the field form with some values selected for field and node type? are boxes check for field and node type?
aka... how the heck is your field configured. thanks for the lack of info... If you want a helpful answer share some details about how your site is set up.
#3
I deleted the module. This was my solution.
#4
Same error for me.
Every first time i go to a view page with content type containing nodereferrer field. (node referrer field not show in view)
The second time, error disappear.
Any hint for me?
#5
I could confirm the bug and should add that additionally the nodereffer field does not appear in he created/edit forms of the nodes. Drupal 5.14/CCK 5.x-1.x-dev(2008-Dec-05). Will be happy to provide more details if needed
#6
I also had this issue but on lines 133 and 134. (using 6.x dev, CCK3 6.x dev)
It would only crop up after a full page refresh, and appeared when going to a views page which used a content type containg a node_referrer field.
it stemmed from the node_referrer field not referencing any content types or fields (a configuration error on my part), so for that type during $op='load' in nodereferrer_field, the $field['referrer_types'] and $field['referrer_fields'] were null for that particular content type and causing these errors.
My solution was to just remove that field from my content type as it was no longer needed.
#7
A similar problem occurred in my case with block update. If I set an ALT of an image to a space, it wasn't empty but it wasn't a an array either. The solution was that I've changed the filter to array_filter(array($theValueInside)). It might help but don't forget to backup the original code and mark it properly.