PHP errors

Writer is a clean and professional theme for blog or personal website.
GK User
Thu May 04, 2017 5:44 pm
I keep getting hundreds of errors in my PHP log for one the of template override files:

[04-May-2017 00:56:14 CST6CDT] PHP Notice: Undefined variable: row in /home/xxxxxx/public_html/templates/gk_writer/html/com_content/category/blog.php on line 104


That line is:

Code: Select all
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-'.$row ; ?>">


What can I do to fix this? I'm using Joomla 3.6.5 and the latest version of the Writer template.
User avatar
Fresh Boarder

teitbite
Mon May 08, 2017 4:29 pm
Hi

I see no use for this $row in code. That's most probably why it was passed, because older PHP versions were ignoring such notifications.

Please simply change this line to:

Code: Select all
<div class="items-row cols-<?php echo (int) $this->columns;?>">
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.