Open dmitryd opened 5 years ago
I solved it for our project by making a silent content object exception handler, which activates when solr is indexing. It will simply ignore all exceptions from content elements while indexing. Thus data will be incomplete in index but it is ok for our case because those plugins are filter forms (not useful for search results).
Describe the bug
Imagine that you have something like this in your indexing queue:
This should create content from irre records in the indexed record.
Now if irre records contain an Extbase plugin, indexing will always fail with an exception: "Default controller for the plugin cannot be determined. Please check configurePlugin in ext_localconf.php". Fetching the page via FE context works.
The problem is that Extbase tries to find the configuration for the Extbase controller and cannot because this indexing will run in the Backend context and Extbase will use BackendConfigurationManager, which expects
module.tx_
, notplugin.tx_
. So it will not be able to index any plugin this way.I do not think this is solvable in any way on the solr level. Rather this special case (with the error message) should go to the documentation. It cost me 1.5h of time to find the reason why the error happened. It would be good if others could find at least a description why it cannot be done.