jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: jacoposabba on 02.06.2014 17:25:04

Title: Downloading zip files - unable to create archive - [Fixed in 3.2.7]
Post by: jacoposabba on 02.06.2014 17:25:04
In 3.2.5 beta, when trying to download a group of files into a zip archive, the following message on the summary page appeares:

"Error! Not possible to create the zip file.
Please contact the Webmaster."

The bug is due to the new structure of the table _jdownloads_categories, where the category path is now splitted into cat_dir and cat_dir_parent

My solution
1) I've edited the file components/com_jdownloads/models/summary.php at line 159 adding the following at the query: c.cat_dir_parent AS category_cat_dir_parent
2) in file  components/com_jdownloads/views/summary/tmpl/default.php i've replaced $cat_dir = $files[$i]->category_cat_dir.'/'; (line 513) with $cat_dir = $files[$i]->category_cat_dir_parent.'/'.$files[$i]->category_cat_dir.'/';

Now everything works!
Title: Re: Downloading zip files - unable to create archive - Fixed in 3.2.7 !!!
Post by: Arno on 04.06.2014 15:04:44
Hi,
many thanks for the posted bug.
Will be fixed also in 3.2.6. 3.2.7 ... (sorry, i have forget to fix this bug in 3.2.6)