ErrorException Undefined index: 0 - hhvm and composer - php

I'm trying to run:
hhvm $(brew --prefix)/bin/composer.phar
With:
HipHop VM 3.14.3 (rel)
Compiler: 1471660550_N
Repo schema: 90201df99a45497953c42400d58fb97663717b4a
But I get:
Any ideas? Can't really move forward from here. I think it might be similar to: Error installing XHP with composer
Running:
hhvm composer.phar --verbose
I get:
Exception trace:
() at phar://composer.phar/bin/../src/../vendor/symfony/process/Pipes/AbstractPipes.php:140
Composer\Util\ErrorHandler::handle() at phar://composer.phar/bin/../src/../vendor/symfony/process/Pipes/AbstractPipes.php:140
Symfony\Component\Process\Pipes\AbstractPipes->write() at phar://composer.phar/bin/../src/../vendor/symfony/process/Pipes/UnixPipes.php:98
Symfony\Component\Process\Pipes\UnixPipes->readAndWrite() at phar://composer.phar/bin/../src/../vendor/symfony/process/Process.php:1359
Symfony\Component\Process\Process->readPipes() at phar://composer.phar/bin/../src/../vendor/symfony/process/Process.php:1279
Symfony\Component\Process\Process->updateStatus() at phar://composer.phar/bin/../src/../vendor/symfony/process/Process.php:305
Symfony\Component\Process\Process->start() at phar://composer.phar/bin/../src/../vendor/symfony/process/Process.php:201
Symfony\Component\Process\Process->run() at phar://composer.phar/bin/../src/../src/Composer/Util/ProcessExecutor.php:68
Composer\Util\ProcessExecutor->execute() at phar://composer.phar/bin/../src/../src/Composer/Package/Version/VersionGuesser.php:94
Composer\Package\Version\VersionGuesser->guessGitVersion() at phar://composer.phar/bin/../src/../src/Composer/Package/Version/VersionGuesser.php:67
Composer\Package\Version\VersionGuesser->guessVersion() at phar://composer.phar/bin/../src/../src/Composer/Package/Loader/RootPackageLoader.php:76
Composer\Package\Loader\RootPackageLoader->load() at phar://composer.phar/bin/../src/../src/Composer/Factory.php:333
Composer\Factory->createComposer() at phar://composer.phar/bin/../src/../src/Composer/Factory.php:554
Composer\Factory::create() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:318
Composer\Console\Application->getComposer() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:430
Composer\Console\Application->getPluginCommands() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:135
Composer\Console\Application->doRun() at phar://composer.phar/bin/../src/../vendor/symfony/console/Application.php:123
Symfony\Component\Console\Application->run() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:104
Composer\Console\Application->run() at phar://composer.phar/bin/composer:43
include() at /Users/alexpchin/work_wordpress/pad-wordpress/composer.phar:24
Update
If I add a version "version": "1.2.0", to the composer.json file - I get:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Core dumped: Segmentation fault: 11
Stack trace in /tmp/stacktrace.2219.log
[1] 2219 segmentation fault hhvm $(brew --prefix)/bin/composer.phar update
This is the stacktrace:
PHP Stacktrace:
#0 json_decode() called at [phar://composer.phar/bin/../src/../src/Composer/Repository/ComposerRepository.php:556]
#1 Composer\Repository\ComposerRepository->loadProviderListings() called at [phar://composer.phar/bin/../src/../src/Composer/Repository/ComposerRepository.php:289]
#2 Composer\Repository\ComposerRepository->whatProvides() called at [phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/Pool.php:204]
#3 Composer\DependencyResolver\Pool->computeWhatProvides() called at [phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/Pool.php:193]
#4 Composer\DependencyResolver\Pool->whatProvides() called at [phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/RuleSetGenerator.php:168]
#5 Composer\DependencyResolver\RuleSetGenerator->whitelistFromPackage() called at [phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/RuleSetGenerator.php:322]
#6 Composer\DependencyResolver\RuleSetGenerator->getRulesFor() called at [phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/Solver.php:214]
#7 Composer\DependencyResolver\Solver->solve() called at [phar://composer.phar/bin/../src/../src/Composer/Installer.php:461]
#8 Composer\Installer->doInstall() called at [phar://composer.phar/bin/../src/../src/Composer/Installer.php:216]
#9 Composer\Installer->run() called at [phar://composer.phar/bin/../src/../src/Composer/Command/InstallCommand.php:135]
#10 Composer\Command\InstallCommand->execute() called at [phar://composer.phar/bin/../src/../vendor/symfony/console/Command/Command.php:259]
#11 Symfony\Component\Console\Command\Command->run() called at [phar://composer.phar/bin/../src/../vendor/symfony/console/Application.php:844]
#12 Symfony\Component\Console\Application->doRunCommand() called at [phar://composer.phar/bin/../src/../vendor/symfony/console/Application.php:192]
#13 Symfony\Component\Console\Application->doRun() called at [phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:231]
#14 Composer\Console\Application->doRun() called at [phar://composer.phar/bin/../src/../vendor/symfony/console/Application.php:123]
#15 Symfony\Component\Console\Application->run() called at [phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:104]
#16 Composer\Console\Application->run() called at [phar://composer.phar/bin/composer:43]
#17 include() called at [/usr/local/bin/composer.phar:24]

Related

Magento 2.4.4 - Error Class does not exist during setup:di:compile

I am trying to run setup:di:compile on Magento 2.4.4, but I am getting a strange error and have no idea where to look or how to debug this.
Here is the code from the error log:
Proxies code generation... 1/9 [===>------------------------] 11% 1 sec 139.0 MiB Repositories code generation... 1/9 [===>------------------------] 11% 1 sec 139.0 MiBClass "Magento\Framework\DB\DataConverter\SerializedToJson" not found #0 /public_html/vendor/composer/ClassLoader.php(444): include() #1 /public_html/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile() #2 [internal function]: Composer\Autoload\ClassLoader->loadClass() #3 /public_html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists() #4 /public_html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass() #5 /public_html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract() #6 /public_html/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList() #7 /public_html/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation() #8 /public_html/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process() #9 /public_html/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\DiCompileCommand->execute() #10 /public_html/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run() #11 /public_html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand() #12 /public_html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun() #13 /public_html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun() #14 /public_html/bin/magento(23): Symfony\Component\Console\Application->run() #15 {main}
Tried to redeploy static files and so on, but the issue still persists.
Thanks very much for your help!
I have tried:
clearing generated folder
deploying static content
clearing cache
reindexing
What you can simply do is:
Remove the vendor directory and launch the terminal again and execute the command
composer install
to regenerate all the Magento standard codes. You can check your vendor folder to ensure all dependencies are installed and run the compilation command later to load the dependencies.
Please make sure to backup the previous folder as well for safer side.

i have this error when uploading my laravel api to 000webhost Fatal error: Uncaught ReflectionException: Class "config" does not exist

this is the full error
Warning: include(/storage/ssd5/948/18347948/public_html/vendor/composer/../vlucas/phpdotenv/src/Repository/RepositoryBuilder.php): Failed to open stream: No such file or directory in /storage/ssd5/948/18347948/public_html/vendor/composer/ClassLoader.php on line 571
Warning: include(): Failed opening '/storage/ssd5/948/18347948/public_html/vendor/composer/../vlucas/phpdotenv/src/Repository/RepositoryBuilder.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php:/usr/share/pear:/usr/share/php') in /storage/ssd5/948/18347948/public_html/vendor/composer/ClassLoader.php on line 571
Fatal error: Uncaught ReflectionException: Class "config" does not exist in /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:877 Stack trace: #0 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(877): ReflectionClass->__construct() #1 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\Container\Container->build() #2 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\Container\Container->resolve() #3 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\Foundation\Application->resolve() #4 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\Container\Container->make() #5 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1423): Illuminate\Foundation\Application->make() #6 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(469): Illuminate\Container\Container->offsetGet() #7 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(520): Illuminate\Log\LogManager->getDefaultDriver() #8 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(112): Illuminate\Log\LogManager->parseDriver() #9 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(590): Illuminate\Log\LogManager->driver() #10 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(252): Illuminate\Log\LogManager->error() #11 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(415): Illuminate\Foundation\Exceptions\Handler->report() #12 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(113): Illuminate\Foundation\Http\Kernel->reportException() #13 /storage/ssd5/948/18347948/public_html/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #14 {main} Next Illuminate\Contracts\Container\BindingResolutionException: Target class [config] does not exist. in /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:879 Stack trace: #0 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\Container\Container->build() #1 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\Container\Container->resolve() #2 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\Foundation\Application->resolve() #3 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\Container\Container->make() #4 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1423): Illuminate\Foundation\Application->make() #5 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(469): Illuminate\Container\Container->offsetGet() #6 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(520): Illuminate\Log\LogManager->getDefaultDriver() #7 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(112): Illuminate\Log\LogManager->parseDriver() #8 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(590): Illuminate\Log\LogManager->driver() #9 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(252): Illuminate\Log\LogManager->error() #10 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(415): Illuminate\Foundation\Exceptions\Handler->report() #11 /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(113): Illuminate\Foundation\Http\Kernel->reportException() #12 /storage/ssd5/948/18347948/public_html/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #13 {main} thrown in /storage/ssd5/948/18347948/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 879
It tries to reach some files on "public_html/vendor..." and vendor shouldn't be in the public_html under any circumstances.
upload everything from public to public_html
create a folder outside public_html (very important). Let's call it laravel_live.
upload everything from your laravel repository to laravel_live folder.
recreate symbolic links
go to public_html/index.php and update the paths based on your folder structure. In this example, they should be DIR . '/../laravel_live/vendor/...
Can you try "composer dump-autoload" ?
I think that will help you.

Syntax error unexpected '=', expecting variable when upgrading to Magento CE 2.4.3 / php7.4.27 / Composer

Setup:di compile throws and error after upgrade
My environment is ubuntu 18, Magento CE 2.4.3 and the error is as below. Tried deleting the composer.lock, removing the vendor folder, running composer update and composer install. Error persists and compile fails. What else can I try?
1/9 [===>------------------------] 11% < 1 sec 145.0 MiBsyntax error, unexpected '=', expecting variable (T_VARIABLE)#0 /var/www/html/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#2 [internal function]: spl_autoload_call()
#3 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists()
#4 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass()
#5 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract()
#6 /var/www/html/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList()
#7 /var/www/html/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation()
#8 /var/www/html/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process()
#9 /var/www/html/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\DiCompileCommand->execute()
#10 /var/www/html/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#11 /var/www/html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#12 /var/www/html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun()
#13 /var/www/html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun()
#14 /var/www/html/bin/magento(23): Symfony\Component\Console\Application->run()
#15 {main}
Tried forcing php 7.4.27 and php 7.4.21 in my composer.json
name : psr/log
descrip. : Common interface for logging libraries
keywords : log, psr, psr-3
versions : * 1.1.4
type : library
license : MIT License (MIT) (OSI approved)
https://spdx.org/licenses/MIT.html#licenseText
homepage : https://github.com/php-fig/log
source : [git] https://github.com/php-fig/log.git
d49695b909c3b7628b6289db5479a1c204601f11
dist : [zip] https://api.github.com/repos/php
fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11
d49695b909c3b7628b6289db5479a1c204601f11
path : /var/www/html/vendor/psr/log
names : psr/log
support
source : https://github.com/php-fig/log/tree/1.1.4
autoload
psr-4
Psr\Log\ => Psr/Log/
requires
php >=5.3.0
A friend helped me trace the error back to an actual syntax error in
app/code/Mageplaza/LayeredNavigation/Model/Layer/Filter/Price.php on line 156
isLast needs to be $isLast

Laravel & vuejs cpanel share hosting app migration problem

I'm sorry for my English.
Good day, developers,
I need your help, I have an app that I must migrate https://creamedicinaprepagada.com/ It is developed in Laravel + VueJS, at the moment it is hosted in AWS CPANEL, but I must migrate to CPANEL HOSTINGER. I am passing all the files and databases from the AWS CPANEL to CPANEL HOSTINGER, the app i did not develop it and those are the only files I have.
In the first image you can see the public html and in the second what the AppGestorContenido folder contains.
It gives me error 500.
Stack trace:
#0 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(785): Illuminate\Events\EventServiceProvider->Illuminate\Events\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(667): Illuminate\Container\Container->build(Object(Closure))
#2 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(615): Illuminate\Container\Container->resolve('events', Array)
#3 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(767): Illuminate\Container\Container->make('events', Array)
#4 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(1227): Illuminate\Foundation\Application->make('events')
#5 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php(40): Illuminate\Container\Container->offsetGet('events')
#6 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(785): Illuminate\Routing\RoutingServiceProvider->Illuminate\Routing\{closure}(Object(Illuminate\Foundation\Application), Array)
#7 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(667): Illuminate\Container\Container->build(Object(Closure))
#8 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(615): Illuminate\Container\Container->resolve('router', Array)
#9 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(767): Illuminate\Container\Container->make('router', Array)
#10 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(927): Illuminate\Foundation\Application->make('router')
#11 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(855): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#12 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(816): Illuminate\Container\Container->resolveDependencies(Array)
#13 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(667): Illuminate\Container\Container->build('App\\Http\\Kernel')
#14 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(265): Illuminate\Container\Container->resolve('App\\Http\\Kernel', Array, false)
#15 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(785): Illuminate\Container\Container->Illuminate\Container\{closure}(Object(Illuminate\Foundation\Application), Array)
#16 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(667): Illuminate\Container\Container->build(Object(Closure))
#17 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(615): Illuminate\Container\Container->resolve('Illuminate\\Cont...', Array)
#18 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(767): Illuminate\Container\Container->make('Illuminate\\Cont...', Array)
#19 /home/tucachivache/public_html/index.php(55): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#20 {main}
thrown in /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Events/EventServiceProvider.php on line 18
[17-Feb-2021 21:54:27 UTC] PHP Warning: include(/home/tucachivache/public_html/AppGestorContenido/vendor/composer/../laravel/framework/src/Illuminate/Events/Dispatcher.php): failed to open stream: No such file or directory in /home/tucachivache/public_html/AppGestorContenido/vendor/composer/ClassLoader.php on line 444
[17-Feb-2021 21:54:27 UTC] PHP Warning: include(): Failed opening '/home/tucachivache/public_html/AppGestorContenido/vendor/composer/../laravel/framework/src/Illuminate/Events/Dispatcher.php' for inclusion (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/tucachivache/public_html/AppGestorContenido/vendor/composer/ClassLoader.php on line 444
[17-Feb-2021 21:54:27 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Events\Dispatcher' not found in /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Events/EventServiceProvider.php:18
Stack trace:
#0 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(785): Illuminate\Events\EventServiceProvider->Illuminate\Events\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(667): Illuminate\Container\Container->build(Object(Closure))
#2 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Container/Container.php(615): Illuminate\Container\Container->resolve('events', Array)
#3 /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(767): Illuminate\Container\Container->make('events', Array)
#4 /home/tucachivache/public_html/AppGest in /home/tucachivache/public_html/AppGestorContenido/vendor/laravel/framework/src/Illuminate/Events/EventServiceProvider.php on line 18
seems like you are missing the vendor folder from laravel
rm -rf ./vendor
composer install
php artisan migrate
my bee this worked

array_merge(): Argument #2 is not an array after adding class into providers

I am using pbmedia/laravel-ffmpeg as soon as I installed and added the providers and alias, it shows me the following error. This code was simply working on another machine
array_merge(): Argument #2 is not an array
I have tried the following things
Composer update/ and Fresh install
Cleaning the bootstrap/cache/
Checked the config file for laravel-ffmpeg it's there and fine
Publish the config file using the artisan CLI tool: php artisan vendor:publish --provider="Pbmedia\LaravelFFMpeg\FFMpegServiceProvider"
Here is the portion from laravel.log when I tried to run.
[2019-06-19 00:34:40] local.ERROR: ErrorException: array_merge(): Argument #2 is not an array in /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:59
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'array_merge(): ...', '/Users/damanmok...', 59, Array)
#1 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(59): array_merge(Array, 1)
#2 /Users/damanmokha/edetyv2/vendor/pbmedia/laravel-ffmpeg/src/FFMpegServiceProvider.php(25): Illuminate\Support\ServiceProvider->mergeConfigFrom('/Users/damanmok...', 'laravel-ffmpeg')
#3 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(565): Pbmedia\LaravelFFMpeg\FFMpegServiceProvider->register()
#4 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(74): Illuminate\Foundation\Application->register(Object(Pbmedia\LaravelFFMpeg\FFMpegServiceProvider))
#5 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(540): Illuminate\Foundation\ProviderRepository->load(Array)
#6 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\Foundation\Application->registerConfiguredProviders()
#7 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(203): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#8 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(267): Illuminate\Foundation\Application->bootstrapWith(Array)
#9 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(113): Illuminate\Foundation\Console\Kernel->bootstrap()
#10 /Users/damanmokha/edetyv2/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 {main}
if I don't add these providers it works fine, but then I am not able to use ffmpeg without that.
Laravel Version 5.3
pbmedia/laravel-ffmpeg 1.3
php version: 7.1

Categories