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

Options Import & Reset issues

Started by nzrunner, 31.07.2025 14:07:23

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nzrunner

Joomla: 5.3.2
jDownloads: 4.0.47

I recently had some issues with jDownloads on a site. I suspected the files had not installed properly so I decided to uninstall it completely, delete the database tables, and the files, and start over. Of course, before doing that I backed up my files and exported the options.

Then, I reinstalled jDownloads. Everything looked fine, so I imported my options, and that's where my issue arose. Now, whenever I go to the jDownloads dashboard, I get a warning alert at the top that says "Warning! Cannot create a categories folder." A screenshot is shown below.



I have been trying to diagnose this, and have compared an options export from two sites, and there is one field, near the bottom that is different. The field is uncat_already_created and in the website with the aforementioned error, it is set as "0" whereas in the website without the error, it is set as "1".

I thought I'd reset my options, edit the export file and reimport the options. Sadly, neither the reset nor the import seem to have worked. The Options reset doesn't seem to make an changes as I can see the options I have changed are still set at my values rather than the default ones. In addition, the uncat_already_created is still set as "0".

So in summary I cannot get an Options reset to reset the settings to default and in all cases, changing the text file before import still results in the uncat_already_created field being set as "0" and a warning message appearing.

Any thoughts
Mark
Marathon Software
https://marathonsoftware.com.au
  •  

ColinM

Hi,
When I did an Options export it has "uncat_already_created":"1" and for reference it had
"fileplugin_defaultlayout":"Compact Files Layout v3.9 (2)"

So I then did an Options Reset and that gave "uncat_already_created":"0".  It also set "fileplugin_defaultlayout":"" .
MyjDownloads still works AOK.
Will look further.
Best wishes
Colin
Colin M
  •  

Arno

Hi Mark,
thanks for the posted issue.

The uncat_already_created switch contains the information as to whether the category required by default during the first installation: Uncategorised was successfully created.

I will have another look at the handling of these variables when resetting and importing.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

Okay, I've had a look at the details:

- The default_params.txt file contains the default values of (almost) all variables so that they can be reset to the initial value after installation.
- However, the value for uncat_already_created is set to 0 - therefore an attempt is made to create this category again after the reset if it does not yet exist.

As Colin has already stated, neither he nor I can detect any problems during tests.

I therefore recommend the following procedure:
- copy the file below into your server directory /administrator/components/com_jdownloads/ and overwrite the old file. I have changed the default value for uncat_already_created from 0 to 1.

Then try resetting the options again.
This went smoothly for me. Also an import of other option values.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

nzrunner

Colin and Arno

Thanks for looking at this. I am pleased to advise that I have been able to resolve my original error message and it appears to be unrelated to the uncat_already_created flag.

However, my Options Reset and Options Import issues remain. I have two DEV sites that I haven't used in years, and I ran the following steps in one of them. Both DEV sites are running Joomla 5.3.2.

Options Reset Test
  • Install jDownloads (4.0.47)
  • Create the required menu item
  • Export the Options using the Tools menu (for later use)
  • Change the following two options to NO: -
    • Global Settings - Enable Fields
    • Global Settings - View Price Field in backend Downloads List
  • Run Options Reset from the Tools menu

The two options shown above are still set as NO.

Options Import Test
  • Run Options Import from the Tools menu using the file exported in step 3 above

The two options shown above are still set as NO.

I expected that the two options would be reset to YES when I run both Options Reset and Options Import. Am I doing something wrong or is my expectation wrong?

Cheers

Mark
Mark
Marathon Software
https://marathonsoftware.com.au
  •  

Arno

Hi Mark,
okay, I will test it in your way again.  ;)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •