This is an error raised on using PHP 8.x, on line 33 of file popularity-posts-widget.php.
This can be easily solved like this:
add_action(‘widgets_init’, ‘ppw_widgets_init’);
function ppw_widgets_init() {
? ? return register_widget(“PopularityPostsWidget”);
}
Would be nice to see that plugin working with PHP 8.x
]]>Latest version is not compatible with PHP 8.x because “Unparenthesized a ? b : c ? d : e
is not supported”.
This can be solved easily replacing code from lines 330 to 344 on file class_popularity-posts-widget.php:
? ? ? ? ? ? $shortcode_ops = array(
? ? ? ? ? ? ? ? 'header' => strip_tags($header),
? ? ? ? ? ? ? ? 'range' => (in_array($range, $range_values)) ? $range : 'all',
? ? ? ? ? ? ? ? 'number' => empty($limit) ? 5 : ((is_numeric($limit)) ? (($limit > 0) ? $limit : 5) : 5),
? ? ? ? ? ? ? ? 'posts_title_length' => empty($title_length) ? 60 : ((is_numeric($title_length)) ? (($title_length > 0) ? $title_length : 60) : 60),
? ? ? ? ? ? ? ? 'comment_checkbox' => empty($stats_comments) ? false : $stats_comments,
? ? ? ? ? ? ? ? 'views_checkbox' => empty($stats_views) ? false : $stats_views,
? ? ? ? ? ? ? ? 'date_checkbox' => empty($stats_date) ? false : $stats_date,
? ? ? ? ? ? ? ? 'show_cat' => empty($category) ? false : true,
? ? ? ? ? ? ? ? 'cat_ids' => $category,
? ? ? ? ? ? ? ? 'date_format' => (in_array($stats_date_format, $stats_date_format_values)) ? $stats_date_format : 'format_three',
? ? ? ? ? ? ? ? 'show_thumbs' => empty($thumbnail_width) ? false : ((is_numeric($thumbnail_width)) ? (($thumbnail_width > 0) ? true : false) : false),
? ? ? ? ? ? ? ? 'width' => empty($thumbnail_width) ? 0 : ((is_numeric($thumbnail_width)) ? $thumbnail_width : 0),
? ? ? ? ? ? ? ? 'height' => empty($thumbnail_height) ? 0 : ((is_numeric($thumbnail_height)) ? $thumbnail_height : 0)
? ? ? ? ? ? );
Would be nice to see this compatibility update on new release.
]]>Check the compatibility of the Popularity Posts Widget plug-in with the current version of WordPress 4.9.5
Just plugin has not been updated for a long time, update it. It’s just that I still use them, but there are some incompatibilities of errors if I check via plugins: debug bar, Query Monitor
]]>I am showing my 20 most read posts on my blog. However, the space between links is very large and both look bad and take to much space.
You can see it on the right hand side of my blog here:
https://www.samuelssonsrapport.se
Is there anyone that can help me with this?
Regards
Sam
Just in case anyone else is having the same issue I was having…
If you’re on a “category page”, the widget filters out every category EXCEPT the ones for the page you’re on. I wanted to show the most popular posts regardless of category. I wanted ALL categories all the time.
I’m sure there’s a much more delicate way to fix that, but I went with the bigger hammer method…
I went in to edit the widget’s php code. Click “popularity-posts-widget/class_popularity-posts-widget.php”. Then delete ALL THE TEXT between “//////Categories filter” & “///////End filter”
Like I said, this may be overkill, but it seems to have worked for me.
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Hello, would it be possible to add a button to the widget, which could change range of the widget?
For example, widget shows the most popular posts from the last week, and I want to change it to show the most popular posts from the last month via button within the widget.
Would it be possible? Thank you for your ideas. Any help would be appreciated.
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Hi,
Thnaks for the plugin, and i would like to specify an issue that I face using this plugin…that sometimes the list of popular posts stops showing, and I do go to widgets section to click save and then it shows again! is there a bug or something that cause this problem ?
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Hi,
I was wondering what is the css code to reduce the width of the widget on my sidebar? Right now it’s a bit to wide and I’d like to shorten it to align with my other widgets.
My website is https://www.felinecreatures.com
Thank you!
– Lena
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>i’m using it with wordpress v3.9 and found problem when using custom prefix table (not using “wp_” prefix)
The problem lies in category filter it using plain wp_ query:
$rows = $wpdb->get_results("SELECT wp_terms.name, wp_term_taxonomy.term_taxonomy_id
FROM wp_terms, wp_term_taxonomy
WHERE wp_terms.term_id=wp_term_taxonomy.term_id
AND wp_term_taxonomy.taxonomy='category' ");
Solution:
Around line 114, change:
$table_name = $wpdb->prefix . "terms";
$rows = $wpdb->get_results("SELECT wp_terms.name, wp_term_taxonomy.term_taxonomy_id
FROM wp_terms, wp_term_taxonomy
WHERE wp_terms.term_id=wp_term_taxonomy.term_id
AND wp_term_taxonomy.taxonomy='category' ");
TO
$table_name = $wpdb->prefix . "terms";
$table_name_taxonomy = $wpdb->prefix . "term";
$rows = $wpdb->get_results("SELECT ".$table_name.".name, ".$table_name_taxonomy."_taxonomy.term_taxonomy_id
FROM ".$table_name.", ".$table_name_taxonomy."_taxonomy
WHERE ".$table_name.".term_id=".$table_name_taxonomy."_taxonomy.term_id
AND ".$table_name_taxonomy."_taxonomy.taxonomy='category'");
Around line 138:
CHANGE:
$rows_id = $wpdb->get_results("SELECT term_taxonomy_id
FROM wp_term_relationships
");
TO
$rows_id = $wpdb->get_results("SELECT term_taxonomy_id
FROM ".$table_name_taxonomy."_relationships
");
Hope this helps
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>After the last WP update, the post thumbnails stopped working. Any ideas on how I can fix it? Here is the link – https://blog.sklz.com/.
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Not working on multisite…
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Plugin don’t show thumbnails (but show standard “No Photo” picture) for picture page in my post (Link to the attachment post, is_attachment()).
Example:
post => site.com/post1 – ok, plugin show normal thumbnails from article
post picture => site.com/post1/image-from-post1 – plugin don’t show normal thumbnails from article, but show standard “No Photo” picture
How to fix it?
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>I uploaded this plugin to a clients site i am working on designing & even though I selected 4 posts to show up, it’s just showing one? I have a coming soon page up, so I can’t send the link but is there anyway to maybe loosen up the preferences so it pulls more posts? or is this an error?
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>I installed this plugin yesterday when I had 3 posts online, but today I uploaded a few more test posts on my website and suddenly I got this error:
Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
My sidebar doesn’t want to show up anymore. I chose to show 3 thumbnails/popular posts in sidebar.
Could anyone help me – how can I solve this issue?
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>for those who failed to filter by categories… i found slight bug in the query..
open class_popularity-posts-widget.php
on line 259, change:
“WHERE x.taxonomy = ‘category’ AND t.term_id IN ($res_cat)”
to
“WHERE x.taxonomy = ‘category’ AND x.term_taxonomy_id IN ($res_cat)”
This solves my problem, and hope yours too
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>My issue is very basic.
I am desperately trying to stop teh widget from displaying all post from the podcast category.
Here is what I’ve done but have no results.
I clicked Turn ON categories filter
Then I click on the category below that says Podcast.
I hit save.
the podcast post continue to display on the list of popular post.
Can you help me with this?
What I want to do is PREVENT any and all podcast post from displaying on the popular post list.
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Hi there,
I need to place the title of the top post under the thumbnail, can you explain where I go to change this in WordPress Editor please?
I can access the plugin .php files if needed also.
Regards
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Hello there,
I was wondering if it’s possible to make sure the converted PNG file which is used for the plugin can just use the same filename as the feature image?
Currently it’s taking the image from feature image “fast_car_2014” and turning it into “awd7d8a7h_123.png” plus it doesn’t retrieve the alt tag.
Is there a way to counter this so that the plugin retrieves the feature image “Fast_car_2014.jpg” and converts it to “fast_car_2014_ppw_etc.png” + ALT tag that was set for the image before hand?
Sorry if this is confusing but the plugin will damage SEO otherwise.
Regards
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Warning: imagejpeg(C:/wamp/www//wp-content/plugins/popularity-posts-widget/cache/1a4e0ae9e_160x80.png): failed to open stream: No such file or directory in C:\wamp\www\test\wp-content\plugins\popularity-posts-widget\kama_thumbnail.php on line 197
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>this is not working:
ppw_get_popular_posts(“category=2,6,17,13&range=all&stats_views=1&limit=5&thumbnail_width=288&thumbnail_height=216”);
what is the correct code?
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>it would be great if i could just exlude categories i dont want rather than selecting categories that i do.
If i select a parent category to be displayed all the children categories of this category will be displayed also or i should include every category and subcategory id i want?
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>I like this plugin very much. although the range options are too few for me. i ant to be able to select 3 months etc. is it possible in the future to add the option also to add a number value for days. you can keep your current values in order the plugin to be updetable wihout breaking anyone who is using monthly value etc and to make it when there is a number value , this value to represent the days.
What do you think?
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Warning: imagejpeg() [function.imagejpeg]: Unable to open
…so i rate for Broken..
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>When i try to active the thumb on ppw the widget give this error
Popularity Posts Widget
Delomelanicon: Le nove porte – Il Sogno di Polifilo
Views (5040) | Comments (1)
Warning: imagejpeg() [
function.imagejpeg
]: Unable to access /membri/portalemisteri//wp-content/plugins/popularity-posts-widget/cache/e1d61cbf9_160x80.png in /membri/portalemisteri/blog/wp-content/plugins/popularity-posts-widget/kama_thumbnail.php on line 197
Warning: imagejpeg() [
function.imagejpeg
]: Invalid filename in /membri/portalemisteri/blog/wp-content/plugins/popularity-posts-widget/kama_thumbnail.php on line 197
Warning: chmod() [
function.chmod
]: Unable to access /membri/portalemisteri//wp-content/plugins/popularity-posts-widget/cache/e1d61cbf9_160x80.png in /membri/portalemisteri/blog/wp-content/plugins/popularity-posts-widget/kama_thumbnail.php on line 198
…..
in my other site, whit different theme the plugin job very well
what of wrong in that?
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>After install this plugin my I observed this in my slow query log –
# Time: 131216 23:22:46
# Query_time: 31.531834 Lock_time: 0.000157 Rows_sent: 0 Rows_examined: 2737546
SET timestamp=1387236166;
SELECT id, SUM(hits) FROM wp_PopularityPostsWidgetCache WHERE date > DATE_SUB(CURDATE(), INTERVAL 30 DAY) AND wp_PopularityPostsWidgetCache.id IN (
SELECT object_id
FROM wp_term_relationships AS r
JOIN wp_term_taxonomy AS x ON x.term_taxonomy_id = r.term_taxonomy_id
JOIN wp_terms AS t ON t.term_id = x.term_id
WHERE x.taxonomy = 'category' AND t.term_id IN (1132,3340,3341,3395,3413,3414,3590,3738,4273,4343,4344,4345,4346,4347)
) GROUP BY id ORDER BY SUM(hits) DESC LIMIT 5;
These queries are being run every couple of seconds. Is there a way to throttle this to only run every 15 minutes or so?
Thanks,
Mark
https://www.hotcouponworld.com
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>works great but the thumbnails not showing . i tried to save and re save many times, also made the cache 777 , change the size but nothing work, is it working with the latest wordpress updates ?
thanks for the good job
regards
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Hi WPP users and dear creator,
I have put your widget into my sidebar (https://idiomator.at) and almost everything works awesomely fine.
However, one article* shows 38 as the number of comments although it is 1. Any advice to fix this?
*https://idiomator.at/2011/10/20/die-sieben-besten-gratis-ressourcen-zum-norwegisch-lernen-ni2m/
All the best
David
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Popularity Posts Widget does not work with wp super cache, the counting of the views remains stable
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>Maybe this problem is easy to fix but there is a big category var saving problem when using this plugin 2 times in the sidebar area.
——————————————————————
The category filter works for me but when I use this plugin twice in one sidebar, and set each widget to list different categories both become the same when you push save and view the page sidebar.
When I check to see if the categories both are set up differently, everything looks okay and everything saves properly in the widget area it is just that both instances probably have the same variable or something in the PHP code somewhere. Can you fix this? I will try to fix this as well but I don’t know as much about the plugin as you so it might take me a really long time. Any help is greatly appreciated. I can help translate the menus into Japanese for helping if you like ^^
Regards,
Glen
https://www.ads-software.com/plugins/popularity-posts-widget/
]]>This is a good plugin can display thumbnails in widget, but it has a problem with network website, only my main site has showing thumbnails.. Please help
https://www.ads-software.com/extend/plugins/popularity-posts-widget/
]]>