Active
Project:
Smart DB Tools
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
24 Sep 2021 at 07:43 UTC
Updated:
19 Dec 2022 at 21:17 UTC
Jump to comment: Most recent
The application works only when the module is installed & enabled.
Try to execute the php script without smart_db_tools is enabled.
www-data@55f52db3bd41:/app/web$ php modules/contrib/smart_db_tools/scripts/smart-db-tools.php import --database fixture_connection modules/workbench_moderation_migrate/tests/fixtures/wm-drupal7.php
Error: Class "Drupal\smart_db_tools\App\SmartDbToolsApplication" not found in /app/web/modules/contrib/smart_db_tools/scripts/smart-db-tools.php on line 43 #0 {main}
Error: Class "Drupal\smart_db_tools\App\SmartDbToolsApplication" not found in main() (line 43 of /app/web/modules/contrib/smart_db_tools/scripts/smart-db-tools.php).
drush -y en smart_db_tools
www-data@55f52db3bd41:/app/web$ ./vendor/bin/drush -y en smart_db_tools [success] Successfully enabled: smart_db_tools www-data@55f52db3bd41:/app/web$ php modules/contrib/smart_db_tools/scripts/smart-db-tools.php import --database fixture_connection modules/workbench_moderation_migrate/tests/fixtures/wm-drupal7.php Import completed successfully.
Reqister (and write) a new autoloader.
Comments
Comment #2
xurizaemonComment #3
xurizaemon