error log admin../common/home.php line 99,101,103,106
Posted: 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.
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.