Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found #18

Open
scavin opened this issue Aug 20, 2021 · 0 comments
Open

Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found #18

scavin opened this issue Aug 20, 2021 · 0 comments

Comments

@scavin
Copy link

scavin commented Aug 20, 2021

How can I solve this problem? Thanks a lot.

-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> PHP app detected
-----> Bootstrapping...
-----> Installing platform packages...
       - php (7.4.22)
       - composer (1.10.22)
       - apache (2.4.48)
       - nginx (1.20.1)
-----> Installing dependencies...
       Composer version 1.10.22 2021-04-27 13:10:45
       Loading composer repositories with package information
       Installing dependencies from lock file
       Package operations: 71 installs, 0 updates, 0 removals
         - Installing ocramius/package-versions (1.4.2): Downloading (100%)
         - Installing symfony/flex (v1.6.2): Downloading (100%)
       
       Prefetching 69 packages 
         - Downloading (100%)
       
         - Installing doctrine/lexer (1.0.2): Loading from cache
         - Installing doctrine/annotations (v1.8.0): Loading from cache
         - Installing doctrine/reflection (1.2.1): Loading from cache
         - Installing doctrine/event-manager (1.1.0): Loading from cache
         - Installing doctrine/collections (1.6.4): Loading from cache
         - Installing doctrine/cache (1.10.0): Loading from cache
         - Installing doctrine/persistence (1.3.7): Loading from cache
         - Installing doctrine/inflector (1.3.1): Loading from cache
         - Installing doctrine/common (2.12.0): Loading from cache
         - Installing doctrine/instantiator (1.3.0): Loading from cache
         - Installing psr/container (1.0.0): Loading from cache
         - Installing symfony/service-contracts (v1.1.8): Loading from cache
         - Installing symfony/stopwatch (v4.4.7): Loading from cache
         - Installing symfony/polyfill-php73 (v1.18.1): Loading from cache
         - Installing symfony/polyfill-mbstring (v1.18.1): Loading from cache
         - Installing symfony/console (v4.4.7): Loading from cache
         - Installing zendframework/zend-eventmanager (3.2.1): Loading from cache
         - Installing zendframework/zend-code (3.4.1): Loading from cache
         - Installing ocramius/proxy-manager (2.1.1): Loading from cache
         - Installing doctrine/dbal (v2.9.3): Loading from cache
         - Installing doctrine/migrations (2.2.1): Loading from cache
         - Installing ralouphie/getallheaders (3.0.3): Loading from cache
         - Installing psr/http-message (1.0.1): Loading from cache
         - Installing guzzlehttp/psr7 (1.6.1): Loading from cache
         - Installing guzzlehttp/promises (v1.3.1): Loading from cache
         - Installing guzzlehttp/guzzle (6.5.2): Loading from cache
         - Installing j7mbo/twitter-api-php (1.0.6): Loading from cache
         - Installing jdorn/sql-formatter (v1.2.17): Loading from cache
         - Installing sabre/uri (1.2.1): Loading from cache
         - Installing symfony/polyfill-php80 (v1.18.1): Loading from cache
         - Installing symfony/polyfill-ctype (v1.18.1): Loading from cache
         - Installing symfony/polyfill-php72 (v1.18.1): Loading from cache
         - Installing symfony/polyfill-intl-normalizer (v1.18.1): Loading from cache
         - Installing symfony/polyfill-intl-idn (v1.18.1): Loading from cache
         - Installing symfony/mime (v4.4.13): Loading from cache
         - Installing symfony/http-foundation (v4.4.13): Loading from cache
         - Installing symfony/event-dispatcher-contracts (v1.1.9): Loading from cache
         - Installing symfony/event-dispatcher (v4.4.13): Loading from cache
         - Installing symfony/var-dumper (v4.4.13): Loading from cache
         - Installing psr/log (1.1.3): Loading from cache
         - Installing symfony/debug (v4.4.13): Loading from cache
         - Installing symfony/error-handler (v4.4.13): Loading from cache
         - Installing symfony/http-kernel (v4.4.13): Loading from cache
         - Installing symfony/routing (v4.4.7): Loading from cache
         - Installing symfony/finder (v4.4.7): Loading from cache
         - Installing symfony/filesystem (v4.4.7): Loading from cache
         - Installing symfony/dependency-injection (v4.4.7): Loading from cache
         - Installing symfony/config (v4.4.7): Loading from cache
         - Installing symfony/var-exporter (v4.4.7): Loading from cache
         - Installing psr/cache (1.0.1): Loading from cache
         - Installing symfony/cache-contracts (v1.1.7): Loading from cache
         - Installing symfony/cache (v4.4.7): Loading from cache
         - Installing symfony/framework-bundle (v4.4.7): Loading from cache
         - Installing sensio/framework-extra-bundle (v5.5.3): Loading from cache
         - Installing symfony/doctrine-bridge (v4.4.7): Loading from cache
         - Installing nikic/php-parser (v4.3.0): Loading from cache
         - Installing symfony/maker-bundle (v1.14.6): Loading from cache
         - Installing doctrine/orm (v2.7.2): Loading from cache
         - Installing doctrine/doctrine-bundle (2.0.7): Loading from cache
         - Installing doctrine/doctrine-migrations-bundle (2.1.2): Loading from cache
         - Installing symfony/orm-pack (v1.0.8): Loading from cache
         - Installing symfony/translation-contracts (v1.1.7): Loading from cache
         - Installing symfony/translation (v4.4.7): Loading from cache
         - Installing twig/twig (v2.12.5): Loading from cache
         - Installing symfony/twig-bridge (v4.4.7): Loading from cache
         - Installing symfony/twig-bundle (v4.4.7): Loading from cache
         - Installing symfony/yaml (v4.4.7): Loading from cache
         - Installing palanik/wrapi (v0.1.7): Loading from cache
         - Installing wrapi/slack (v0.1.6): Loading from cache
       Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
       Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
       Generating optimized autoload files
       Deprecation Notice: Class wrapi\NestedDeco located in ./vendor/palanik/wrapi/src/nester.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///tmp/build_1c3eac5d/.heroku/php/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
       33 packages you are using are looking for funding.
       Use the `composer fund` command to find out more!
       ocramius/package-versions:  Generating version class...
       ocramius/package-versions: ...done generating version class
       Executing script cache:clear [OK]
       Executing script assets:install --symlink --relative public [OK]
       
-----> Running 'composer compile'...
       > php bin/console doctrine:migrations:migrate
       [error] Error thrown while running command "doctrine:migrations:migrate". Message: "Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found"
       
       [critical] Uncaught Error: Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found
       
       
       In Version20180206232943.php line 11:
                                                                                      
         Attempted to load class "AbstractMigration" from namespace "Doctrine\DBAL\M  
         igrations".                                                                  
         Did you forget a "use" statement for "Doctrine\Migrations\AbstractMigration  
         "?                                                                           
                                                                                      
       
       doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration [CONFIGURATION]] [--db-configuration [DB-CONFIGURATION]] [--db DB] [--em EM] [--shard SHARD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<version>]
       
       Script php bin/console doctrine:migrations:migrate handling the compile event returned with error code 255
 !     ERROR: Compile step failed!
 !     
 !     Installation of dependencies was successful, but the custom
 !     script you're using to perform actions after 'composer install'
 !     failed with the error above.
 !     
 !     Check that the 'compile' command(s) in the 'scripts' section of
 !     your 'composer.json' are working properly and not running into
 !     timeouts or memory limits.
 !     
 !     For more information on the 'composer compile' step, refer to
 !     https://devcenter.heroku.com/articles/php-support
 !     Push rejected, failed to compile PHP app.
 !     Push failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant