Skip to content

PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) #4590

@arkhalid1986

Description

@arkhalid1986

Hello,

I need URGENT help.

I am trying to install the latest version of Cachet on a Ubuntu 24.04 VPS server.

After running this command composer install --no-dev -o, I am getting below ERROR. Please help me to resolve this issue as soon as possible.

root@status:/var/www/html/cachet/Cachet# composer install --no-dev -o
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 98 installs, 0 updates, 0 removals

  • Downloading kylekatarnls/update-helper (1.2.1)
  • Downloading symfony/polyfill-ctype (v1.28.0)
  • Downloading vlucas/phpdotenv (v2.6.9)
  • Downloading symfony/polyfill-php80 (v1.28.0)
  • Downloading symfony/css-selector (v4.4.44)
  • Downloading tijsverkoyen/css-to-inline-styles (2.2.6)
  • Downloading symfony/polyfill-php72 (v1.28.0)
  • Downloading symfony/var-dumper (v4.4.47)
  • Downloading symfony/routing (v4.4.44)
  • Downloading symfony/process (v4.4.44)
  • Downloading symfony/polyfill-php73 (v1.28.0)
  • Downloading symfony/polyfill-intl-normalizer (v1.28.0)
  • Downloading symfony/polyfill-intl-idn (v1.28.0)
  • Downloading symfony/mime (v4.4.47)
  • Downloading symfony/http-foundation (v4.4.49)
  • Downloading symfony/http-client-contracts (v1.1.13)
  • Downloading symfony/event-dispatcher-contracts (v1.1.13)
  • Downloading symfony/event-dispatcher (v4.4.44)
  • Downloading psr/log (1.1.4)
  • Downloading symfony/debug (v4.4.44)
  • Downloading symfony/error-handler (v4.4.44)
  • Downloading symfony/http-kernel (v4.4.50)
  • Downloading symfony/finder (v4.4.44)
  • Downloading psr/container (1.0.0)
  • Downloading symfony/service-contracts (v1.1.13)
  • Downloading symfony/console (v4.4.49)
  • Downloading symfony/polyfill-iconv (v1.28.0)
  • Downloading doctrine/lexer (1.2.3)
  • Downloading egulias/email-validator (2.1.25)
  • Downloading swiftmailer/swiftmailer (v6.3.0)
  • Downloading ramsey/uuid (3.9.7)
  • Downloading psr/simple-cache (1.0.1)
  • Downloading opis/closure (3.6.3)
  • Downloading symfony/translation-contracts (v1.1.13)
  • Downloading symfony/translation (v4.4.47)
  • Downloading nesbot/carbon (1.39.1)
  • Downloading monolog/monolog (1.27.1)
  • Downloading league/flysystem (1.0.70)
  • Downloading ralouphie/getallheaders (3.0.3)
  • Downloading psr/http-message (1.0.1)
  • Downloading guzzlehttp/psr7 (1.9.1)
  • Downloading guzzlehttp/promises (1.5.3)
  • Downloading guzzlehttp/guzzle (6.5.8)
  • Downloading laravel/slack-notification-channel (v1.0.3)
  • Downloading php-http/promise (1.2.0)
  • Downloading php-http/httplug (v1.1.0)
  • Downloading php-http/guzzle6-adapter (v1.1.1)
  • Downloading psr/http-factory (1.0.2)
  • Downloading zendframework/zend-diactoros (2.2.1)
  • Downloading lcobucci/jwt (3.4.6)
  • Downloading nexmo/client-core (1.8.1)
  • Downloading nexmo/client (1.9.1)
  • Downloading laravel/nexmo-notification-channel (v1.0.1)
  • Downloading erusev/parsedown (1.7.4)
  • Downloading dragonmantank/cron-expression (v2.3.1)
  • Downloading doctrine/inflector (1.4.4)
  • Downloading laravel/framework (v5.7.29)
  • Downloading alt-three/bus (v4.5.0)
  • Downloading alt-three/validator (v4.5.0)
  • Downloading mtdowling/jmespath.php (2.6.1)
  • Downloading aws/aws-crt-php (v1.2.3)
  • Downloading aws/aws-sdk-php (3.278.3)
  • Downloading asm89/stack-cors (1.3.0)
  • Downloading barryvdh/laravel-cors (v0.11.4)
  • Downloading composer/ca-bundle (1.3.7)
  • Downloading bugsnag/bugsnag (v3.29.1)
  • Downloading bugsnag/bugsnag-psr-logger (v1.4.5)
  • Downloading bugsnag/bugsnag-laravel (v2.26.0)
  • Downloading cachethq/badger (v2.0.0)
  • Downloading league/commonmark (1.6.7)
  • Downloading graham-campbell/guzzle-factory (v3.0.4)
  • Downloading cachethq/emoji (v3.0.0)
  • Downloading cachethq/twitter (v3.0.0)
  • Downloading chillerlan/php-traits (1.1.13)
  • Downloading chillerlan/php-qrcode (2.0.8)
  • Downloading doctrine/deprecations (1.1.2)
  • Downloading doctrine/event-manager (1.2.0)
  • Downloading doctrine/cache (1.13.0)
  • Downloading doctrine/dbal (v2.9.3)
  • Downloading fideloper/proxy (4.4.2)
  • Downloading graham-campbell/security-core (v1.0.3)
  • Downloading graham-campbell/security (v6.2.0)
  • Downloading graham-campbell/binput (v6.2.0)
  • Downloading graham-campbell/exceptions (v11.3.0)
  • Downloading graham-campbell/markdown (v11.2.1)
  • Downloading jakub-onderka/php-console-color (v0.2)
  • Downloading jenssegers/date (v3.5.0)
  • Downloading nikic/php-parser (v4.17.1)
  • Downloading jakub-onderka/php-console-highlighter (v0.4)
  • Downloading dnoegel/php-xdg-base-dir (v0.1.1)
  • Downloading psy/psysh (v0.9.12)
  • Downloading laravel/tinker (v1.0.10)
  • Downloading mccool/laravel-auto-presenter (7.7.0)
  • Downloading paragonie/constant_time_encoding (v2.6.3)
  • Downloading pragmarx/google2fa (v5.0.0)
  • Downloading predis/predis (v1.1.10)
  • Downloading twig/twig (v2.15.5)
  • Installing kylekatarnls/update-helper (1.2.1): Extracting archive
  • Installing symfony/polyfill-ctype (v1.28.0): Extracting archive
  • Installing vlucas/phpdotenv (v2.6.9): Extracting archive
  • Installing symfony/polyfill-php80 (v1.28.0): Extracting archive
  • Installing symfony/css-selector (v4.4.44): Extracting archive
  • Installing tijsverkoyen/css-to-inline-styles (2.2.6): Extracting archive
  • Installing symfony/polyfill-php72 (v1.28.0): Extracting archive
  • Installing symfony/var-dumper (v4.4.47): Extracting archive
  • Installing symfony/routing (v4.4.44): Extracting archive
  • Installing symfony/process (v4.4.44): Extracting archive
  • Installing symfony/polyfill-php73 (v1.28.0): Extracting archive
  • Installing symfony/polyfill-intl-normalizer (v1.28.0): Extracting archive
  • Installing symfony/polyfill-intl-idn (v1.28.0): Extracting archive
  • Installing symfony/mime (v4.4.47): Extracting archive
  • Installing symfony/http-foundation (v4.4.49): Extracting archive
  • Installing symfony/http-client-contracts (v1.1.13): Extracting archive
  • Installing symfony/event-dispatcher-contracts (v1.1.13): Extracting archive
  • Installing symfony/event-dispatcher (v4.4.44): Extracting archive
  • Installing psr/log (1.1.4): Extracting archive
  • Installing symfony/debug (v4.4.44): Extracting archive
  • Installing symfony/error-handler (v4.4.44): Extracting archive
  • Installing symfony/http-kernel (v4.4.50): Extracting archive
  • Installing symfony/finder (v4.4.44): Extracting archive
  • Installing psr/container (1.0.0): Extracting archive
  • Installing symfony/service-contracts (v1.1.13): Extracting archive
  • Installing symfony/console (v4.4.49): Extracting archive
  • Installing symfony/polyfill-iconv (v1.28.0): Extracting archive
  • Installing doctrine/lexer (1.2.3): Extracting archive
  • Installing egulias/email-validator (2.1.25): Extracting archive
  • Installing swiftmailer/swiftmailer (v6.3.0): Extracting archive
  • Installing ramsey/uuid (3.9.7): Extracting archive
  • Installing psr/simple-cache (1.0.1): Extracting archive
  • Installing opis/closure (3.6.3): Extracting archive
  • Installing symfony/translation-contracts (v1.1.13): Extracting archive
  • Installing symfony/translation (v4.4.47): Extracting archive
  • Installing nesbot/carbon (1.39.1): Extracting archive
  • Installing monolog/monolog (1.27.1): Extracting archive
  • Installing league/flysystem (1.0.70): Extracting archive
  • Installing ralouphie/getallheaders (3.0.3): Extracting archive
  • Installing psr/http-message (1.0.1): Extracting archive
  • Installing guzzlehttp/psr7 (1.9.1): Extracting archive
  • Installing guzzlehttp/promises (1.5.3): Extracting archive
  • Installing guzzlehttp/guzzle (6.5.8): Extracting archive
  • Installing laravel/slack-notification-channel (v1.0.3): Extracting archive
  • Installing php-http/promise (1.2.0): Extracting archive
  • Installing php-http/httplug (v1.1.0): Extracting archive
  • Installing php-http/guzzle6-adapter (v1.1.1): Extracting archive
  • Installing psr/http-factory (1.0.2): Extracting archive
  • Installing zendframework/zend-diactoros (2.2.1): Extracting archive
  • Installing lcobucci/jwt (3.4.6): Extracting archive
  • Installing nexmo/client-core (1.8.1): Extracting archive
  • Installing nexmo/client (1.9.1): Extracting archive
  • Installing laravel/nexmo-notification-channel (v1.0.1): Extracting archive
  • Installing erusev/parsedown (1.7.4): Extracting archive
  • Installing dragonmantank/cron-expression (v2.3.1): Extracting archive
  • Installing doctrine/inflector (1.4.4): Extracting archive
  • Installing laravel/framework (v5.7.29): Extracting archive
  • Installing alt-three/bus (v4.5.0): Extracting archive
  • Installing alt-three/validator (v4.5.0): Extracting archive
  • Installing mtdowling/jmespath.php (2.6.1): Extracting archive
  • Installing aws/aws-crt-php (v1.2.3): Extracting archive
  • Installing aws/aws-sdk-php (3.278.3): Extracting archive
  • Installing asm89/stack-cors (1.3.0): Extracting archive
  • Installing barryvdh/laravel-cors (v0.11.4): Extracting archive
  • Installing composer/ca-bundle (1.3.7): Extracting archive
  • Installing bugsnag/bugsnag (v3.29.1): Extracting archive
  • Installing bugsnag/bugsnag-psr-logger (v1.4.5): Extracting archive
  • Installing bugsnag/bugsnag-laravel (v2.26.0): Extracting archive
  • Installing cachethq/badger (v2.0.0): Extracting archive
  • Installing league/commonmark (1.6.7): Extracting archive
  • Installing graham-campbell/guzzle-factory (v3.0.4): Extracting archive
  • Installing cachethq/emoji (v3.0.0): Extracting archive
  • Installing cachethq/twitter (v3.0.0): Extracting archive
  • Installing chillerlan/php-traits (1.1.13): Extracting archive
  • Installing chillerlan/php-qrcode (2.0.8): Extracting archive
  • Installing doctrine/deprecations (1.1.2): Extracting archive
  • Installing doctrine/event-manager (1.2.0): Extracting archive
  • Installing doctrine/cache (1.13.0): Extracting archive
  • Installing doctrine/dbal (v2.9.3): Extracting archive
  • Installing fideloper/proxy (4.4.2): Extracting archive
  • Installing graham-campbell/security-core (v1.0.3): Extracting archive
  • Installing graham-campbell/security (v6.2.0): Extracting archive
  • Installing graham-campbell/binput (v6.2.0): Extracting archive
  • Installing graham-campbell/exceptions (v11.3.0): Extracting archive
  • Installing graham-campbell/markdown (v11.2.1): Extracting archive
  • Installing jakub-onderka/php-console-color (v0.2): Extracting archive
  • Installing jenssegers/date (v3.5.0): Extracting archive
  • Installing nikic/php-parser (v4.17.1): Extracting archive
  • Installing jakub-onderka/php-console-highlighter (v0.4): Extracting archive
  • Installing dnoegel/php-xdg-base-dir (v0.1.1): Extracting archive
  • Installing psy/psysh (v0.9.12): Extracting archive
  • Installing laravel/tinker (v1.0.10): Extracting archive
  • Installing mccool/laravel-auto-presenter (7.7.0): Extracting archive
  • Installing symfony/polyfill-php56 (v1.20.0)
  • Installing paragonie/constant_time_encoding (v2.6.3): Extracting archive
  • Installing pragmarx/google2fa (v5.0.0): Extracting archive
  • Installing predis/predis (v1.1.10): Extracting archive
  • Installing twig/twig (v2.15.5): Extracting archive
    Package alt-three/bus is abandoned, you should avoid using it. No replacement was suggested.
    Package alt-three/validator is abandoned, you should avoid using it. No replacement was suggested.
    Package barryvdh/laravel-cors is abandoned, you should avoid using it. No replacement was suggested.
    Package chillerlan/php-traits is abandoned, you should avoid using it. No replacement was suggested.
    Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
    Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
    Package laravel/nexmo-notification-channel is abandoned, you should avoid using it. Use laravel/vonage-notification-channel instead.
    Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
    Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
    Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead.
    Package alt-three/testbench is abandoned, you should avoid using it. No replacement was suggested.
    Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
    Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    Generating optimized autoload files
    Carbon 1 is deprecated, see how to migrate to Carbon 2.
    https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.

Illuminate\Foundation\ComposerScripts::postAutoloadDump
Deprecation Notice: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:1209
Deprecation Notice: Return type of Illuminate\Container\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:1220
Deprecation Notice: Return type of Illuminate\Container\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:1232
Deprecation Notice: Return type of Illuminate\Container\Container::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:1245
@php artisan package:discover
PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1911
Stack trace:
#0 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Support/Collection.php(42): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/html/cachet/Cachet/vendor/composer/ClassLoader.php(576): include('...')
#2 /var/www/html/cachet/Cachet/vendor/composer/ClassLoader.php(427): Composer\Autoload{closure}()
#3 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Support/helpers.php(422): Composer\Autoload\ClassLoader->loadClass()
#4 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(123): collect()
#5 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(97): Illuminate\Foundation\PackageManifest->build()
#6 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(80): Illuminate\Foundation\PackageManifest->getManifest()
#7 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#8 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(211): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap()
#9 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(297): Illuminate\Foundation\Application->bootstrapWith()
#10 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(120): Illuminate\Foundation\Console\Kernel->bootstrap()
#11 /var/www/html/cachet/Cachet/artisan(33): Illuminate\Foundation\Console\Kernel->handle()
#12 {main} in /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Support/Collection.php on line 42
PHP Fatal error: Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:838
Stack trace:
#0 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(838): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(806): Illuminate\Container\Container->resolveDependencies()
#2 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(658): Illuminate\Container\Container->build()
#3 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(609): Illuminate\Container\Container->resolve()
#4 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(759): Illuminate\Container\Container->make()
#5 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(264): Illuminate\Foundation\Application->make()
#6 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): Illuminate\Container\Container->Illuminate\Container{closure}()
#7 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(658): Illuminate\Container\Container->build()
#8 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(609): Illuminate\Container\Container->resolve()
#9 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(759): Illuminate\Container\Container->make()
#10 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(159): Illuminate\Foundation\Application->make()
#11 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(101): Illuminate\Foundation\Bootstrap\HandleExceptions->getExceptionHandler()
#12 /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(87): Illuminate\Foundation\Bootstrap\HandleExceptions->renderForConsole()
#13 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
#14 {main}
thrown in /var/www/html/cachet/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 838
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions