raduenea Posted May 11, 2020 Share Posted May 11, 2020 Hello, I have prestashop 1.7.6.5.. It was installed on a hosted server with php 7.3 I moved to a VPS with php7.2 and after all configurations (mysql, php config files, etc) it keep gives me the following error: Notice: tempnam(): file created in the system's temporary directory in /var/www/html/presta/classes/PrestaShopAutoload.php on line 258 Warning: rename(/tmp/class_index.phpsuPhxT,/var/www/html/presta/var/cache/dev/class_index.php): No such file or directory in /var/www/html/presta/classes/PrestaShopAutoload.php on line 264 Notice: tempnam(): file created in the system's temporary directory in /var/www/html/presta/classes/PrestaShopAutoload.php on line 258 Warning: rename(/tmp/class_stub.phpeholgv,/var/www/html/presta/var/cache/dev/class_stub.php): No such file or directory in /var/www/html/presta/classes/PrestaShopAutoload.php on line 264 Notice: tempnam(): file created in the system's temporary directory in /var/www/html/presta/classes/PrestaShopAutoload.php on line 258 Warning: rename(/tmp/namespaced_class_stub.phpqJ7pZ6,/var/www/html/presta/var/cache/dev/namespaced_class_stub.php): No such file or directory in /var/www/html/presta/classes/PrestaShopAutoload.php on line 264 Warning: require_once(/var/www/html/presta/var/cache/dev/appParameters.php): failed to open stream: No such file or directory in /var/www/html/presta/config/bootstrap.php on line 87 Fatal error: require_once(): Failed opening required '/var/www/html/presta/var/cache/dev/appParameters.php' (include_path='/var/www/html/presta/vendor/pear/pear_exception:/var/www/html/presta/vendor/pear/console_getopt:/var/www/html/presta/vendor/pear/pear-core-minimal/src:/var/www/html/presta/vendor/pear/archive_tar:.:/usr/share/php') in /var/www/html/presta/config/bootstrap.php on line 87 It keep show this from the beggining, and I don't think is from the php version, mysql or other config file. Any ideas please? Thanks in advanced. Link to comment Share on other sites More sharing options...
JBW Posted May 11, 2020 Share Posted May 11, 2020 After moving, delete /var/cache and make sure that this has correct access rights. Link to comment Share on other sites More sharing options...
raduenea Posted May 11, 2020 Author Share Posted May 11, 2020 1 hour ago, JBW said: After moving, delete /var/cache and make sure that this has correct access rights. I delete the content from /var/cache (from prestashop) but no luck. I try to find out where is this folder "/tmp/class_index.phptZLLp6" because I can't find it. Besides that if I refresh the page it generate a new number from ""/tmp/class_index.phptZLLp6" to "/tmp/class_index.phpAtQ07l". Any ideas? Link to comment Share on other sites More sharing options...
raduenea Posted May 11, 2020 Author Share Posted May 11, 2020 Well, I found somehting. I changed permission "777" to /var/cache and /var/logs. Now I'm not sure that it's ok to give full acces to those folders. I think it must be "775" but then Presta don't have acces to write. It's there a way to allow presta to write even if the folder have "775" permission? Thanks Link to comment Share on other sites More sharing options...
raduenea Posted May 11, 2020 Author Share Posted May 11, 2020 I found it. I used this command chown –R www-data:root nume_folder to set user www-data to acces the folder even if is 775. Now it's ok. Link to comment Share on other sites More sharing options...
Krauserdmc_ Posted February 26, 2021 Share Posted February 26, 2021 On 5/11/2020 at 10:05 AM, raduenea said: I found it. I used this command chown –R www-data:root nume_folder to set user www-data to acces the folder even if is 775. Now it's ok. what nume_folder? im having the same issue, please help Link to comment Share on other sites More sharing options...
thehurricane Posted June 18, 2021 Share Posted June 18, 2021 Hello, as KRauserdmc asked what is nume_folder ?? Link to comment Share on other sites More sharing options...
raduenea Posted June 18, 2021 Author Share Posted June 18, 2021 9 hours ago, thehurricane said: Hello, as KRauserdmc asked what is nume_folder ?? The name of the folder. Link to comment Share on other sites More sharing options...
thehurricane Posted June 21, 2021 Share Posted June 21, 2021 On 6/18/2021 at 8:24 PM, raduenea said: The name of the folder. but what folder? cache folder? Or whole prestashop folder? Link to comment Share on other sites More sharing options...
raduenea Posted June 22, 2021 Author Share Posted June 22, 2021 20 hours ago, Crezzur said: Its changing the right of the folder where Prestashop store is in. For example: demoshop17 = nume_folder || www-data:root = 1208 1210 Yes, exactly. Link to comment Share on other sites More sharing options...
thehurricane Posted June 22, 2021 Share Posted June 22, 2021 ok thank You for answers. I will try it! But for educational purposes what exactly means those numbers 1208 1210 ? Link to comment Share on other sites More sharing options...
vahid alvandi Posted October 6, 2021 Share Posted October 6, 2021 i you are using linux in develop mode you need change permission to 777 to project directory sudo chmod -R 777 prestashop/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now