jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: blondie63 on 26.02.2023 16:36:49

Title: Deprecated : Creation of dynamic property - [Fixed in 4.0.19]
Post by: blondie63 on 26.02.2023 16:36:49
I've this warning when i use PHP > 8.0 and JDownloads 4.0.17 beta

Deprecated
: Creation of dynamic property JDownloads\Component\JDownloads\Site\Helper\LegacyRouter::$router is deprecated in
/home/cavi22/webapps/cavinato2022/components/com_jdownloads/src/Helper/LegacyRouter.php
on line
41

Is there a fix ?
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 26.02.2023 17:53:01
Sorry. I will check this.
Title: Re: Deprecated : Creation of dynamic property
Post by: blondie63 on 26.02.2023 17:55:32
I've tried with 8.1 and 8.2 and both have same msgs
What you mean for "global Joomla sef settings" ?

Thanks
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 26.02.2023 18:36:57
I have my first answer removed as it was wrong. So forget this please.
I will fix it and will post here a short fix.

Is this the only error with a problem like this?
Title: Re: Deprecated : Creation of dynamic property
Post by: blondie63 on 26.02.2023 18:52:55
at now yes, i'll let you know if found others
Title: Re: Deprecated : Creation of dynamic property
Post by: blondie63 on 27.02.2023 17:05:34
when you plan to release a fix ?
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 28.02.2023 10:48:45
Maybe later today.
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 28.02.2023 11:43:24
I have tried to reproduce this on PHP 8.1.12, but not possible.
- jDownloads 4.0.17 beta
- Joomla sef settings see pic
Title: Re: Deprecated : Creation of dynamic property
Post by: blondie63 on 28.02.2023 15:41:53
I've tested with same your config and i've warning, on top of page i see this:
Deprecated
: Creation of dynamic property JDownloads\Component\JDownloads\Site\Helper\LegacyRouter::$router is deprecated in
/home/cavi22/webapps/cavinato2022/components/com_jdownloads/src/Helper/LegacyRouter.php
on line
41
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 28.02.2023 19:05:30
On which page exactly did you receive this message?
Title: Re: Deprecated : Creation of dynamic property
Post by: blondie63 on 01.03.2023 08:07:55
You can see here: https://beta.cavinato.com/it/divisioni-it/pavimenti

but the strange thing is that page has no jdownloads module
jdownloads is here: https://beta.cavinato.com/index.php/it/download-it/category/14-ita
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 01.03.2023 21:18:24
Oh. At first you should quickly deactivate the Debug option in Joomla global config! And change also the Error Reporting Level in the TAB Server to System default. This should hide the most 'deprecated' messages.

I will publish tonight or tomorrow the next beta version. You should then install it soon.
Title: Re: Deprecated : Creation of dynamic property
Post by: blondie63 on 02.03.2023 12:35:14
Hi, i've disactivated all debug and logs but the same i see warnings..
https://beta.cavinato.com/it/divisioni-it/pavimenti

4.0.18 still not released.. problems ?
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 02.03.2023 19:31:23
Will be published in the next hours.  ;)

But it is not sure that this version can solve your problems.
Title: Re: Deprecated : Creation of dynamic property
Post by: blondie63 on 03.03.2023 08:36:39
Yes, beta 18 not solve my issue :(
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 03.03.2023 09:49:13
Hi,
could I get access to your backend? When possible, send me data via PM.
Title: Re: Deprecated : Creation of dynamic property
Post by: Arno on 04.03.2023 20:37:36
Fixed in 4.0.19. Closed.
Title: Re: Deprecated : Creation of dynamic property - [Fixed in 4.0.19]
Post by: ColinM on 14.03.2023 18:33:16
Hi
I have not been able to reproduce!
Could you please advise where or when  in jD does this occur.  For example is when you first open the jD component or maybe when trying to create a Download.
Thanks
Colin
Title: Re: Deprecated : Creation of dynamic property - [Fixed in 4.0.19]
Post by: Arno on 14.03.2023 21:33:41
Quote from: ColinM on 14.03.2023 18:33:16
Hi
I have not been able to reproduce!
Could you please advise where or when  in jD does this occur.  For example is when you first open the jD component or maybe when trying to create a Download.
Thanks
Colin

Colin,
you need a PHP 8.1 version to reproduce this.
But it is already fixed!