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.
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.
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.
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.
Many thanks.
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.
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.
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.
Who is online
Users browsing this forum: No registered users and 6 guests