Script error (500 HTTP) - ArrayAccess: Uncaught ErrorException - php

[2022-11-09 21:50:54] laravel.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 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:1443
Stack trace:
#0 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(13): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/composer/ClassLoader.php(480): include('/home/u63148116...')
#2 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()
#3 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Collections/helpers.php(15): Composer\Autoload\ClassLoader->loadClass()
#4 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): collect()
#5 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config()
#6 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#7 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap()
#8 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(152): Illuminate\Foundation\Application->bootstrapWith()
#9 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(136): Illuminate\Foundation\Http\Kernel->bootstrap()
#10 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#11 /home/u631481162/domains/believeconnected.com/public_html/hospital/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle()
#12 {main} {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): 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 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:1443
Stack trace:
#0 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(13): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
#1 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/composer/ClassLoader.php(480): include('/home/u63148116...')
#2 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/composer/ClassLoader.php(346): Composer\\Autoload\\includeFile()
#3 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Collections/helpers.php(15): Composer\\Autoload\\ClassLoader->loadClass()
#4 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): collect()
#5 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\\Foundation\\PackageManifest->config()
#6 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\\Foundation\\PackageManifest->aliases()
#7 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\\Foundation\\Bootstrap\\RegisterFacades->bootstrap()
#8 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(152): Illuminate\\Foundation\\Application->bootstrapWith()
#9 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(136): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#10 /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#11 /home/u631481162/domains/believeconnected.com/public_html/hospital/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle()
#12 {main} at /home/u631481162/domains/believeconnected.com/public_html/hospital/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:13)
[stacktrace]
#0 {main}
"}
After starting a script installation, I did everything according to the same documentation, videos released by the company, but it has an error. The php is in the superior version of the script and until then ok, because it will be working. But it keeps giving this unfortunate error... and the script doesn't work for some reason. If you want some part of the code just say that I add it to the document.

Related

Laravel 9 upgrade from 8 led to PHP Fatal error: Uncaught RuntimeException: A facade root has not been set

The full error:
PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in /home/project/project/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:334
The project is working fine on localhost. I have already tried deleting the vendor directory and running composer update then composer artisan config:cache followed by composer artisan config:clear. These haven't changed anything. I mention this because it is a solution for a similar error after someone updated to Laravel 8.
The project is running on cPanel is that is relevant and there was also an error prior to this stating Composer requires PHP 8.1.0 which has occured a few times before and been fixed with composer install --ignore-platform-reqs.
Before the update everything was working fine on this server as well so I can't even rationalize what I may have messed up. Please find the complete error log generated at the root of the public folder on page load below:
[14-Jul-2022 16:11:43 UTC] PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in /home/project/project/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:334
Stack trace:
#0 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(18): Illuminate\Support\Facades\Facade::__callStatic('replaceNamespac...', Array)
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(626): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke()
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(607): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(538): Illuminate\Foundation\Exceptions\Handler->renderHttpException(Object(Symfony\Component\HttpKernel\Exception\HttpException))
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(444): Illuminate\Foundation\Exceptions\Handler->prepareResponse(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\HttpException))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(363): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(Object(Illuminate\Http\Request), Object(ParseError))
#6 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(427): Illuminate\Foundation\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(ParseError))
#7 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Foundation\Http\Kernel->renderException(Object(Illuminate\Http\Request), Object(ParseError))
#8 /home/project/public_html/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#9 {main}
thrown in /home/project/project/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 334
[14-Jul-2022 16:11:44 UTC] PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in /home/project/project/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:334
Stack trace:
#0 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(18): Illuminate\Support\Facades\Facade::__callStatic('replaceNamespac...', Array)
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(626): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke()
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(607): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(538): Illuminate\Foundation\Exceptions\Handler->renderHttpException(Object(Symfony\Component\HttpKernel\Exception\HttpException))
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(444): Illuminate\Foundation\Exceptions\Handler->prepareResponse(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\HttpException))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(363): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(Object(Illuminate\Http\Request), Object(ParseError))
#6 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(427): Illuminate\Foundation\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(ParseError))
#7 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Foundation\Http\Kernel->renderException(Object(Illuminate\Http\Request), Object(ParseError))
#8 /home/project/public_html/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#9 {main}
thrown in /home/project/project/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 334
👇 This is the Laravel log file.
[2022-07-14 18:48:22] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [] is not defined. at /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:207)
[stacktrace]
#0 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(132): Illuminate\\Log\\LogManager->resolve(NULL, NULL)
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(119): Illuminate\\Log\\LogManager->get(NULL)
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(636): Illuminate\\Log\\LogManager->driver()
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(275): Illuminate\\Log\\LogManager->error('syntax error, u...', Array)
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(415): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ParseError))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(113): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ParseError))
#6 /home/project/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#7 {main}
"}
[2022-07-14 18:48:22] laravel.ERROR: syntax error, unexpected token ")" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \")\" at /home/project/project/vendor/symfony/finder/Finder.php:588)
[stacktrace]
#0 /home/project/project/vendor/composer/ClassLoader.php(428): Composer\\Autoload\\includeFile('/home/project/...')
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(88): Composer\\Autoload\\ClassLoader->loadClass('Symfony\\\\Compone...')
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(65): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->getConfigurationFiles(Object(Illuminate\\Foundation\\Application))
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(39): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\\Foundation\\Application), Object(Illuminate\\Config\\Repository))
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(239): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->bootstrap(Object(Illuminate\\Foundation\\Application))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(153): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#6 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(137): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#7 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#8 /home/project/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#9 {main}
"}
[2022-07-14 18:48:22] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [] is not defined. at /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:207)
[stacktrace]
#0 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(132): Illuminate\\Log\\LogManager->resolve(NULL, NULL)
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(119): Illuminate\\Log\\LogManager->get(NULL)
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(636): Illuminate\\Log\\LogManager->driver()
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(275): Illuminate\\Log\\LogManager->error('syntax error, u...', Array)
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(415): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ParseError))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(113): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ParseError))
#6 /home/project/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#7 {main}
"}
[2022-07-14 18:48:22] laravel.ERROR: syntax error, unexpected token ")" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \")\" at /home/project/project/vendor/symfony/finder/Finder.php:588)
[stacktrace]
#0 /home/project/project/vendor/composer/ClassLoader.php(428): Composer\\Autoload\\includeFile('/home/project/...')
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(88): Composer\\Autoload\\ClassLoader->loadClass('Symfony\\\\Compone...')
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(65): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->getConfigurationFiles(Object(Illuminate\\Foundation\\Application))
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(39): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\\Foundation\\Application), Object(Illuminate\\Config\\Repository))
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(239): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->bootstrap(Object(Illuminate\\Foundation\\Application))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(153): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#6 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(137): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#7 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#8 /home/project/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#9 {main}
"}
[2022-07-14 18:48:22] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [] is not defined. at /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:207)
[stacktrace]
#0 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(132): Illuminate\\Log\\LogManager->resolve(NULL, NULL)
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(119): Illuminate\\Log\\LogManager->get(NULL)
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(636): Illuminate\\Log\\LogManager->driver()
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(275): Illuminate\\Log\\LogManager->error('syntax error, u...', Array)
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(415): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ParseError))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(113): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ParseError))
#6 /home/project/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#7 {main}
"}
[2022-07-14 18:48:22] laravel.ERROR: syntax error, unexpected token ")" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \")\" at /home/project/project/vendor/symfony/finder/Finder.php:588)
[stacktrace]
#0 /home/project/project/vendor/composer/ClassLoader.php(428): Composer\\Autoload\\includeFile('/home/project/...')
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(88): Composer\\Autoload\\ClassLoader->loadClass('Symfony\\\\Compone...')
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(65): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->getConfigurationFiles(Object(Illuminate\\Foundation\\Application))
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(39): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\\Foundation\\Application), Object(Illuminate\\Config\\Repository))
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(239): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->bootstrap(Object(Illuminate\\Foundation\\Application))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(153): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#6 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(137): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#7 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#8 /home/project/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#9 {main}
"}
[2022-07-14 18:48:22] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [] is not defined. at /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:207)
[stacktrace]
#0 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(132): Illuminate\\Log\\LogManager->resolve(NULL, NULL)
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(119): Illuminate\\Log\\LogManager->get(NULL)
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(636): Illuminate\\Log\\LogManager->driver()
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(275): Illuminate\\Log\\LogManager->error('syntax error, u...', Array)
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(415): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ParseError))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(113): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(ParseError))
#6 /home/project/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#7 {main}
"}
[2022-07-14 18:48:22] laravel.ERROR: syntax error, unexpected token ")" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \")\" at /home/project/project/vendor/symfony/finder/Finder.php:588)
[stacktrace]
#0 /home/project/project/vendor/composer/ClassLoader.php(428): Composer\\Autoload\\includeFile('/home/project/...')
#1 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(88): Composer\\Autoload\\ClassLoader->loadClass('Symfony\\\\Compone...')
#2 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(65): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->getConfigurationFiles(Object(Illuminate\\Foundation\\Application))
#3 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(39): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\\Foundation\\Application), Object(Illuminate\\Config\\Repository))
#4 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(239): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->bootstrap(Object(Illuminate\\Foundation\\Application))
#5 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(153): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#6 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(137): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#7 /home/project/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#8 /home/project/public_html/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#9 {main}
"}
This is my current app.php file at the moment, it used to be populated A LOT more than this so I don't know where Laravel 9 has moved the associated packages because its working fine on localhost.
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/
$app = new Illuminate\Foundation\Application(
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);
/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
|--------------------------------------------------------------------------
|
| Next, we need to bind some important interfaces into the container so
| we will be able to resolve them when needed. The kernels serve the
| incoming requests to this application from both the web and CLI.
|
*/
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
App\Http\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
);
/*
|--------------------------------------------------------------------------
| Return The Application
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
$app->register(Artesaos\SEOTools\Providers\SEOToolsServiceProvider::class);
return $app;

elgg installation with xampp

I am trying to install elgg 2.3.0 in windows with Apache 2.4.53 and php 8.1.5 and set all instructions this link http://learn.elgg.org/en/stable/intro/install/xampp.html but when i run instalaition page with browser from localhost show me fatal error :
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\lib\input.php on line 290
Fatal error: During inheritance of IteratorAggregate: Uncaught ArgumentCountError: Too few arguments to function _elgg_php_error_handler(), 4 passed in D:\xampp\htdocs\sites\elgg\vendor\symfony\http-foundation\ParameterBag.php on line 19 and exactly 5 expected in D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\lib\elgglib.php:964 Stack trace: #0 D:\xampp\htdocs\sites\elgg\vendor\symfony\http-foundation\ParameterBag.php(19): _elgg_php_error_handler(8192, 'Return type of ...', 'D:\xampp\htdocs...', 298) #1 D:\xampp\htdocs\sites\elgg\vendor\composer\ClassLoader.php(414): include('D:\xampp\htdocs...') #2 D:\xampp\htdocs\sites\elgg\vendor\composer\ClassLoader.php(301): Composer\Autoload\includeFile('D:\xampp\htdocs...') #3 D:\xampp\htdocs\sites\elgg\vendor\symfony\http-foundation\Request.php(240): Composer\Autoload\ClassLoader->loadClass('Symfony\Compone...') #4 D:\xampp\htdocs\sites\elgg\vendor\symfony\http-foundation\Request.php(222): Symfony\Component\HttpFoundation\Request->initialize(Array, Array, Array, Array, Array, Array, NULL) #5 D:\xampp\htdocs\sites\elgg\vendor\symfony\http-foundation\Request.php(1942): Symfony\Component\HttpFoundation\Request->__construct(Array, Array, Array, Array, Array, Array, NULL) #6 D:\xampp\htdocs\sites\elgg\vendor\symfony\http-foundation\Request.php(281): Symfony\Component\HttpFoundation\Request::createRequestFromFactory(Array, Array, Array, Array, Array, Array) #7 [internal function]: Symfony\Component\HttpFoundation\Request::createFromGlobals(Object(Elgg\Di\ServiceProvider)) #8 D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\classes\Elgg\Di\DiContainer.php(68): call_user_func(Array, Object(Elgg\Di\ServiceProvider)) #9 D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\classes\Elgg\Di\DiContainer.php(48): Elgg\Di\DiContainer->build(Array, 'request') #10 D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\classes\Elgg\Http\Input.php(87): Elgg\Di\DiContainer->__get('request') #11 D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\classes\Elgg\I18n\Translator.php(160): Elgg\Http\Input->get('hl') #12 D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\classes\Elgg\I18n\Translator.php(145): Elgg\I18n\Translator->detectLanguage() #13 D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\classes\Elgg\I18n\Translator.php(325): Elgg\I18n\Translator->getCurrentLanguage() #14 D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\classes\ElggInstaller.php(95): Elgg\I18n\Translator->registerTranslations('D:/xampp/htdocs...', true) #15 D:\xampp\htdocs\sites\elgg\vendor\elgg\elgg\engine\classes\Elgg\Application.php(483): ElggInstaller->__construct() #16 D:\xampp\htdocs\sites\elgg\install.php(11): Elgg\Application::install() #17 {main} in D:\xampp\htdocs\sites\elgg\vendor\symfony\http-foundation\ParameterBag.php on line 19
Elgg 2.3.0 doesn't support PHP 8.
Switch on PHP 7.4 or use the latest Elgg version

Unsupported operand types CakePHP

I have a CakePHP project running on other server PHP 5.6 but here this same app is not running on PHP 5.6 / 7.0.
I am using Croogo with CakePHP.
It's showing me debug error like below:
Error: [Error] Unsupported operand types
Stack Trace:
#0 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282): include()
#1 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(201): CakePlugin::_includeFile('/var/www/vhosts...', true)
#2 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(121): CakePlugin::bootstrap('Acl')
#3 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(94): CakePlugin::load('Acl', Array)
#4 /Vendor/croogo/croogo/Extensions/Lib/CroogoPlugin.php(656): CakePlugin::load(Array, Array)
#5 /Vendor/croogo/croogo/Croogo/Config/croogo_bootstrap.php(126): CroogoPlugin::load(Array)
#6 /Vendor/croogo/croogo/Croogo/Config/bootstrap.php(8): require_once('/var/www/vhosts...')
#7 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282): include('/var/www/vhosts...')
#8 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(201): CakePlugin::_includeFile('/var/www/vhosts...', false)
#9 /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(121): CakePlugin::bootstrap('Croogo')
#10 /Config/bootstrap.php(78): CakePlugin::load('Croogo', Array)
#11 /Vendor/cakephp/cakephp/lib/Cake/Core/Configure.php(98): include('/var/www/vhosts...')
#12 /Vendor/cakephp/cakephp/lib/Cake/bootstrap.php(432): Configure::bootstrap(true)
#13 /webroot/index.php(90): include('/var/www/vhosts...')
#14 {main}
It is from my tmp/logs/error.log file
Is there any fix?
Thanks in advance
Try debugging this place: /Vendor/cakephp/cakephp/lib/Cake/Core/CakePlugin.php(282): include() #1. See which file it's trying to include when failing and what's in it.

Laravel - PrettyPageExceptions not working

Everything was working fine until yesterday.
Exceptions were thrown in cool laravel orange/black style format.
But now, I just see a blank page and exceptions are not visible.
When I inspect the call, it shows 500 Internal Server Error.
Here is the stack trace from laravel logs:
[2014-09-16 20:07:32] local.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:148
Stack trace:
#0 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Routing\Router.php(1049): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
#1 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Routing\Router.php(1017): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#2 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Routing\Router.php(996): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#3 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(777): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#4 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(747): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#5 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Session\Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#6 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Cookie\Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#7 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Cookie\Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#8 E:\xampp\htdocs\ingeniouslive\app\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#9 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(643): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#10 E:\xampp\htdocs\ingeniouslive\app\repo\index.php(49): Illuminate\Foundation\Application->run()
#11 {main} [] []
[2014-09-16 20:07:32] local.ERROR: exception 'RuntimeException' with message 'Could not find resource 'views/layouts.html.php' in any resource paths.(searched: E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Handler/../Resources)' in E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Handler\PrettyPageHandler.php:440
Stack trace:
#0 E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Handler\PrettyPageHandler.php(119): Whoops\Handler\PrettyPageHandler->getResource('views/layouts.h...')
#1 E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Run.php(247): Whoops\Handler\PrettyPageHandler->handle(Object(Symfony\Component\HttpKernel\Exception\NotFoundHttpException))
#2 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Exception\WhoopsDisplayer.php(49): Whoops\Run->handleException(Object(Symfony\Component\HttpKernel\Exception\NotFoundHttpException))
#3 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Exception\Handler.php(280): Illuminate\Exception\WhoopsDisplayer->display(Object(Symfony\Component\HttpKernel\Exception\NotFoundHttpException))
#4 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Exception\Handler.php(159): Illuminate\Exception\Handler->displayException(Object(Symfony\Component\HttpKernel\Exception\NotFoundHttpException))
#5 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(753): Illuminate\Exception\Handler->handleException(Object(Symfony\Component\HttpKernel\Exception\NotFoundHttpException))
#6 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Session\Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#7 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Cookie\Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#8 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Cookie\Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#9 E:\xampp\htdocs\ingeniouslive\app\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#10 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(643): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#11 E:\xampp\htdocs\ingeniouslive\app\repo\index.php(49): Illuminate\Foundation\Application->run()
#12 {main} [] []
[2014-09-16 20:07:32] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Uncaught exception 'RuntimeException' with message 'Could not find resource 'views/layouts.html.php' in any resource paths.(searched: E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Handler/../Resources)' in E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Handler\PrettyPageHandler.php:440
Stack trace:
#0 E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Handler\PrettyPageHandler.php(119): Whoops\Handler\PrettyPageHandler->getResource('views/layouts.h...')
#1 E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Run.php(247): Whoops\Handler\PrettyPageHandler->handle(Object(RuntimeException))
#2 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Exception\WhoopsDisplayer.php(49): Whoops\Run->handleException(Object(RuntimeException))
#3 E:\xampp\htdocs\ingeniouslive\app\vendor\laravel\framework\src\Illuminate\Exception\Handler.php(280): Illuminate\Exception\WhoopsDisplayer->display(Object(RuntimeException))
#4 E:\xampp\htdocs\ingeniou' in E:\xampp\htdocs\ingeniouslive\app\vendor\filp\whoops\src\Whoops\Handler\PrettyPageHandler.php:440
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
I can see something going wrong on #4. Only a partial directory path is listed: E:\xampp\htdocs\ingeniou'
I am not sure how to debug this. Please help.
PS: Things stopped working when I setup email(edited app/config/mail.php) and ran couple of artisan commands(auth:reminder-controller and auth:reminder-table)
I ran into this issue as well and had to do a fresh install of Laravel to get it working. I THINK it was caused when I refactored a folder in my views from layout to layouts. It may have done some extra refactoring and switched things up where they shouldn't' have been in other classes?
Might be best to just do a new install of laravel.

Magento error There has been an error processing your request

Error in file: "/var/www/html/magento_1.3.2.4/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-0.7.39-0.7.40.php" - Unknown error (8192): Function split() is deprecated in /var/www/html/magento_1.3.2.4/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-0.7.39-0.7.40.php on line 35
Trace:
#0 /var/www/html/magento_1.3.2.4/app/code/core/Mage/Core/Model/Resource/Setup.php(292): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /var/www/html/magento_1.3.2.4/app/code/core/Mage/Core/Model/Resource/Setup.php(168): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.7.0', '0.7.69')
#2 /var/www/html/magento_1.3.2.4/app/code/core/Mage/Core/Model/Resource/Setup.php(155): Mage_Core_Model_Resource_Setup->_installResourceDb('0.7.69')
#3 /var/www/html/magento_1.3.2.4/app/code/core/Mage/Core/Model/Resource/Setup.php(121): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /var/www/html/magento_1.3.2.4/app/code/core/Mage/Core/Model/Config.php(263): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /var/www/html/magento_1.3.2.4/app/code/core/Mage/Core/Model/App.php(263): Mage_Core_Model_Config->init(Array)
#6 /var/www/html/magento_1.3.2.4/app/Mage.php(434): Mage_Core_Model_App->init('', 'store', Array)
#7 /var/www/html/magento_1.3.2.4/app/Mage.php(455): Mage::app('', 'store', Array)
#8 /var/www/html/magento_1.3.2.4/index.php(65): Mage::run()
#9 {main}
You are using upper version of PHP and Lower version of Magento. That's why this error is throwing. Either upgrade magento or degrade PHP version on your server.
Helpful link: http://www.geekieblog.com/2011/03/magento-1-3-x-environment-won%E2%80%99t-run-on-php-5-3/

Categories