Post by Yixuan_lee » Mon Feb 04, 2013 6:25 pm

Hallo,

I get error log as following:
2013-02-04 10:46:36 - PHP Warning: fopen(..../public_html/download/test) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in admin/controller/common/home.php on line 99
2013-02-04 10:46:36 - PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /admin/controller/common/home.php on line 101
2013-02-04 10:46:36 - PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /admin/controller/common/home.php on line 103
2013-02-04 10:46:36 - PHP Warning: sprintf() [<a href='function.sprintf'>function.sprintf</a>]: Too few arguments in /admin/controller/common/home.php on line 106

---------------------------here is home.php------------------
// Check download directory is writable
$file = DIR_DOWNLOAD . 'test';

line99 $handle = fopen($file, 'a+');

fwrite($handle, '');

line101 fclose($handle);

if (!file_exists($file)) {
line103 $this->data['error_download'] = sprintf($this->language->get('error_download'). DIR_DOWNLOAD);

I checked forum, it seems related with setting of permission. How can I exactly fix the problem? By the way, I am using OC1.5.4 and I do not have downloadable products.

Thanks.

Newbie

Posts

Joined
Sat Dec 08, 2012 6:16 pm

Post by i2Paq » Mon Feb 04, 2013 7:47 pm

Windows or *nix install?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Yixuan_lee » Mon Feb 04, 2013 8:59 pm

local computer is Window. but my webhosting is Hostpapa, I do not know their system.

Newbie

Posts

Joined
Sat Dec 08, 2012 6:16 pm

Post by Yixuan_lee » Mon Feb 04, 2013 9:34 pm

It happens only when I login the admin panel, afterwards everything is normal. Does it matter so much? So far, I do not see any functional mistakes. What kinds of problems would it cause?

Many thanks.

Newbie

Posts

Joined
Sat Dec 08, 2012 6:16 pm

Post by i2Paq » Tue Feb 05, 2013 1:10 am

So you are running Wamp or Xammp?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Yixuan_lee » Wed Feb 13, 2013 4:27 am

I do not understand what you mean. What is Wamp or Xammp?

I use Win7 in my local computer, but opencart is installed on Hostpapa server. It should have nothing connected with my local computer.

It still appears everytime when I login the admin panel, but afterwards, it does not appear anymore.

Newbie

Posts

Joined
Sat Dec 08, 2012 6:16 pm
Who is online

Users browsing this forum: No registered users and 32 guests