Using $this when not in object context

Phoca Download - download manager
mcanonic
Phoca Member
Phoca Member
Posts: 33
Joined: 19 Dec 2009, 02:46

Using $this when not in object context

Post by mcanonic »

Hi,
I'm having the issue in the subject and no phocadownload files are available.
I've activate the debug and here you can see what I get when I try to download a file:
https://www.comune.rivarone.al.it/index ... Itemid=145

Any idea of what could be done to fix it?
Thanks,
M

Tags:
mcanonic
Phoca Member
Phoca Member
Posts: 33
Joined: 19 Dec 2009, 02:46

Re: Using $this when not in object context

Post by mcanonic »

I realized that I had the 3.0.3 version, now I've updated the last version (3.1.7) and now it works.
I was wondering why I did not get automatic update.
Do you know why?
Thanks,
M
christine
Phoca Hero
Phoca Hero
Posts: 2732
Joined: 28 Nov 2010, 17:20

Re: Using $this when not in object context

Post by christine »

Hi mcanonic,

Some generell informations concerning "Fatal Error 0 Using $this when not in object context"

This error we could see very often in the past, in connecting with PHP 7.2 >
- some extensions
- some templates
- framework, not updated e.g. Helix plugin
etc. ...
Example: https://github.com/joomla/joomla-cms/issues/21258

In the meantime, all Phoca extensions are ready for PHP 7.2 / (7.3)
I was wondering why I did not get automatic update.
There were problems with update Server. The update manifest.xml has been recently reuploaded from Jan.
Actual one: https://github.com/PhocaCz/PhocaDownloa ... nifest.xml

https://www.phoca.cz/news
Kind regards

Christine
mcanonic
Phoca Member
Phoca Member
Posts: 33
Joined: 19 Dec 2009, 02:46

Re: Using $this when not in object context

Post by mcanonic »

Thanks Christine.
I'm not sure if now I already have the new xml file since I've updated to 3.1.7 or I have to manually upload the new xml file.
Thanks,
M
christine
Phoca Hero
Phoca Hero
Posts: 2732
Joined: 28 Nov 2010, 17:20

Re: Using $this when not in object context

Post by christine »

Hi mcanonic,

as everything will work (now) as expected, it seems you have the latest one.
It was just explanation about the "fatal error" resp. problems with Update Server weeks ago.

Kind regards
Christine
Post Reply