Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When using Tamper, this message that comes up in watchdog :
Undefined index: in feeds_tamper_load_by_importer() (line 169 of /var/www/html/voya.master/docroot/sites/all/modules/contrib/feeds_tamper/feeds_tamper.inc).
Line 169 :
if (($disabled || empty($i->disabled)) && in_array($i->source, $sources) && function_exists($plugins[$i->plugin_id]['callback'])) {
Narrowed it down to function_exists($plugins[$i->plugin_id]['callback']
When $i->plugin_id = "", there is no ['callback'] element.
Comment | File | Size | Author |
---|---|---|---|
#9 | feeds_tamper_row_error.png | 16.39 KB | FranCarstens |
#7 | feeds-tamper-ui.png | 20.67 KB | ttronslien |
#5 | db-entry.png | 21.06 KB | ttronslien |
#5 | form-state-on-feeds-tamper-save.png | 59.82 KB | ttronslien |
#5 | feeds_tamper-undefined-index-2563405-1.patch | 720 bytes | ttronslien |
Comments
Comment #2
skowyra CreditAttribution: skowyra commentedComment #3
twistor CreditAttribution: twistor as a volunteer commentedWhat is the plugin that doesn't have a callback?
Comment #4
TimelessDomain CreditAttribution: TimelessDomain commentedIt may be https://www.drupal.org/project/feeds_tamper_string2id
Got these 2 errors together
Notice: Undefined index: iconv in feeds_tamper_load_by_importer() (line 169 of /sites/all/modules/feeds_tamper/feeds_tamper.inc).
Warning: trim() expects parameter 1 to be string, array given in feeds_tamper_string2id_resolve_target_callback_via_autocomplete() (line 378 of /sites/all/modules/feeds_tamper_string2id/plugins/string2id.inc).
Comment #5
ttronslien CreditAttribution: ttronslien at Portage CyberTech commentedI do too get this error. Digging further, I get the error on a field that does not have a plugin, at least not in the UI. When I view the db, I see an entry in the feeds_tamper table for the field, but no plugin_id (Images attached.) From what I can remember (and the feed was created today) I never created a tamper for that field, I may have opened the dialogue, but I am pretty sure that I did not save any.
So, the real problem does not start where it appears.
I've created a patch to check if the index exists before it's trying to use it as it solves the problem for now, but I don't think it is the real issue.
Comment #6
ttronslien CreditAttribution: ttronslien at Portage CyberTech commentedComment #7
ttronslien CreditAttribution: ttronslien at Portage CyberTech commentedComment #8
FranCarstens CreditAttribution: FranCarstens commentedThis started showing immediately when I accidently hit "add" before completing the tamper settings. An "ajax" error showed up in the error dialogue. Watchdog has this:
First error:
Now this message shows all the time:
My guess is it's an incomplete tamper that triggers this error.
Comment #9
FranCarstens CreditAttribution: FranCarstens commentedA quick look in the database found the row easy enough. Once I deleted the offending row (missing plugin_id) the error went away.
Comment #10
krystianbuczak CreditAttribution: krystianbuczak commentedConfirm after applying patch from #5 notice disappeared.
Comment #12
twistor CreditAttribution: twistor as a volunteer commentedComment #13
twistor CreditAttribution: twistor as a volunteer commented