Post by psytanium » Thu Aug 28, 2025 10:47 pm

Hi,

I’m working on OpenCart Version 4.1.0.3. For some reason, when I click on products or categories, the pages load but remain stuck on the home page. Additionally, when I try to edit settings from the backend, it redirects to https://domain.com/error.html

in the log i found :

2025-08-28 17:33:30 - PHP Warning: fopen(/home/user/storage/logs/): Failed to open stream: Is a directory in /home/user/public_html/system/library/log.php on line 18
2025-08-28 17:33:36 - PHP Warning: fopen(/home/user/storage/logs/): Failed to open stream: Is a directory in /home/user/public_html/system/library/log.php on line 18
2025-08-28 17:33:54 - PHP Warning: fopen(/home/user/storage/logs/): Failed to open stream: Is a directory in /home/user/public_html/system/library/log.php on line 18

Regards,

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by khnaz35 » Thu Aug 28, 2025 11:00 pm

Verify that the storage/logs directory is writable by the server.

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by psytanium » Fri Aug 29, 2025 12:59 am

khnaz35 wrote:
Thu Aug 28, 2025 11:00 pm
Verify that the storage/logs directory is writable by the server.
storage/logs directory permission 755
error.log adn all other files permission 644

Could this have happened after moving the website to another server? But it was accessible for a few months after the move, but now it isn’t.

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by khnaz35 » Fri Aug 29, 2025 1:14 am

And what about your users permissions or user groups permission?

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by psytanium » Fri Aug 29, 2025 3:12 am

khnaz35 wrote:
Fri Aug 29, 2025 1:14 am
And what about your users permissions or user groups permission?
The website is hosted on server with cPanel, using filemanager.

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by khnaz35 » Fri Aug 29, 2025 11:44 am

So you don't have SHEll access? Ask your host to verify the permissions if they are correct.

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by paulfeakins » Fri Aug 29, 2025 11:03 pm

psytanium wrote:
Thu Aug 28, 2025 10:47 pm
I’m working on OpenCart Version 4.1.0.3.
You know at this point most OC developers still recommend the latest version of OC3?

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


User avatar
Legendary Member

Posts

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

Post by psytanium » Sat Aug 30, 2025 10:44 pm

khnaz35 wrote:
Fri Aug 29, 2025 11:44 am
So you don't have SHEll access? Ask your host to verify the permissions if they are correct.
I can have SSH enabled, but what do you mean ? Permission of what exactly ?

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by OSWorX » Sat Aug 30, 2025 11:09 pm

psytanium wrote:
Fri Aug 29, 2025 12:59 am
khnaz35 wrote:
Thu Aug 28, 2025 11:00 pm
Verify that the storage/logs directory is writable by the server.
storage/logs directory permission 755
error.log adn all other files permission 644

Could this have happened after moving the website to another server? But it was accessible for a few months after the move, but now it isn’t.
755 for folders/directory should be the correct permission.
Depends also how the server is configured, have seen also 750 and it worked with that (mostly cPanel)

644 is the standard permission for files.
Same is valid here, have seen also 640 (also here cPanel)

Another story is, under which user the files are accessed.
cPanel has to be correct configured, otherwise it could be that they are not callable.

If you don't know how to configure your server with cPanel, better to pay someone who knows what he is doing!

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by khnaz35 » Sun Aug 31, 2025 12:20 am

Can you also double check if you have SELinux enabled and plocies are being enforced?

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by psytanium » Mon Sep 01, 2025 4:37 pm

OSWorX wrote:
Sat Aug 30, 2025 11:09 pm
psytanium wrote:
Fri Aug 29, 2025 12:59 am
khnaz35 wrote:
Thu Aug 28, 2025 11:00 pm
Verify that the storage/logs directory is writable by the server.
storage/logs directory permission 755
error.log adn all other files permission 644

Could this have happened after moving the website to another server? But it was accessible for a few months after the move, but now it isn’t.
755 for folders/directory should be the correct permission.
Depends also how the server is configured, have seen also 750 and it worked with that (mostly cPanel)

644 is the standard permission for files.
Same is valid here, have seen also 640 (also here cPanel)

Another story is, under which user the files are accessed.
cPanel has to be correct configured, otherwise it could be that they are not callable.

If you don't know how to configure your server with cPanel, better to pay someone who knows what he is doing!
"permissions" alone confused me into many things, I prefer using clear terms like "file" or "folder permissions". But thanks for your suggestions.

Files / Fodlers Permissions are set correctly.

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by psytanium » Mon Sep 01, 2025 4:39 pm

Ill send permissions screenshots
Last edited by psytanium on Mon Sep 01, 2025 6:47 pm, edited 1 time in total.

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by khnaz35 » Mon Sep 01, 2025 6:07 pm

psytanium wrote:
Mon Sep 01, 2025 4:39 pm
Could there be something that needs to be configured in the Microsoft 365 Admin panel?
Your logs clearly show:
2025-08-28 17:33:30 - PHP Warning: fopen(/home/user/storage/logs/): Failed to open stream: Is a directory in /home/user/public_html/system/library/log.php on line 18

We’ve told you many times this is a permissions-related issue. It could be due to:
  • SELinux restrictions
    Incorrect file or directory permissions
You need to carefully check and drill down into the permissions to resolve it. Ask your host for the help as well.

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: gunownergear and 10 guests