Post by Joe1234 » Mon Jun 09, 2025 8:51 am

I'm having an issue with installing opencart 3.0.4.0 and 3.0.4.1. It's on the same server as my other OC installations which are 3.0.4.0. The only difference here is that I'm installing this in public_html, where the others are installed on their own directories on the same dir level. The files are not corrupted because I'm using the same download I used for the others, permissions are all 755 for the dir, and 644 for the files. Config files are 777.
On first attempt to go to the site to install I get error:

Code: Select all

Notice: Error: Could not load template common/footer! in /..../public_html/system/library/template/twig.php on line 37Warning: fopen(/..../public_html/system/storage/session/sess_c19653d729f97ca2d0f55c4e52): Failed to open stream: Permission denied in /..../public_html/system/library/session/file.php on line 29
After changing that dir permission to 777 I get error:

Code: Select all

Notice: Error: Could not load template common/footer! in /..../public_html/system/library/template/twig.php on line 37
The file is there, permission is what it should be. I tried installing this the same way I've always done it, and I also followed the installation instructions exactly as the OC install video shows. What other info do you need? What can the issue be? Thanks.

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by ADD Creative » Mon Jun 09, 2025 4:33 pm

Could it be an ownership issue?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Mon Jun 09, 2025 6:01 pm

Joe1234 wrote:
Mon Jun 09, 2025 8:51 am
After changing that dir permission to 777 I get error:
Don't ever do this on a webserver.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by JazzBlueRT » Mon Jun 09, 2025 10:02 pm

Joe1234 wrote:
Mon Jun 09, 2025 8:51 am
I'm having an issue with installing opencart 3.0.4.0 and 3.0.4.1. It's on the same server as my other OC installations which are 3.0.4.0. The only difference here is that I'm installing this in public_html, where the others are installed on their own directories on the same dir level. The files are not corrupted because I'm using the same download I used for the others, permissions are all 755 for the dir, and 644 for the files. Config files are 777.
On first attempt to go to the site to install I get error:

Code: Select all

Notice: Error: Could not load template common/footer! in /..../public_html/system/library/template/twig.php on line 37Warning: fopen(/..../public_html/system/storage/session/sess_c19653d729f97ca2d0f55c4e52): Failed to open stream: Permission denied in /..../public_html/system/library/session/file.php on line 29
After changing that dir permission to 777 I get error:

Code: Select all

Notice: Error: Could not load template common/footer! in /..../public_html/system/library/template/twig.php on line 37
The file is there, permission is what it should be. I tried installing this the same way I've always done it, and I also followed the installation instructions exactly as the OC install video shows. What other info do you need? What can the issue be? Thanks.
The OS cannot find the path, changing permission will not help and never set your permission to 777

public_html is most likely under the user hierarchy and depending on server config, the HTTPD or Nginx user has no permissions. Why would you put this new site in the public_html directory? Your sites should be under /var/www/vhosts or similar eg:

/var/www/vhosts/site1
/var/www/vhosts/site2
/var/www/vhosts/site3

And storage should be:
/var/www/vhosts/storage/site1
/var/www/vhosts/storage/site2
/var/www/vhosts/storage/site3


Where /var/www/vhosts/* is owned by the HTTP or Nginx process with appropriate file permissions

------------------------------------------
Retro gifts, toys, games and accessories
https://www.retroactives.com/


User avatar
New member

Posts

Joined
Mon Nov 06, 2017 1:34 am
Who is online

Users browsing this forum: No registered users and 26 guests