Skip to content

PHP error in template #61

@j0hannes

Description

@j0hannes

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions