Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array_reduce() expects parameter 2 to be a valid callback #195

Closed
nilshoerrmann opened this issue Jun 16, 2012 · 1 comment
Closed

array_reduce() expects parameter 2 to be a valid callback #195

nilshoerrmann opened this issue Jun 16, 2012 · 1 comment

Comments

@nilshoerrmann
Copy link
Contributor

Using Members (integration) on Symphony 2.3 throws the following error when creating a new member;

Symphony Warning: array_reduce() expects parameter 2 to be a valid callback, function '__reduceType' not found or invalid function name

An error occurred in /Users/nilshoerrmann/Sites/Webseiten/durchgedreht24.de/symphony/lib/toolkit/events/class.event.section.php around line 115

110
111                 foreach($errors as $field_id => $message){
112                     $field = FieldManager::fetch($field_id);
113
114                     if(is_array($fields[$field->get('element_name')])) {
115                         $type = array_reduce($fields[$field->get('element_name')], '__reduceType');
116                     }
117                     else {
118                         $type = ($fields[$field->get('element_name')] == '') ? 'missing' : 'invalid';
119                     }
@nilshoerrmann
Copy link
Contributor Author

This seems more to be a core error – moving the topic there, closing this issue.
See #1371.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant