Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
aggregator.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2012 at 21:02 UTC
Updated:
26 Nov 2014 at 15:55 UTC
Jump to comment: Most recent
Comments
Comment #1
ParisLiakos commentedDid you try to reload the form and then reimport? i just tried it and works..maybe a custom module interferes?
Comment #2
ParisLiakos commentedComment #3
carchak commentedhi, I've got the same problem. I've tried with reformating the opml files, doesn't work. Got "An illegal choice has been detected. Please contact the site administrator." for each feed.
The error is generated in the form.inc :
function _form_validate(&$elements, &$form_state, $form_id = NULL) {
...
elseif (!isset($options[$elements['#value']])) {
form_error($elements, $t('An illegal choice has been detected. Please contact the site administrator.'));
So it means that $options[$elements['#value'] is not set. But the feed aggregator form is set by default. I don't understand.
Comment #4
ParisLiakos commentedcan you provide the opml file?
Comment #5
carchak commentedThx for reply Paris. In the log file, it seems it's related to the category : Illegal choice 0 in Categorize news items element.
I investigate and will post the answer when fixed.
Comment #6
carchak commentedThe problem seems to be a bug in aggregator with the multiple categories selection during opml import. For now I solved the problem cheking a single category during import, and updating my feeds categories after. To be deeper investigated.
Comment #7
bogdog400 commentedI dug a bit deeper and found that the $form['values'] created by the OPML input routine is inconsistent with the one generated by the regular form.
Here's a debug message from $form['values'] generated by OPML importing:
And here's a regular one that works. Notice how the array attached to category is messed up?
Comment #8
bogdog400 commentedI dug a bit deeper and found that the $form['values'] created by the OPML input routine is inconsistent with the one generated by the regular form.
Here's a debug message from $form['values'] generated by OPML importing:
And here's a regular one that works. Notice how the array attached to category is messed up?
Comment #9
bogdog400 commentedI dug a bit deeper. The change occurs between the last line of aggregator_form_opml_submit which reads:
drupal_form_submit('aggregator_form_feed', $form_state);
And the start of aggregator_form_feed_validate.
Somewhere in the call to drupal_form_submit, the category array is changed as above.