File /var/cache/prod/ is not within the allowed path(s)

Komplikacja

Po migracji PrestaShop między domenami w panelu administracyjnym otwiera się biała strona, zaś w logach ukazują się błędy

[Wed Dec 30 17:42:56.582665 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/juzek/domains/tomlot.eu/public_html/var/cache/prod//localization/CLDR) is not within the allowed path(s): (/home/juzek/domains/tomlot.eu/public_html:/tmp:/var/tmp:/bin:/usr/bin:/usr/local/lib/php/:/usr/local/php72/lib/php/:/usr/local/php72/lib64/php/) in /home/juzek/domains/tomlot.eu/public_html/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/FilesystemCommonTrait.php on line 39
[Wed Dec 30 17:42:56.582757 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/juzek/domains/tomlot.eu/public_html/var/cache/prod//localization/CLDR/O/O/vlm5Wyo5mIqJUFvfGb6f) is not within the allowed path(s): (/home/juzek/domains/tomlot.eu/public_html:/tmp:/var/tmp:/bin:/usr/bin:/usr/local/lib/php/:/usr/local/php72/lib/php/:/usr/local/php72/lib64/php/) in /home/juzek/domains/tomlot.eu/public_html/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/FilesystemTrait.php on line 60
[Wed Dec 30 17:42:56.582779 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/juzek/domains/tomlot.eu/public_html/var/cache/prod//localization/CLDR/O/O/vlm5Wyo5mIqJUFvfGb6f) is not within the allowed path(s): (/home/juzek/domains/tomlot.eu/public_html:/tmp:/var/tmp:/bin:/usr/bin:/usr/local/lib/php/:/usr/local/php72/lib/php/:/usr/local/php72/lib64/php/) in /home/juzek/domains/tomlot.eu/public_html/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/FilesystemTrait.php on line 60
[Wed Dec 30 17:42:56.582799 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/juzek/domains/tomlot.eu/public_html/var/cache/prod//localization/CLDR/O/O/) is not within the allowed path(s): (/home/juzek/domains/tomlot.eu/public_html:/tmp:/var/tmp:/bin:/usr/bin:/usr/local/lib/php/:/usr/local/php72/lib/php/:/usr/local/php72/lib64/php/) in /home/juzek/domains/tomlot.eu/public_html/vendor/symfony/symfony/src/Symfony/Component/Cache/Traits/FilesystemCommonTrait.php on line 104
[Wed Dec 30 17:42:56.582817 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: PHP Fatal error:  Uncaught Symfony\\Component\\Debug\\Exception\\FatalThrowableError: Cannot use object of type Symfony\\Component\\HttpFoundation\\ParameterBag as array in /home/juzek/domains/tomlot.eu/public_html/src/Adapter/Security/Admin.php:91
[Wed Dec 30 17:42:56.582832 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: Stack trace:
[Wed Dec 30 17:42:56.582849 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: #0 /home/juzek/domains/tomlot.eu/public_html/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(212): PrestaShop\\PrestaShop\\Adapter\\Security\\Admin->onKernelRequest(Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent), 'kernel.request', Object(Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))
[Wed Dec 30 17:42:56.582886 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: #1 /home/juzek/domains/tomlot.eu/public_html/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(44): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'kernel.request', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent))
[Wed Dec 30 17:42:56.582903 2020] [fcgid:warn] [pid 24090:tid 140056956135168] [client 83.24.188.56:33144] mod_fcgid: stderr: #2 /home/juzek/domains/tomlot.eu/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.ph in /home/juzek/domains/tomlot.eu/public_html/src/Adapter/Security/Admin.php on line 91

Rozwiązanie

Usuń następujące pliki
rm -fr var/cache/dev/* ; rm -fr var/cache/prod/*

Wiedza: 
Praktyczna
Kategoria: