I made small search for this error. there are a lot of topics but looks like none of them apply to me. As I see it this code is perfectly fine. Why do I have an error?
<ul class="uk-grid uk-text-center" data-uk-grid-margin>
<?php foreach ($cats as $cat): ?>
<li class="uk-width-medium-1-5">
<a href="<?php JRoute::_($cat->link)?>">
<?php if ($cat->level == 1) :?>
<img src="<?php $cat->image;?>" alt="<?php $cat->description; ?>" width="175" height="80">
<?php else: ?>
<img src="<?php $cat->image;?>" alt="<?php $cat->description; ?>" width="135" height="135">
<? endif;?>
<h2 class="uk-article-title">
<?php $cat->title; ?>
</h2>
</a>
</li>
<?php endforeach; ?>
</ul>
Here is my php version
/var/www/localhost # php -v
PHP 7.4.15 (cli) (built: Feb 8 2021 20:31:57) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
But I do not think it is a problem because i started from 7.2 and then 7.3 and all gave same result.
Ссылка с ошибкой http://flareapp.io/share/4m4oEOJ5