Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Suhasini_R's avatar

Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception

Hello, I am new to Laravel.

I am trying to install composer with command composer install but I have been having this error with composer dump-autoload also.

I am unable to install any packages. Following suggestions on stackoverflow, I even updated composer by running composer global update. I have no clue what's happening. Please help.

composer install

Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Package operations: 17 installs, 0 updates, 0 removals

  • Installing symfony/psr-http-message-bridge (v2.1.4): Extracting archive
  • Installing ringcentral/psr7 (1.3.0): Extracting archive
  • Installing react/event-loop (v1.4.0): Extracting archive
  • Installing evenement/evenement (v3.0.1): Extracting archive
  • Installing react/stream (v1.3.0): Extracting archive
  • Installing react/promise (v2.10.0): Extracting archive
  • Installing react/cache (v1.2.0): Extracting archive
  • Installing react/dns (v1.11.0): Extracting archive
  • Installing react/socket (v1.13.0): Extracting archive
  • Installing fig/http-message-util (1.1.5): Extracting archive
  • Installing react/http (v1.9.0): Extracting archive
  • Installing paragonie/random_compat (v9.99.100): Extracting archive
  • Installing paragonie/sodium_compat (v1.20.0): Extracting archive
  • Installing pusher/pusher-php-server (7.2.3): Extracting archive
  • Installing ratchet/rfc6455 (v0.3.1): Extracting archive
  • Installing cboden/ratchet (v0.4.4): Extracting archive
  • Installing beyondcode/laravel-websockets (1.14.0): Extracting archive Generating optimized autoload files Class App\Http\Controllers\ReportController located in ./app/Http/Controllers/ReportControllerold.php does not comply with psr-4 autoloading standard. Skipping. Class App\Http\Controllers\HomeController located in ./app/Http/Controllers/HomeController1.php does not comply with psr-4 autoloading standard. Skipping. Class App\Http\Controllers\CreatecampaignController located in ./app/Http/Controllers/CreatecampaignController_old.php does not comply with psr-4 autoloading standard. Skipping.

Illuminate\Foundation\ComposerScripts::postAutoloadDump Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception

In autoload_real.php line 41:

require(/vendor/composer/../paragonie/sodium_compat/autoload.php): failed to open stream: No such file or d irectory

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]

0 likes
11 replies
vincent15000's avatar

Which Laravel version ?

Have you checked the PHP version ?

Have you upgraded composer to the last version ?

Suhasini_R's avatar

when i run php artisan --version to find the Laravel version, this error occured

php artisan --version PHP Warning: require(/var/www/html/test-app/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/obd_call_neron/artisan on line 18 PHP Stack trace: PHP 1. {main}() /var/www/html/test-app/artisan:0 PHP Fatal error: require(): Failed opening required '/var/www/html/test-app/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/test-app/artisan on line 18 PHP Stack trace: PHP 1. {main}() /var/www/html/test-app/artisan:0

my php version is 7.4.33 and my composer version is 2.5.8

1 like
vincent15000's avatar

@Suhasini_R Failed opening required '/var/www/html/test-app/vendor/autoload.php'

You have no autoload.php file.

Are you sure you have installed Laravel ?

Snapey's avatar

i don't see any laravel components being installed ?

1 like
Suhasini_R's avatar

sorry, I am new to Laravel, I downloaded one Laravel application and want to run that application on my server, I have installed PHP version 7.4.33 and Composer version 2.5.8. so what do I have to do next to run that Laravel application

1 like
Suhasini_R's avatar

It's an Ip pbx application ( To Generate an outbound call )

1 like

Please or to participate in this conversation.