socioboard / Socioboard-5.0

Socioboard is world's first and open source Social Technology Enabler. Socioboard Core is our flagship product.
http://www.socioboard.org
Other
1.12k stars 361 forks source link

Error with socioboard-web-php while updating the composer with Key generate. #411

Open Bloomclicks opened 1 year ago

Bloomclicks commented 1 year ago

Please, I am new to this program, can anyone help? I have been getting this error message while running composer install & php artisan key generate in socioboard-web-php while updating the composer with Key generate.

socioboard-web-php$ Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

Illuminate\Contracts\Container\BindingResolutionException

Target class [CommandMakeCommand] does not exist.

at vendor/laravel/framework/src/Illuminate/Container/Container.php:879 875▕ 876▕ try { 877▕ $reflector = new ReflectionClass($concrete); 878▕ } catch (ReflectionException $e) { ➜ 879▕ throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e); 880▕ } 881▕ 882▕ // If the type is not instantiable, the developer is attempting to resolve 883▕ // an abstract type such as an Interface or Abstract Class and there is

  +13 vendor frames

14 artisan:37 Illuminate\Foundation\Console\Kernel::handle() Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

sureshbabu1995 commented 1 year ago

Hi @Bloomclicks

Can you check the composer version and the PHP version you're running with and can you run the commands individually (composer install and once it is done, then run the php artisan key generate)

Please share the details of versions and I'll try to give you a solution to it.

Bloomclicks commented 1 year ago

Thank you @sureshbabu1995, PHP 8.2.3 (cli) and Composer version 2.5.1 are installed on my VPS.

However, when I tried the above instructions below are the results.

Nothing to install, update or remove Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

Illuminate\Contracts\Container\BindingResolutionException

Target class [CommandMakeCommand] does not exist.

at vendor/laravel/framework/src/Illuminate/Container/Container.php:879 875▕ 876▕ try { 877▕ $reflector = new ReflectionClass($concrete); 878▕ } catch (ReflectionException $e) { ➜ 879▕ throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e); 880▕ } 881▕ 882▕ // If the type is not instantiable, the developer is attempting to resolve 883▕ // an abstract type such as an Interface or Abstract Class and there is

  +13 vendor frames

14 artisan:35 Illuminate\Foundation\Console\Kernel::handle() Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

From the above, is there anything missing that I will need to do, so I can get sorted?