I've been using Mailhandler for many months without issue. I am trying to add some new mailboxes and configure mailhandler source nodes for them and noticed that the Import tab is not showing on any of my mailhandler source nodes. Not sure where they went. They used to be there. The existing mailhandlers still work (i.e. I can send email to a configured mailbox and nodes are created). The "test connection" option for the mailhandler mailbox works fine. Also, if I make a new mailhandler source, linked to an existing feeds importer, the mailhandler source works if I send email to the mailbox when triggered by cron. Just can't do a manual import. Any place you can suggest I look to figure out how to get the Import tab to show again? Don't really want to uninstall/reinstall/reconfigure all the mailhandler stuff.
Thanks for any ideas
-- hanksterr7

Comments

nigelwhite’s picture

I may have found the solution to this -

Go to admin/structure/feeds/edit/mailhandler_nodes/settings which is the detault importer.

Change the settings under "basic settings" to "mailhandler source". Change the Fetcher to "mailhandler fetcher". I also had to give a human readable name to the default importer before it would let me save it.

Then go back to your mailhandler-source nodes and the options you need should now be showing up.

Hope it works for you.

hanksterr7’s picture

Interesting. Not sure why there would be a default importer with that url (with "edit" between feeds and mailhandler_nodes). I tried your suggestion and the steps matched what was in my system, but it did not cause the Import tab to show when I open a mailhandler source node. I did rename the Mailhandler Feed Importer as well as make clones of it that create different types of nodes. Not sure if that is of any relevance.
I've now deleted the "default" importer that showed up when I followed your steps. If I now re-open admin/structure/feeds/edit/mailhandler_nodes/settings, that blank importer comes back. Still no re-appearance of the Import tab.

hanksterr7’s picture

Ok, found a fix! (but don't exactly understand what the issue was).

Seems that "Import" is being stepped on on the menu structure somewhere.

I edited feeds.module, hook_menu(), changing import to import1 in just one place:


  $items['node/%node/import1'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('feeds_import_tab_form', 1),
    'access callback' => 'feeds_access',
    'access arguments' => array('import', 1),
    'file' => 'feeds.pages.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );

and that did the trick
Clear caches to see the change

Not sure what is stepping on the Import tab, or why this was needed.

Ideas?

hanksterr7’s picture

I believe limesurvey_sync module is the offender that is stepping on the Import menu.

In feeds.module there is:

function feeds_menu() {
  $items = array();
...
  $items['node/%node/import'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('feeds_import_tab_form', 1),
    'access callback' => 'feeds_access',
    'access arguments' => array('import', 1),
    'file' => 'feeds.pages.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );

and in ls_survey.module there is

function ls_survey_menu() {
  $items = array();
...
  $items['node/%node/import'] = array(
    'title' => 'Synchronization',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('ls_survey_import', 1),
    'access callback' => 'ls_survey_import_access',
    'access arguments' => array(1),
    'type' => MENU_LOCAL_TASK,
    'weight' => 15,
    'file' => 'ls_survey.import.inc',
  );
Dane Powell’s picture

Title: Import tab doesn't show for mailhandler source nodes » Limesurvey Sync incompatibility
Project: Mailhandler » Feeds
Version: 7.x-2.5 » 7.x-2.x-dev
Component: Mailhandler » Code

Sounds like this is an incompatibility between Limesurvey Sync and Feeds. Thanks for doing the investigation.