News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Downloading zip files - unable to create archive - [Fixed in 3.2.7]

Started by jacoposabba, 02.06.2014 17:25:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jacoposabba

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!
  •  

Arno

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)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •