jDownloads Support Forum

jDownloads for Joomla 3.x => jDownloads 3.9 (Support ended) => Bugs => Topic started by: le5 on 20.08.2020 10:32:44

Title: Cannot declare class JDHelper, because the name is already in use in
Post by: le5 on 20.08.2020 10:32:44
Just made a installation on my Testserver. Backend works perfect. Added the Default Category View to Frontend and just get following Error:

Fatal error: Cannot declare class JDHelper, because the name is already in use in \httpdocs\components\com_jdownloads\helpers\jdownloads.php on line 29. For Testing I use a Windows Server 2016 with IIS 10.0.14393.0 and PHP (tested 7.1 and 7.3).
But I allways get this error. Any Advice?
Title: Re: Cannot declare class JDHelper, because the name is already in use in
Post by: ColinM on 21.08.2020 11:04:48
Hi
Not sure I understand properly!Could you please  explain what you did  with "Added the Default Category View to Frontend" as I do not understand.Normaally I would not expect anything to be 'added' except creating new jD Categories and Downloads

Is this a new install of jD 3.9 or is it an upgrade?Best wishesColin
Title: Re: Cannot declare class JDHelper, because the name is already in use in
Post by: le5 on 26.08.2020 16:17:15
Dear Colintill here, everything worked perfectly out. just in the front end, when i click on this new menu item, i get the described error.
thx and best regards - pawel
Title: Re: Cannot declare class JDHelper, because the name is already in use in
Post by: Arno on 26.08.2020 18:06:58
Hi,
very strange! I think not that we can reproduce this error.
But I will try it.
Have you changed any settings in jD? Have you published on this menu page any jD modules? Use you jD plugins?
Title: SOLVED!Re: Cannot declare class JDHelper, because the name is already in use in
Post by: le5 on 27.08.2020 12:03:25
Dear Arno


best regards
pawel
Title: Layouts
Post by: le5 on 27.08.2020 12:15:18
ps. if you uninstall jdownloads (and keep alle the tables) and reinstall jdownloads you have double layouts (default layouts), which you cant delete. must do it manual in db.
Title: Re: Cannot declare class JDHelper, because the name is already in use in
Post by: Arno on 27.08.2020 16:15:12
Hi Pawel,
many thanks for this information.  ;)

QuoteThe Plugin of this component uses the same namespace
You mean it has also a plugin with jdownloads as name?

Quoteif you uninstall jdownloads (and keep alle the tables) and reinstall jdownloads you have double layouts (default layouts), which you cant delete. must do it manual in db.
Okay. I will add this as bug report.
Title: Re: Cannot declare class JDHelper, because the name is already in use in
Post by: le5 on 27.08.2020 16:49:01
no, the component name is joom-download.
But it looks like a plugin uses the same helper class name.