When I upgraded from J3 to J4, I started getting following error
"Modulo by zero". Stack trace: #0 [ROOT]/libraries/src/MVC/View/HtmlView.php(410): include()

I tracked down the error to this code
$rowcount = (((int) $key - 1) % (int) $this->columns) + 1;
in
templates/ja_social_ii/html/com_content/featured/default.php

Would appreciate some help on how to correct this.
Thanks.

After reviewing an old post of mine, I see that the column setting comes from the menu settings. The number of columns is set to three, but it seems that the value isn't being passed in. Or it is being passed in some other way and the code needs to be updated accordingly.

Ok. Looks like I need to upgrade the default.php file. Going to try using what's under base-bs3.

That did it. Looks a lot better now. Is there some documentation on what other things I might need to check/upgrade? Thanks.

    Write a Reply...
    You need to Login to view replies.