After a thousand attempts, I found the origin of the issue.
It is in the override file: html/com_content/article/default.php , created to use Joomla Custom Fields to Add Canonical URLs.
The code that generates the error is as follows:
What correction do you suggest?
It is in the override file: html/com_content/article/default.php , created to use Joomla Custom Fields to Add Canonical URLs.
The code that generates the error is as follows:
Code:
//Check custom fields for canonical linkforeach ($this->item->jcfields as $field) {if ($field->title === 'Canonical URL') {//Make sure the field isn't emptyif ($field->rawvalue !== '') {$canonicalLink = '<link rel="canonical" href="' . $field->rawvalue . '" />';$document = JFactory::getDocument();$document->addCustomTag($canonicalLink);}continue;}};
Statistics: Posted by sgiobbio — Mon Apr 08, 2024 9:04 pm