jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: jazzbird on 18.11.2022 16:10:11

Title: jDownloads 4.0 installation fails
Post by: jazzbird on 18.11.2022 16:10:11
My first attempt to install the updated extension:

JInstaller: :Install: Error SQL Duplicate column name 'importance'
Extension installation aborted.
Error installing component
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 18.11.2022 17:01:42
Oh! Not good, sorry. I will check this quickly.

Please note that I need always a few informations:

- Joomla Version?

- PHP Version?

- Was Joomla updated to Joomla 4 before the installation attempt or is it a new Joomla 4 installation?

- Did a jDownloads version already exist on this Joomla installation?

- Have you tried to upgrade a jDownloads 3.9 version?
Title: Re: jDownloads 4.0 installation fails
Post by: jazzbird on 18.11.2022 17:09:31
-Joomla version 4.2.5
-PHP 8.0
-Joomla was updated from 3.9 to 4.2 before the installation.
-Yes, I've been using jDownloads 3.9 with Joomla 3.9. I believe jDownloads was disabled before the Joomla update.
-Yes, as per your recommendation, I tried upgrading jDownloads 3.9 to 4.0
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 18.11.2022 17:11:40
Thanks, I will check it quickly.
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 19.11.2022 00:38:44
I cannot reproduce your problem here.

QuoteI believe jDownloads was disabled before the Joomla update.
Can it be, that this was also the status as you have tried to run the jDownloads upgrade?

If so, then enable jDownloads and try then again to run the upgrade.
Title: Re: jDownloads 4.0 installation fails
Post by: jazzbird on 19.11.2022 03:22:43
Ugh! I tried enabling the component and it has broken my site! Now I can't even go to Manage Extensions. It gives me an error message. Help!
Title: Re: jDownloads 4.0 installation fails
Post by: jazzbird on 19.11.2022 03:29:50
It has completely wrecked my site. I cannot manage extensions, plugins, modules, or any content. They all give me the same error as above. In fact I see that the extension has crashed the whole site. See attached screenshot. Please help me to fix this. This is a disaster.
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 19.11.2022 11:29:21
Please use your backup and try the upgrade again. But with enabled jDownloads component.
Title: Re: jDownloads 4.0 installation fails
Post by: jazzbird on 19.11.2022 14:48:07
Can this not be undone? I just spend a month of work migrating and upgrading the website. It was almost done and jDownloads was supposed to be the "finishing touch." I just enabled the extension and a couple of jDownloads plugins and it has completely disabled the site.

My developer has some backups but I don't know how recent they are and he doesn't work over the weekend. I'm wondering if there is a way to bypass whatever plugin has wrecked the website so I can have access to the menus again in the backend and disable them.

The website is developer.catholicsforisrael.com

Thanks for any suggestions or help.
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 20.11.2022 15:37:53
Hi,
excuse me for the delay.

I'm sorry, but as a developer you should know how easily such things can happen when testing a beta version. Also, I have explicitly pointed out to ALWAYS create a corresponding data backup before. This is common practice and it is better to make 3 backups a day too much, which you don't need afterwards, instead of one too little!

Probably the problem only occurred because they had disabled the jDownloads component in the manager, instead of just the system plugin. Such a case I had not foreseen and therefore not tested.

But no matter, is now just happened. Please create at least NOW a complete backup. Then write me via PM and let's see.
Title: Re: jDownloads 4.0 installation fails
Post by: jazzbird on 20.11.2022 19:13:51
Thanks for the reply, Arno. I am actually not the developer but the owner of the site. With the help of my developer, we went into the database, disabled the jDownloads plugins one by one, and were able to restore the website. It looks like it was the plg_content_jdownloads that crashed the site. I'm attaching a screenshot of all the jDownloads extensions. There are many of them. What should I do before I try again to install the 4.0 version? Should only the jDownloads administrator component be enabled and all the plugins and modules disabled?
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 21.11.2022 10:25:16
Hi,
if the state BEFORE your first upgrade attempt could really be restored, you can now try an upgrade again (after a complete backup !!). For this all jDownloads extensions must be switched ON before! The only exception should be the system plugin of jDownloads. This should be switched OFF.

No other user currently testing jDownloads got your problem during the upgrade. Therefore, it must be somehow related to your installation.
But maybe it really just had to do with the jDownloads extensions disabled on them. Probably the installation script does not recognize that it is only an update and tries a new installation instead.



Title: Re: jDownloads 4.0 installation fails
Post by: jazzbird on 21.11.2022 15:48:51
OK, thank you. I've invited my developer to join this thread and he will attempt the next upgrade. By "system plugin" I presume you mean the "Content - jDownloads 3.9" plugin that previously crashed the site?
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 21.11.2022 15:56:39
NO!! This is a content plugin, not the jdownloads  System plugin.
Title: Re: jDownloads 4.0 installation fails
Post by: jazzbird on 21.11.2022 16:04:00
I can't see a jDownloads system plugin on the list I provided above. And the content plugin certainly can't be turned on. This is the one that completely crashes the site.
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 21.11.2022 16:24:12
Maybe on the second Page?

Your developer should do this.
I am not in my Office in the moment. More later.
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 21.11.2022 17:16:48
You should try this settings. See pic.
Title: Re: jDownloads 4.0 installation fails
Post by: Chamira on 23.11.2022 08:47:26
Hello Arno,

I can confirm that after disabling the items you have listed in the screenshot above (and enabling the others) I was able to install the pre-beta version. 

Previously, enabling Content - jDownload 3.9 plugin gave the error Call to undefined method Joomla\CMS\Application\AdministratorApplication::isSite()

After the installation we can enable the Content - jDownload plugin without any errors.
Title: Re: jDownloads 4.0 installation fails
Post by: Arno on 23.11.2022 10:56:02
Thanks for the result.

QuoteCall to undefined method Joomla\CMS\Application\AdministratorApplication::isSite()
I will test and fix this.
Title: Re: jDownloads 4.0 installation fails - solved resp. not reproducable!
Post by: Arno on 23.11.2022 12:00:23
Okay. I have it tested now.
Upgrade from 3.9.8.6 to 4.0.2 pre-beta after Joomla upgrade to 4.2.x.

State before upgrade:
- jDownloads System Plugin: disabled
- all other jDownloads Plugins are enabled
- all jDownloads Modules are enabled

The upgrade works successfully without any error message.

I must therefore assume that your problems are related to the state of your Joomla and/or jDownloads installation and therefore the cause is probably not a general error.

Therefore this bug report is now closed.

If you find new bugs, please create new topics for them.