Page 1 of 1

error in download in front-end

Posted: Fri Mar 20, 2009 10:00 pm
by tmblue

Code: Select all

Notice: Undefined index: mask in C:\xampp\htdocs\opencart\catalog\controller\account\download.php on line 61

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\opencart\catalog\controller\account\download.php:61) in C:\xampp\htdocs\opencart\system\library\response.php on line 65
This gave me a warning when i went to the download session in account infomation.
I viewed the download.php file at line 61th, i see this code :

Code: Select all

$size = filesize(DIR_DOWNLOAD . $result['mask']);
so mask seem not to be declared before, i dont know what it mean ???

Re: error in download in front-end

Posted: Sat Mar 21, 2009 12:19 am
by fido-x
Changing the line from:

Code: Select all

$size = filesize(DIR_DOWNLOAD . $result['mask']);
to

Code: Select all

$size = filesize(DIR_DOWNLOAD . $result['filename']);
should fix it.

Re: error in download in front-end

Posted: Sat Mar 21, 2009 2:23 am
by Daniel
I'm going to add this fix and possible release tonight.

Re: error in download in front-end

Posted: Sat Mar 21, 2009 6:20 am
by Daniel
Just done anopther release with this fix in and the download fix.

Re: error in download in front-end

Posted: Sat Mar 21, 2009 1:03 pm
by tmblue
many thx to admin :D