heimrichhannot / contao-exporter-bundle

A backend module for exporting any contao entity to file.
1 stars 2 forks source link

Exporter class for exporter configuration 2 not found #2

Closed Misco closed 5 years ago

Misco commented 5 years ago

when click export error shows up: Exporter class for exporter configuration 2 not found

in the configuration i can select only one Exportclass: ExelExporter_05d3ef3 witch path should this file be? i use this extension in my own extension in src (not vendor) its a contao 4.6.14

thank you for this great extension

koertho commented 5 years ago

Sorry, what do you mean with "i use this extension in my own extension in src (not vendor)"? You must install this bundle with composer. Then you need to do the steps written in the readme.

Misco commented 5 years ago

sorry to confuse you. your extension is installed in vendor via contao manager. my extension is in src. I try to find out why the Exportclass can not be found. my idea was its because of changes in Contao 4.6 or because my extension is in src,

thank you

Misco commented 5 years ago

I removed the custom error to get more informations: HeimrichHannot\ContaoExporterBundle\Action\ExportAction::export() must be an instance of HeimrichHannot\ContaoExporterBundle\Model\ExporterModel, null given, called in /www/htdocs/w01192bf/project/vendor/heimrichhannot/contao-exporter-bundle/src/Action/BackendExportAction.php on line 76

Any suggestion? Thanks

koertho commented 5 years ago

@Misco I found a bug related to changes in class caching in symfony 4. I fixed it in version 0.7. Hope this will also fix your problem. Please report back!

Misco commented 5 years ago

@koertho there is an error while updating:

Loading composer repositories with package information Installing dependencies from lock file Package operations: 2 installs, 16 updates, 0 removals

In DefinitionErrorExceptionPass.php line 54:

Cannot autowire service "huh.utils.container": argument "$scopeMatcher" of
method "HeimrichHannot\UtilsBundle\Container\ContainerUtil::__construct()"
references class "Contao\CoreBundle\Routing\ScopeMatcher" but no such servi
ce exists. You should maybe alias this class to the existing "contao.routin
g.scope_matcher" service.

Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception

In ScriptHandler.php line 87:

An error occurred while executing the "contao:install-web-dir" command:
In DefinitionErrorExceptionPass.php line 54:

Cannot autowire service "huh.utils.container": argument "$scopeMatcher" o  

f
method "HeimrichHannot\UtilsBundle\Container\ContainerUtil::__construct()
"
references class "Contao\CoreBundle\Routing\ScopeMatcher" but no such ser
vi
ce exists. You should maybe alias this class to the existing "contao.rout
in
g.scope_matcher" service.

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...

Process terminated with exit code 1

Result: General error


The background task has stopped unexpectedly

Thanks for your effort

koertho commented 5 years ago

@Misco That is an problem with the service container configuration of Contao 4.6. 4.7 does fix this problem.

Misco commented 5 years ago

ah ok, thank you i will try

Misco commented 5 years ago

It´s working now. Thanks