Jump to content

New prestashop 1.7.5.1 cache issue permission problem


monkata

Recommended Posts

Hallo,

I am using at the moment prestashop 1.7.2.4 and i will upgrade to the latest version 1.7.5.1

In public html i created new forlder and install clear and fresh prestashop 1.7.5.1

I am using only modules, which i bought from prestashop and the theme is ware house / again latest version / All migration is correct  / orders, products and so on /

Just the problem is, when i clear the cache from BO and than 500 blank page and in folder var, folder cache, folder prod - permissions are not correct broken. 

At the beginning i think, some modules or the ware house theme is the problem.  There are not the problem.

yesterday i made total clean and fresh prestashop install and the same issue.

Is there any solution?

I read similar bug is reported in Octomber 2018 - a long time ago

 

I read about some solutions, but nothing is working for me. 

 

Link to comment
Share on other sites

(1/1) ContextErrorException

Warning: include(/home/hygieneb/public_html/230219/var/cache/dev/translations/catalogue.bg-BG.NXhscRe.php): failed to open stream: No such file or directory

in Translator.php line 309
at include()in Translator.php line 309
at Translator->initializeCacheCatalogue('bg-BG')in Translator.php line 265
at Translator->loadCatalogue('bg-BG')in Translator.php line 241
at Translator->getCatalogue('bg-BG')in Context.php line 374
at ContextCore->getTranslatorFromLocale('bg-BG')in Context.php line 351
at ContextCore->getTranslator()in Controller.php line 224
at ControllerCore->__construct()in AdminController.php line 417
at AdminControllerCore->__construct()in LegacyContext.php line 63
at LegacyContext->getContext()in UserLocaleListener.php line 39
at UserLocaleListener->__construct(object(LegacyContext))in appDevDebugProjectContainer.php line 1815
at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 2299
at appDevDebugProjectContainer->ContainerRmnhzxr\{closure}()in EventDispatcher.php line 229
at EventDispatcher->sortListeners('kernel.request')in EventDispatcher.php line 61
at EventDispatcher->getListeners('kernel.request')in ContainerAwareEventDispatcher.php line 128
at ContainerAwareEventDispatcher->getListeners('kernel.request')in TraceableEventDispatcher.php line 262
at TraceableEventDispatcher->preProcess('kernel.request')in TraceableEventDispatcher.php line 137
at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127
at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68
at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200
at Kernel->handle(object(Request), 1, false)in index.php line 88
Link to comment
Share on other sites

this error i see for first time.

 

It was other error. But read this and make it: If I add this line to config/bootstrap.php :
$filesystem->chmod($cachedParameters, 0660);
Here :

if (!$lastParametersCacheModificationTime || $lastParametersCacheModificationTime < $lastParametersModificationTime) {
// When parameters file is available, update its cache if it is stale.
if (file_exists($phpParametersFilepath)) {
$config = require($phpParametersFilepath);
$exportPhpConfigFile($config, $cachedParameters);
} elseif (file_exists($yamlParametersFilepath)) {
$config = Yaml::parse($yamlParametersFilepath);
$exportPhpConfigFile($config, $cachedParameters);
}
$filesystem->chmod($cachedParameters, 0660);
}

Link to comment
Share on other sites

 

 

now is this error

Fatal error: require_once(): Failed opening required '/home/hygieneb/public_html/230219/var/cache/dev/appParameters.php' (include_path='/home/hygieneb/public_html/230219/vendor/pear/pear_exception:/home/hygieneb/public_html/230219/vendor/pear/console_getopt:/home/hygieneb/public_html/230219/vendor/pear/pear-core-minimal/src:/home/hygieneb/public_html/230219/vendor/pear/archive_tar:.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/hygieneb/public_html/230219/config/bootstrap.php on line 86

Link to comment
Share on other sites

Hi,

I have exactly the same kind of error with prestashop 1.7.5.1.

I don't have any special module or tricky things so I don't understand what happening.

My version of php is 7.1.

Do you guys know if there is an issue with this prestashop's version ?

Thanks for your time

Link to comment
Share on other sites

  • 2 months later...
  • 5 months later...

also me having same issue, 

permissions -------- 000 app parameters.php

also this was first encountered with session path error .

Warning: require_once(/home/myuser/www/var/cache/prod/appParameters.php): failed to open stream: Permission denied in /home/myuser/www/config/bootstrap.php on line 86

Fatal error: require_once(): Failed opening required '/home/myuser/www/var/cache/prod/appParameters.php' (include_path='/home/myuser/www/vendor/pear/pear_exception:/home/myuser/www/vendor/pear/console_getopt:/home/myuser/www/vendor/pear/pear-core-minimal/src:/home/myuser/www/vendor/pear/archive_tar:.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/myuser/www/config/bootstrap.php on line 86

 

AND ALSO ERROR 

«Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir("/var/cpanel/php/sessions/ea-php70") failed: Permission denied"

 

my Conf 

PHP 7.2 , Mariadb 10.3 , PS 1.7.5.2, Fedora/Red Hat Enterprise Linux 7, Apache 2.4, https://www.nksparts.com/2-home

It encountered following errors those i fixed:

while deleting Cache manually by command i used rm -Rf* while somehow deleted 

Cache and compile folders also.

created again the folders cache and compile , using the same user of the apache / ps rights owner.

gave rights to both folder cache & compile as per prestashop installation guide.

and finally disabling the OPCACHE. 

also me having same issue, 

permissions -------- 000 app parameters.php

also this was first encountered with session path error .

Warning: require_once(/home/myuser/www/var/cache/prod/appParameters.php): failed to open stream: Permission denied in /home/myuser/www/config/bootstrap.php on line 86

Fatal error: require_once(): Failed opening required '/home/myuser/www/var/cache/prod/appParameters.php' (include_path='/home/myuser/www/vendor/pear/pear_exception:/home/myuser/www/vendor/pear/console_getopt:/home/myuser/www/vendor/pear/pear-core-minimal/src:/home/myuser/www/vendor/pear/archive_tar:.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/myuser/www/config/bootstrap.php on line 86

 

WHENEVER I WANTED TO CLEAR CACHE FROM BACK OFFICE OR ACCESS THE BO, OR INSTALL A MODULE OR ANY ACTIVITY ON BO, IT WOULD GIVE EVEN 500 ERROR ALSO.

AND I TOTALLY LOST CONTROL OF FO AND BO. AND 500 ERROR TOOK OVER.

my Conf 

PHP 7.2 , Mariadb 10.3 , PS 1.7.5.2, Fedora/Red Hat Enterprise Linux 7, Apache 2.4

HOW IT RESOLVED:

It encountered following errors those i fixed:

while deleting Cache manually by command i used rm -Rf* while somehow deleted 

Cache and compile folders also.

created again the folders cache and compile , using the same user of the apache / ps rights owner.

gave rights to both folder cache & compile as per prestashop installation guide.

and finally disabling the OPCACHE. 

CLEAR BROWSER CACHE, OR TRY TO USE ANOTHER BROWSER, DELETE PS CACHE FROM CACHE AND COMPILE AND TWIG FOLDERS.

DISABLE ALSO THE SESSION

IN some cases doing this might help also:

session.save_path : /tmp

(can be written in .users.ini, php.ini or also in software multiphp INI settings if you are using Cpanel etc.

session.gc_probability = Off
session.gc_probability=0

opcache.revalidate_freq = 0
opcache.validate_timestamps = 1
opcache.revalidate_freq = 0
opcache.fast_shutdown = 0
opcache.enable=0

 

errors for reference.

(1/1) ContextErrorException

Warning: include(/home/hygieneb/public_html/230219/var/cache/dev/translations/catalogue.bg-BG.NXhscRe.php): failed to open stream: No such file or directory

in Translator.php line 309

at include()in Translator.php line 309

at Translator->initializeCacheCatalogue('bg-BG')in Translator.php line 265

at Translator->loadCatalogue('bg-BG')in Translator.php line 241

at Translator->getCatalogue('bg-BG')in Context.php line 374

at ContextCore->getTranslatorFromLocale('bg-BG')in Context.php line 351

at ContextCore->getTranslator()in Controller.php line 224

at ControllerCore->__construct()in AdminController.php line 417

at AdminControllerCore->__construct()in LegacyContext.php line 63

at LegacyContext->getContext()in UserLocaleListener.php line 39

at UserLocaleListener->__construct(object(LegacyContext))in appDevDebugProjectContainer.php line 1815

at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 2299

at appDevDebugProjectContainer->ContainerRmnhzxr\{closure}()in EventDispatcher.php line 229

at EventDispatcher->sortListeners('kernel.request')in EventDispatcher.php line 61

at EventDispatcher->getListeners('kernel.request')in ContainerAwareEventDispatcher.php line 128

at ContainerAwareEventDispatcher->getListeners('kernel.request')in TraceableEventDispatcher.php line 262

at TraceableEventDispatcher->preProcess('kernel.request')in TraceableEventDispatcher.php line 137

at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127

at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68

at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200

at Kernel->handle(object(Request), 1, false)in index.

 

Edited by zeeshan ashraf
DIDNT INCLUDED RESOLUTION AND SOME POINTS MISSED HELPFUL FOR TROUBLE SHOOTERS (see edit history)
Link to comment
Share on other sites

  • 4 months later...
  • 2 months later...
On 4/5/2019 at 9:29 AM, monkata said:

I didn't find any solution. may be is it issue with this prestashop's version. Only one solution opcache  - disable. But i don't know, if this is the correct way.

Hi, did you found the solution?

I'm getting issues with fatal error after module install or cache clear. All of this to file: appDevDebugProjectContainer.php line 1722

2020-07-20 16_00_22-Mozilla Firefox.png

Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...