gsuez / master-bootstrap-3

Joomla 3.x Template with Bootstrap 3
https://www.masterbootstrap.com/
142 stars 90 forks source link

PHP error in template #61

Open j0hannes opened 3 years ago

j0hannes commented 3 years ago

Hi,

I found this error:

Notice: Only variables should be assigned by reference in .../masterbootstrap/html/com_content/article/default.php on line 44

There, we find this line $doc =& JFactory::getDocument();

The origin lies in the introduction of the new keyword in PHP 7 (see https://www.php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other). Is this template only compatible with PHP version 5.x? Can it be adjusted to also run with recent versions (7 and 8)?