Post by Earl hickey » Sat Jan 12, 2019 8:22 am

Hi guys.
I saw a heap of warnings start to come up on the mobile when out of town, and now back on the PC seeing the same but have absolutely no idea what's broken or why the warnings are here or how to fix them. Would really appreciate some help if someone could help in s "for dummies" style because i'm very very not savvy with this stuff.
Thanks in advance

Warning: fopen(/home/chiwohlq/ocartdata/storage/logs/error.log): failed to open stream: No such file or directory in /home/chiwohlq/public_html/system/library/log.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /home/chiwohlq/public_html/system/library/log.php:22) in /home/chiwohlq/public_html/system/framework.php on line 108
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 31
Warning: fopen(/home/chiwohlq/ocartdata/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/chiwohlq/public_html/system/library/log.php on line 22
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 31
Warning: fopen(/home/chiwohlq/ocartdata/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/chiwohlq/public_html/system/library/log.php on line 22
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 31
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 39
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at /home/chiwohlq/public_html/system/library/log.php:22) in /home/chiwohlq/public_html/catalog/controller/startup/session.php on line 25
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 31
Warning: fopen(/home/chiwohlq/ocartdata/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/chiwohlq/public_html/system/library/log.php on line 22
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 31
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 39
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 31
Warning: fopen(/home/chiwohlq/ocartdata/storage/logs/error.log): failed to open stream: No such file or directory in /home/chiwohlq/public_html/system/library/log.php on line 22
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/chiwohlq/public_html/system/library/log.php on line 31

Newbie

Posts

Joined
Sat Mar 17, 2018 8:02 pm

Post by tingwing » Sat Jan 12, 2019 5:06 pm

first ,please check the content of config.php at root direcory to see whethe you have modified correctly ,especially for "system" var.
second,please check the permision of these warnig files and have a try to set them 777

my email :support@bestshop24h.com
my wechat:bestshop24h
my extension:https://www.opencart.com/index.php?rout ... estshop24h


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm

Post by Earl hickey » Sat Jan 12, 2019 7:28 pm

tingwing wrote:
Sat Jan 12, 2019 5:06 pm
first ,please check the content of config.php at root direcory to see whethe you have modified correctly ,especially for "system" var.
second,please check the permision of these warnig files and have a try to set them 777
Thanks tingwing
I actually have no idea how to do that because i'm the dummy the "for dummies" books are written about but will try to work it out somehow and no idea why this has all of a sudden happened...is weird as haven't been tinkering with anything to break it. Appreciate the help mate, thank you

Newbie

Posts

Joined
Sat Mar 17, 2018 8:02 pm

Post by OSWorX » Sat Jan 12, 2019 8:31 pm

As the message tells you, the file does not exist (or has some wrong permissions and/or owner):

Code: Select all

/home/chiwohlq/ocartdata/storage/logs/error.log
Second, disable the output of error message, only log them!

Third: never ever !!!! set permissions to any file or folder to 0777
This is the most stupid advice others can give you!
Why?
Because with 0777 you open up the door for everyone!
Only 0755 for folders and 0644 for files (sometimes - depends on the provider - 0750 and 0640)

Fourth: did you edit the config files and made an error in defining the paths?
Check them.

Forum Rules [en]: viewtopic.php?f=176&t=200480
Forumregeln [de]: viewtopic.php?f=37&t=114208
Commercial Request: viewforum.php?f=88

Image


User avatar
Guru Member
Online

Posts

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

Post by paulfeakins » Mon Jan 14, 2019 7:24 pm

tingwing wrote:
Sat Jan 12, 2019 5:06 pm
second,please check the permision of these warnig files and have a try to set them 777
Yeah, don't do this.

Folders: 755
Files: 644

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom
Who is online

Users browsing this forum: No registered users and 16 guests