I’m trying to install data-hub-export-bundle but it’s showing this error.
Could not find a matching version of package pimcore/data-hub-file-export. Check the package spelling, your version constraint and that the package is available in a stability which ma tches your minimum-stability (stable).
Process Manager and Data Hub are both enabled and installed as per the Pimcore documentation.
composer.json
{
"type": "project",
"license": "GPL-3.0-or-later",
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"process-timeout": 0
},
"require": {
"basilicom/pimcore-data-quality-bundle": "^2.2",
"ci-hub/simple-rest-adapter-bundle": "^2.0",
"elements/process-manager-bundle": "^4.0",
"pimcore/customer-management-framework-bundle": "^3.3",
"pimcore/data-hub": "^1.5",
"pimcore/data-importer": "^1.7",
"pimcore/pimcore": "^10.0"
},
"require-dev": {
"codeception/codeception": "^4.1.12"
},
"suggest": {
"pimcore/data-hub": "Universal data interface for GraphQL, CSV and other formats"
},
"autoload": {
"psr-4": {
"App\": "src/",
"Pimcore\Model\DataObject\": "var/classes/DataObject"
}
},
"scripts": {
"post-create-project-cmd": "Pimcore\Composer::postCreateProject",
"post-install-cmd": [
"Pimcore\Composer::postInstall",
"@pimcore-scripts"
],
"post-update-cmd": [
"Pimcore\Composer::postUpdate",
"@pimcore-scripts",
"Pimcore\Composer::executeMigrationsUp",
"@pimcore-scripts"
],
"pimcore-scripts": [
"Pimcore\Composer::clearCache",
"Pimcore\Composer::installAssets"
],
"minimum-stability": "dev",
"prefer-stable": true
}
}
2
Answers
We are experiencing the same issue.
The problem is caused by Pimcore Datahub File Export being an
ENTERPRISE
-only module. You can tell by the badge on its page. It’s not available for the "community" edition of Pimcore.DataHub exporter is a paid module.
If you dislike the idea to pay, feel free to
create an own CLI command https://pimcore.com/docs/pimcore/current/Development_Documentation/Development_Tools_and_Details/Console_CLI.html
You can execute it regularly using MaintenanceTask
https://pimcore.com/docs/pimcore/current/Development_Documentation/Extending_Pimcore/Maintenance_Tasks.html
You can find Maintenance tasks samples in /vendor/pimcore/pimcore/lib/Maintenance/Tasks/*Task.php
https://talk.pimcore.org/t/pimcore-maintenance-task-set-interval/4145
Files export is easily done using FlySystem
https://pimcore.com/docs/pimcore/10.2/Development_Documentation/Installation_and_Upgrade/System_Setup_and_Hosting/File_Storage_Setup.html
Including FTP:
https://github.com/thephpleague/flysystem-bundle/blob/3.x/docs/3-interacting-with-ftp-and-sftp-servers.md