Hello, same problem here, after updated the plug in I received the message: /html/wp-content/plugins/category-posts/cat-posts.php on line 257
Hello,
we fixed the bug and release a new version 4.1.7. This version should patch the problem.
Can you give us a short feedback, if the patch which comes with 4.1.7 works for you?
Oh my god, no!! now it’s worst it’s showing two different error messages:
Warning: Division by zero in /nfs/c06/h04/mnt/154817/domains/indicepolitico.com/html/wp-content/plugins/category-posts/cat-posts.php on line 259
Warning: Division by zero in /nfs/c06/h04/mnt/154817/domains/indicepolitico.com/html/wp-content/plugins/category-posts/cat-posts.php on line 264
Same error
/home/content/p3pnexwpnas06_data02/42/2434642/html/wp-content/plugins/category-posts/cat-posts.php on line 257
The error occur when we use post thumbnail, otherwise the plugin is working fine.
But without thumbnail ( PIC) it is of no use.
You can check it on http://www.caquery.com
The current error, after second update is as follows:
Warning: Division by zero in /home/content/p3pnexwpnas06_data02/42/2434642/html/wp-content/plugins/category-posts/cat-posts.php on line 264
Can you tell me what you have setted for thumbnail width and height?
And what have you setted in (WordPress settings, left sidebar) Settings > Media > Large size?
In mi case I use 160×143 pixels… and I don’t have anything on the sidebar
I mean this: https://www.dropbox.com/s/v0gg5s5nfwr7f2t/MediaSettings.PNG?dl=0 Is there nothing filled? Can you fill the same like the screenshot shows?
Which size have your original images you use for upload for thumbnails? If they are very small?
150×150 pixels it’s the messure..in fact I have the same values that the ones that you show me on your screenshot.
And for ‘Medium size’ and ‘Large size’? Your width is bigger than the ‘Thumbnail size’ and the thumbnail image is not choosen. We code a fallback up to Large size.
Can you choose for ‘Thumbnail size’ 200×200? Or/and upload a new image?
I see your point, the problem is the size of the image, I have replaced some of them and now it’s working fine.
Hello,
we made a bugfix for this issue with smaller uploaded images.
Are you familair with GitHub? Because you can download the code there (https://github.com/mkrdip/category-posts-widget) and copy it to your plugin folder ([your-wp-installation]/wp-content/plugins/category-posts-widget) to your wordpress installation.
I have followed your instructions and when I use the updated bugfix I get this message: Parse error: syntax error, unexpected ‘[‘ in /nfs/c06/h04/mnt/154817/domains/indicepolitico.com/html/wp-content/plugins/category-posts/cat-posts.php on line 255
now it’s no longer pulling posts from the selected category