Error Creating Transforms
| Project: | Media API |
| Version: | 5.x-5.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
I have created a derivitave, added a scale, then clicked add again (trying to add a second transform) and recieved a list of errors:
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/html/chris_workspace/chris_realtest1/sites/all/modules/mapi/mapi_derivatives/derivatives.inc on line 526.
warning: array_filter() [function.array-filter]: The first argument should be an array in /var/www/html/chris_workspace/chris_realtest1/sites/all/modules/mapi/mapi_derivatives/derivatives.inc on line 528.
warning: array_unique() [function.array-unique]: The argument should be an array in /var/www/html/chris_workspace/chris_realtest1/sites/all/modules/mapi/mapi_derivatives/derivatives.inc on line 528.
warning: Invalid argument supplied for foreach() in /var/www/html/chris_workspace/chris_realtest1/sites/all/modules/mapi/mapi_derivatives/admin.inc on line 342.
It seems like these errors all stem from what seems to be a test entry in derivatives.inc on line 526:
$new = array_merge($new, mapi_invoke_transforms('test', $transform->name, $transform->settings, $ext));

#1
Please let me know whether this applies to the d6 version. It will be backported to d5 soon.