Page 1 of 1
Installation errors
Posted: Mon Dec 30, 2024 3:48 am
by Blisk1
I am trying to install opencart 3.0.4.0 on new server rockylinux 9 with nginx 1.2 and php 8.
When I go to my server and on localhost to get installation web page I get this error.
Any idea what can be wrong? All permissions are ok, for all files and folders nginx:nginx and folders 755, Selinux is disabled.
Notice: Error: Could not load template common/footer! in /var/www/html/opencart/system/library/template/twig.php on line 37Warning: fopen(/var/www/html/opencart/system/storage/session/sess_ddd0df4851e161fc224c18fb9f): Failed to open stream: Permission denied in /var/www/html/opencart/system/library/session/file.php on line 29
Re: Installation errors
Posted: Mon Dec 30, 2024 11:05 am
by softmonke
You get this error even in localhost? Just to be sure, have you checked if "footer.twig" exists in "catalog/view/theme/default/template/common"? If you are using a custom theme, do check your custom theme's directory as well.
Re: Installation errors
Posted: Mon Dec 30, 2024 5:29 pm
by Mariogs
softmonke wrote: ↑Mon Dec 30, 2024 11:05 am
You get this error even in localhost? Just to be sure, have you checked if "footer.twig" exists in "catalog/view/theme/default/template/common"? If you are using a custom theme, do check your custom theme's directory as well.
Yes on localhost. And yes I already check if those folders and files exist, and all is there and right permissions.
I will download opencart again and try again and see what is happend. No custom themes all as it is.
Re: Installation errors
Posted: Sun Jan 05, 2025 1:02 am
by Mariogs
Today I have download opencart 3.0.4 And upload it to server and again I get this when I want to run installation with localhost.
Notice: Error: Could not load template common/footer! in /var/www/html/opencart/system/library/template/twig.php on line 37Warning: fopen(/var/www/html/opencart/system/storage/session/sess_ddd0df4851e161fc224c18fb9f): Failed to open stream: Permission denied in /var/www/html/opencart/system/library/session/file.php on line 29
Re: Installation errors
Posted: Sun Jan 05, 2025 1:04 am
by khnaz35
Mariogs wrote: ↑Sun Jan 05, 2025 1:02 am
Today I have download opencart 3.0.4 And upload it to server and again I get this when I want to run installation with localhost.
Notice: Error: Could not load template common/footer! in /var/www/html/opencart/system/library/template/twig.php on line 37Warning: fopen(/var/www/html/opencart/system/storage/session/sess_ddd0df4851e161fc224c18fb9f): Failed to open stream
: Permission denied in /var/www/html/opencart/system/library/session/file.php on line 29
It says here clearly , you have to fix the permissions
Re: Installation errors
Posted: Fri Jan 10, 2025 4:18 am
by Mariogs
Which permissions? Of files or folders or anyting else?
folder permissions are 755 and files are 644
I have today installed new server rockylinux9 and again uploaded opencart files and it is the same, the same error.
After I set all folders to 775 which I think is not ok but now that error permission is gone, but this one still persist.
Notice: Error: Could not load template common/footer! in /var/www/html/opencart/system/library/template/twig.php on line 37
Re: Installation errors
Posted: Fri Jan 10, 2025 5:38 am
by Mariogs
I finally get to installation but only when I change permission of all folders to 777.
I am soure that is not ok
Re: Installation errors
Posted: Fri Jan 10, 2025 6:27 am
by Mariogs
Just for update I have changed folder by folder back to 755
and find out it is problem with /storage/cache
this must be 777 if not than page doesn't work and I get errors
When I try to install extension I get error again even when I changed whole storage and subfolders to 777.
I really don't know what is going on here
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
OK
<b>Warning</b>: mkdir(): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/admin/controller/extension/module/consent_management.php,/var/www/html/opencart/admin/controller/extension/module/consent_management.php): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/catalog/controller/extension/module/consent_management.php,/var/www/html/opencart/catalog/controller/extension/module/consent_management.php): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/catalog/model/extension/module/consent_management.php,/var/www/html/opencart/catalog/model/extension/module/consent_management.php): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/src/CrawlerDetect.php,/var/www/html/opencart/system/library/crawler-detect/src/CrawlerDetect.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/vendor/autoload.php,/var/www/html/opencart/system/library/crawler-detect/vendor/autoload.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: mkdir(): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>212</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/admin/language/de-de/extension/module/consent_management.php,/var/www/html/opencart/admin/language/de-de/extension/module/consent_management.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/admin/language/en-gb/extension/module/consent_management.php,/var/www/html/opencart/admin/language/en-gb/extension/module/consent_management.php): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/admin/view/template/extension/module/consent_management.twig,/var/www/html/opencart/admin/view/template/extension/module/consent_management.twig): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/catalog/language/de-de/extension/module/consent_management.php,/var/www/html/opencart/catalog/language/de-de/extension/module/consent_management.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/catalog/language/en-gb/extension/module/consent_management.php,/var/www/html/opencart/catalog/language/en-gb/extension/module/consent_management.php): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/catalog/view/theme/default/stylesheet/consent_management.css,/var/www/html/opencart/catalog/view/theme/default/stylesheet/consent_management.css): Permission denied in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/src/Fixtures/AbstractProvider.php,/var/www/html/opencart/system/library/crawler-detect/src/Fixtures/AbstractProvider.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/src/Fixtures/Crawlers.php,/var/www/html/opencart/system/library/crawler-detect/src/Fixtures/Crawlers.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/src/Fixtures/Exclusions.php,/var/www/html/opencart/system/library/crawler-detect/src/Fixtures/Exclusions.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/src/Fixtures/Headers.php,/var/www/html/opencart/system/library/crawler-detect/src/Fixtures/Headers.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/vendor/bin/php-parse,/var/www/html/opencart/system/library/crawler-detect/vendor/bin/php-parse): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/vendor/bin/php-parse.bat,/var/www/html/opencart/system/library/crawler-detect/vendor/bin/php-parse.bat): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/vendor/bin/phpunit,/var/www/html/opencart/system/library/crawler-detect/vendor/bin/phpunit): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/vendor/bin/phpunit.bat,/var/www/html/opencart/system/library/crawler-detect/vendor/bin/phpunit.bat): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/system/library/crawler-detect/vendor/composer/ClassLoader.php,/var/www/html/opencart/system/library/crawler-detect/vendor/composer/ClassLoader.php): No such file or directory in <b>/var/www/html/opencart/admin/controller/marketplace/install.php</b> on line <b>218</b><b>Warning</b>: rename(/var/www/html/storage/upload/tmp-i7MbfTmu4t/upload/sy
Re: Installation errors
Posted: Fri Jan 10, 2025 8:18 pm
by JNeuhoff
The normal folder permissions are 755, and for files 644. If these don't work on your remote host then something is wrong with your Nginx configuration and you should ask your webhost to sort it out.
Or you could use an Apache server.
Re: Installation errors
Posted: Tue Jan 28, 2025 7:42 pm
by Blisk1
JNeuhoff wrote: ↑Fri Jan 10, 2025 8:18 pm
The normal folder permissions are 755, and for files 644. If these don't work on your remote host then something is wrong with your Nginx configuration and you should ask your webhost to sort it out.
Or you could use an Apache server.
I use now apache and now is all ok
Re: Installation errors
Posted: Tue Jan 28, 2025 11:32 pm
by by mona
It is a solution.
Please mark the topic title to include [SOLVED] thanks