jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: belini on 10.04.2018 16:47:28

Title: Fatal error after update to 3.2.59 - Solved!
Post by: belini on 10.04.2018 16:47:28
After upgrading to version 3.2.59 jDownloads stopped working on the site, showing the following error:

Fatal error:  Cannot redeclare class JDHelper in /html/components/com_jdownloads/helpers/jdownloadshelper.php on line 23

In the administrative area everything looks ok.

I upgraded using the Joomla Extensions: Update screen

Title: Re: Fatal error after update to 3.2.59
Post by: ColinM on 10.04.2018 17:14:52
Hi
Can you please try by downloading. and using Install.
Colin
PS I am on train at present and only have my phone with me.
Title: Re: Fatal error after update to 3.2.59
Post by: Arno on 10.04.2018 17:54:24
I cannot confirm this. On all my installations works it properly (also here in the downloads area). Please install it again.
Title: Re: Fatal error after update to 3.2.59
Post by: belini on 10.04.2018 19:15:29
I solved the problem.

Well, I downloaded the package, installed it and the error continued.

Luckily I upgraded the "homologation server", which is a production-like system where I apply the updates and do development tests before putting them into production.

I've already used jDownloads for some time and the updates always worked, this is the first time the problem occurs.

What I did was fetch in the system any file that had the word "class JDHelper" inside it and it found in two places:

./plugins/system/jd/jd/helper.php:abstract class JDHelper
./components/com_jdownloads/helpers/jdownloadshelper.php:class JDHelper

I found that strange directory ".../jd/jd/...", I believe it's some leftover from some old test of some other component, I removed the directory and everything was ok.

On the production server there is no such directory which I believe will not have any errors in the update

It is.
Thanks.
Title: Re: Fatal error after update to 3.2.59 - Solved!
Post by: Arno on 10.04.2018 20:00:14
Okay. Thanks for the update.  ;)