K
K
ksenia_strakhova2019-09-03 15:38:58
Joomla
ksenia_strakhova, 2019-09-03 15:38:58

How to fix logs on Joomla after updating php to version 7.1?

After updating php to 7.1, instead of the site, an error pops up:
Error: 0
Using $this when not in object context
According to the logs, it shows that the errors are in the template in the /templates/template name/php/template.php file
, namely in these lines:

$path = JPATH_THEMES . DS . $this->_document->template;

$this->flashFull = $this->pathFull . DS . 'flash';
        $this->imgFull   = $this->pathFull . DS . 'images';
        $this->cssFull   = $this->pathFull . DS . 'css';
        $this->jsFull    = $this->pathFull . DS . 'js';

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question