Error with custom_field_modify_data hook
Hi
I have a problem with low search and importer. If I try to import a xml feed I get the following error message:
A PHP Error was encountered
Severity: Warning
Message: call_user_func_array() expects parameter 2 to be array, null given
Filename: api/Api_channel_fields.php
Line Number: 397
After setting enabled from y to n in exp_extensions for the following entry, the problem is solved (excerpt from database):
Low_search_ext custom_field_modify_data custom_field_modify_data
Do you have any idea why it is happening?
Replies
Low 14 Jul 2014 10:48
Not sure. What other extensions use the custom_field_modify_data hook, if any?
Pibble 14 Jul 2014 11:47
There are no other extensions using this hook.
Low 14 Jul 2014 13:13
I reckon this is more an Importer issue. If it calls the custom_field_modify_data hook (which is apparently does, because my add-on is triggered), the second argument should be an array. It looks like it's passing a null value.
Have you asked Solspace about this?
Pibble 14 Jul 2014 13:17
I am in contact with them because the import does not work. I'll forward your suggestion.
Pibble 16 Jul 2014 06:59
Hi Low,
did you here anything from a support member of solspace about this problem? I sent them the url to this discussion.
Regards
Low 16 Jul 2014 07:00
No, I haven't heard from them.