We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrading PHP 7.3 to PHP 8.1 zerospam/laravel-gettext package is not working. It shows below errors:
PHP Fatal error: Declaration of Xinax\LaravelGettext\FileLoader\Cache\ApcuFileCacheLoader::loadResource($resource) must be compatible with Symfony\Component\Translation\Loader\FileLoader::loadResource(string $resource): array in C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\FileLoader\Cache\ApcuFileCacheLoader.php on line 40 [Wed Oct 5 11:02:42 2022] PHP Fatal error: Uncaught Error: Class "Xinax\LaravelGettext\FileLoader\Cache\ApcuFileCacheLoader" not found in C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php:114 Stack trace: #0 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php(63): Xinax\LaravelGettext\Translators\Symfony->createTranslator() #1 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php(77): Xinax\LaravelGettext\Translators\Symfony->getTranslator() #2 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php(35): Xinax\LaravelGettext\Translators\Symfony->setLocale('en_CA') #3 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\LaravelGettextServiceProvider.php(68): Xinax\LaravelGettext\Translators\Symfony->__construct(Object(Xinax\LaravelGettext\Config\Models\Config), Object(Xinax\LaravelGettext\Adapters\LaravelAdapter), Object(Xinax\LaravelGettext\FileSystem), Object(Xinax\LaravelGettext\Storages\SessionStorage)) #4 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(873): Xinax\LaravelGettext\LaravelGettextServiceProvider->Xinax\LaravelGettext{closure}(Object(Illuminate\Foundation\Application), Array) #5 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(758): Illuminate\Container\Container->build(Object(Closure)) #6 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(851): Illuminate\Container\Container->resolve('Xinax\LaravelGe...', Array, true) #7 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(694): Illuminate\Foundation\Application->resolve('Xinax\LaravelGe...', Array) #8 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(836): Illuminate\Container\Container->make('Xinax\LaravelGe...', Array) #9 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(119): Illuminate\Foundation\Application->make('Xinax\LaravelGe...', Array) #10 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Support\helpers.php(18): app('Xinax\LaravelGe...') #11 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\app\Exceptions\Handler.php(152): _i('Details') #12 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(196): App\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(Symfony\Component\ErrorHandler\Error\FatalError)) #13 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(173): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(Object(Symfony\Component\ErrorHandler\Error\FatalError)) #14 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(209): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Symfony\Component\ErrorHandler\Error\FatalError)) #15 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown() #16 {main} thrown in C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php on line 114
This is my composer.json file
"require": { "php": "^8.1", "artisaninweb/laravel-soap": "0.3.0.9", "barryvdh/laravel-dompdf": "^0.8.5", "fideloper/proxy": "^4.0", "laravel/framework": "^8.0", "laravel/homestead": "^13.2", "laravel/tinker": "^2.0", "maatwebsite/excel": "^3.1", "phpoffice/phpspreadsheet": "^1.10", "zerospam/laravel-gettext": "^8.0.2" }, "require-dev": { "facade/ignition": "^2.3.6", "fzaninotto/faker": "^1.4", "mockery/mockery": "^1.0", "nunomaduro/collision": "^5.1", "phpunit/phpunit": "^9.0" },
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After upgrading PHP 7.3 to PHP 8.1 zerospam/laravel-gettext package is not working. It shows below errors:
PHP Fatal error: Declaration of Xinax\LaravelGettext\FileLoader\Cache\ApcuFileCacheLoader::loadResource($resource) must be compatible with Symfony\Component\Translation\Loader\FileLoader::loadResource(string $resource): array in C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\FileLoader\Cache\ApcuFileCacheLoader.php on line 40
[Wed Oct 5 11:02:42 2022] PHP Fatal error: Uncaught Error: Class "Xinax\LaravelGettext\FileLoader\Cache\ApcuFileCacheLoader" not found in C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php:114
Stack trace:
#0 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php(63): Xinax\LaravelGettext\Translators\Symfony->createTranslator()
#1 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php(77): Xinax\LaravelGettext\Translators\Symfony->getTranslator()
#2 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php(35): Xinax\LaravelGettext\Translators\Symfony->setLocale('en_CA')
#3 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\LaravelGettextServiceProvider.php(68): Xinax\LaravelGettext\Translators\Symfony->__construct(Object(Xinax\LaravelGettext\Config\Models\Config), Object(Xinax\LaravelGettext\Adapters\LaravelAdapter), Object(Xinax\LaravelGettext\FileSystem), Object(Xinax\LaravelGettext\Storages\SessionStorage))
#4 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(873): Xinax\LaravelGettext\LaravelGettextServiceProvider->Xinax\LaravelGettext{closure}(Object(Illuminate\Foundation\Application), Array)
#5 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(758): Illuminate\Container\Container->build(Object(Closure))
#6 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(851): Illuminate\Container\Container->resolve('Xinax\LaravelGe...', Array, true)
#7 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(694): Illuminate\Foundation\Application->resolve('Xinax\LaravelGe...', Array)
#8 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(836): Illuminate\Container\Container->make('Xinax\LaravelGe...', Array)
#9 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(119): Illuminate\Foundation\Application->make('Xinax\LaravelGe...', Array)
#10 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Support\helpers.php(18): app('Xinax\LaravelGe...')
#11 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\app\Exceptions\Handler.php(152): _i('Details')
#12 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(196): App\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(Symfony\Component\ErrorHandler\Error\FatalError))
#13 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(173): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(Object(Symfony\Component\ErrorHandler\Error\FatalError))
#14 C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(209): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Symfony\Component\ErrorHandler\Error\FatalError))
#15 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
#16 {main}
thrown in C:\Users\pragneshc\promis\Promis3.0\promis3.0-laravel\vendor\zerospam\laravel-gettext\src\Xinax\LaravelGettext\Translators\Symfony.php on line 114
This is my composer.json file
"require": {
"php": "^8.1",
"artisaninweb/laravel-soap": "0.3.0.9",
"barryvdh/laravel-dompdf": "^0.8.5",
"fideloper/proxy": "^4.0",
"laravel/framework": "^8.0",
"laravel/homestead": "^13.2",
"laravel/tinker": "^2.0",
"maatwebsite/excel": "^3.1",
"phpoffice/phpspreadsheet": "^1.10",
"zerospam/laravel-gettext": "^8.0.2"
},
"require-dev": {
"facade/ignition": "^2.3.6",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^5.1",
"phpunit/phpunit": "^9.0"
},
The text was updated successfully, but these errors were encountered: