title: TYPO3 ajax 404 eID not registered
body: <p>I have TYPO3 7.6.18. I trying to configure ajax requests on front end. I need that my ajax request call specific plugin controller and action as I need. I tried different ajaxDispatchers. </p>
  
  <p>Now I get error 404 eID not registered</p>
  
  <p>I include ajaxDispatcher on local_conf.php</p>
  
  <pre><code>$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['Fefiles'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('fefiles').'Classes/Ajax/EidDispatcher.php';
  </code></pre>
  
  <p>EidDispatcher.php </p>
  
  <pre><code>&lt;?
  
  use \TYPO3\CMS\Core\Core\Bootstrap;
  use \TYPO3\CMS\Core\Utility\ArrayUtility;
  use \TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
  use \TYPO3\CMS\Core\Utility\GeneralUtility;
  use \TYPO3\CMS\Frontend\Utility\EidUtility;/**/
  
  /**
   * Gets the Ajax Call Parameters
   */
  $_gp = \TYPO3\CMS\Core\Utility\GeneralUtility::_POST();
  $_gp = \TYPO3\CMS\Extbase\Utility\ArrayUtility::arrayMergeRecursiveOverrule(
      $_gp,
      \TYPO3\CMS\Core\Utility\GeneralUtility::_GET()
  );
  
  $ajax = array();
  $ajax['arguments']  = $_gp;
  $ajax['vendor']     = 'Nng';
  $ajax['extensionName']  = 'Nnfesubmit';
  $ajax['pluginName']     = 'Pi1';
  $ajax['controller']     = 'Eid';
  $ajax['action']     = 'processRequest';
  
  
  
  /**
   * @var $TSFE \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
   */
  global $TYPO3_CONF_VARS;
  
  $TSFE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController', $TYPO3_CONF_VARS, 0, 0);
  $GLOBALS['TSFE'] = $TSFE;
  
  \TYPO3\CMS\Frontend\Utility\EidUtility::initLanguage();
  \TYPO3\CMS\Frontend\Utility\EidUtility::initTCA();
  // Get FE User Information
  $TSFE-&gt;initFEuser();
  $TSFE-&gt;initUserGroups();
  // Important: no Cache for Ajax stuff
  $TSFE-&gt;set_no_cache();
  
  $TSFE-&gt;checkAlternativeIdMethods();
  $TSFE-&gt;determineId();
  $TSFE-&gt;initTemplate();
  $TSFE-&gt;getConfigArray();
  \TYPO3\CMS\Core\Core\Bootstrap::getInstance();
  
  $TSFE-&gt;cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer');
  $TSFE-&gt;settingLanguage();
  $TSFE-&gt;settingLocale();
  
  /**
   * Initialize Backend-User (if logged in)
   */
  $GLOBALS['BE_USER'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\Authentication\BackendUserAuthentication');
  $GLOBALS['BE_USER']-&gt;start();
  
  /**
   * Initialize Database
   */
  $TSFE-&gt;connectToDB();
  
  /**
   * @var $objectManager \TYPO3\CMS\Extbase\Object\ObjectManager
   */
  $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Extbase\Object\ObjectManager');
  
  /**
   * Initialize Extbase bootstap
   */
  $bootstrapConf['extensionName'] = $ajax['extensionName'];
  $bootstrapConf['pluginName']    = $ajax['pluginName'];
  
  $bootstrap = new \TYPO3\CMS\Extbase\Core\Bootstrap();
  $bootstrap-&gt;initialize($bootstrapConf);
  $bootstrap-&gt;cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer');
  
  /**
   * Build the request
   */
  $request = $objectManager-&gt;get('TYPO3\CMS\Extbase\Mvc\Request');
  
  $request-&gt;setControllerVendorName($ajax['vendor']);
  $request-&gt;setcontrollerExtensionName($ajax['extensionName']);
  $request-&gt;setPluginName($ajax['pluginName']);
  $request-&gt;setControllerName($ajax['controller']);
  $request-&gt;setControllerActionName($ajax['action']);
  $request-&gt;setArguments($ajax['arguments']);
  
  
  //$ajaxDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Nng\Nnsubscribe\Controller\EidController');
  //echo $ajaxDispatcher-&gt;processRequestAction();
  
  $response = $objectManager-&gt;get('TYPO3\CMS\Extbase\Mvc\ResponseInterface');
  $dispatcher = $objectManager-&gt;get('TYPO3\CMS\Extbase\Mvc\Dispatcher');
  $dispatcher-&gt;dispatch($request, $response);
  
  echo $response-&gt;getContent();
  
  
  
  
  ?&gt;
  </code></pre>
  
  <p>my js request:</p>
  
  <pre><code>var request = {
              id: 1,
              mvc: {
                  vendor:            'Istar',
                  extensionName:     'Fefiles',
                  pluginName:        'Piphoto',
                  controller:        'Photo',
                  action:            'test'
              },
  
          };
  
          $.ajax({
              type: "POST",
              url: "index.php",
              data: {
                  eID:       'Fefiles',
                  request:   request
              },
              success: function(msg){
                  console.log(msg);
              }
          });
  </code></pre>
  
  <p>I think it can be useful not only for me, but for other users too. People, help me please fix this problem and understand what is this eID. Great thank for advice! </p>