• Resolved philw123

    (@philw123)


    Enjoying the plugin, but I recently discovered it is filling my logs with errors, despite the page appearing to render correctly. On that page is several instances of the Post Grid #1 block.

    I enclose a line from my error.log:

    PHP Warning: Division by zero in /home/phil/websites/www.rentrockrepeat.com/www/wp-content/plugins/ultimate-post/classes/Functions.php on line 248, referer: https://www.rentrockrepeat.com/

    This error is generated twice for each refresh of the page.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter philw123

    (@philw123)

    Additional information:

    I’ve found the set of circumstances that replicate this bug. In the query settings I have a non-zero positive value for ‘offset post’, and zero for ‘number of posts’. This renders all posts beyond the offset (which is what I want to achieve). I can set a maximum value of 50, but I don’t want to truncate the results when we eventually exceed that number of posts.

Viewing 1 replies (of 1 total)

The topic ‘Division by zero error’ is closed to new replies.