Hector Cabrera
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Popular Posts] “7d” and “Custom 7d” and “Popular Posts Ranking”Took a while but this issue should be resolved now. Once again, thanks for reporting!
Forum: Plugins
In reply to: [WP Popular Posts] Query Errors in the Admin pageAlternatively, if you’re running WP Popular Posts 7.4.0 (which just came out) on your site you may also want to consider uninstalling the WP Popular Posts Sortable Columns plugin and switch to the built-in, newly added Display Views column option instead which works exactly the same way.
Forum: Plugins
In reply to: [WP Popular Posts] Query Errors in the Admin pageHey @davidwees,
The “WP Popular Posts Sortable Columns” plugin is indeed a “sub-plugin” but it doesn’t come bundled with WP Popular Posts. You have to install it manually on the site to get it.
With that being said, I don’t think anyone has reported these PHP notices before. Could you please try this version and see if that fixes these notices?
Forum: Plugins
In reply to: [WP Popular Posts] WP Popular Posts no longer indexing posts since WP 7.0Hi @databell96,
Had a look at your site and found that SiteGround’s Speed Optimizer plugin is messing with WP Popular Posts’ script, preventing it from working:
WPP params not found, if you are using a JS minifier tool please add wpp.min.js to its exclusion list
It’s due to Speed Optimizer’s “Combine JavaScript Files” function (WP Dashboard > Site Optimizer > Frontend > Javascript). They changed something related to file caching and loading on May 7th (see Speed Optimizer’s changelog), that’s probably the cause behind WPP not working as expected.
For the time being please disable the “Combine JavaScript Files” option and clear Site Optimizer’s cache (Purge SG Cache button at the top of the screen), that should fix the issue.
I’ll see if there’s anything I can do on my end to prevent Site Optimizer from interfering with WP Popular Posts, otherwise we may need to contact the Site Optimizer team for assistance with this.
Forum: Plugins
In reply to: [NSFW] [WP Popular Posts] Title on BlockHi @sddarkman619,
You can add a title with the shortcode as well. To do so use the header parameter to set the text for the title, and the header_start and header_end parameters to set the HTML tags to use with the heading.
In your particular case I believe it should look something like this:
[wpp header="Popular Posts" header_start="<h4>" header_end="</h4>" ... rest of the params go here ...]See Parameters for more details.
If you have any other questions please let me know.
Hi @a4jpcom,
No, or at least not without writing some custom database queries (and possibly some custom logic as well). It’d be easier to just use a Recent Posts kind of plugin.
Forum: Plugins
In reply to: [WP Popular Posts] How do I disable nonce checking in a plugin?One more thing: when it comes to caching plugins that offer “background preloading,” I generally prefer to keep that particular feature off.
The background preloading functionality -as I understand it at least- artificially generates static HTML files for a site’s pages before a visitor actually requests them. In paper that’s great because it reduces TTFB (Time to First Byte) but when you have a ton of pages (“tens of thousands” as you said) the background performance can be heavy due to CPU & RAM spikes (especially on shared / lower-end hosting environments.) At least that’s what logic tells me, I don’t have any actual data at hand to back this up so take this with a grain of salt.
Forum: Plugins
In reply to: [WP Popular Posts] How do I disable nonce checking in a plugin?The safe approach would be to not remove the nonce check. There’s never a good reason to disable a security feature. It’d be preferable to at least extend the nonce lifetime than to disable it completely.
Cache regeneration can be resource intensive vs a static site, yes, but unless there’s some actual hard data showing that the site’s performance tanks in a noticeable way during cache regeneration for extended periods of time disabling / lowering security wouldn’t be the first measure I would take.
What I would do instead (in no particular order and not limited to):
- Set the page cache to expire every 12 hours or so to guarantee that there’s always a valid nonce available, or -as already mentioned before- at least increase the nonce expiry time (eg. 48 hours instead of the default 24) which does lower security but doesn’t remove it completely.
- If not already in place, enable object caching on the site so frequently accessed data is stored in memory which should help performance even while the page cache is being regenerated.
- Check for slow queries and/or other resource-intensive scripts.
Forum: Plugins
In reply to: [WP Popular Posts] How do I disable nonce checking in a plugin?I’ll flag this topic as resolved since OP found a way to disable the nonce check (which they can do on their own site, it’s their prerogative) but to anyone else reading this in the future I highly recommend against using this solution on your site as it’s not safe to use.
Forum: Plugins
In reply to: [WP Popular Posts] How do I disable nonce checking in a plugin?Hi there,
It’s within your right to make your site less secure if you wish to do so, however that’s not a sentiment I share. I don’t believe that reducing the security is worth whatever you’re trying to do. But that’s just me.
I have to ask, what exactly are you expecting to achieve with this?
Additionally, I’m not sure it’s possible to change the nonce lifetime for a specific request. I believe the nonce_lifetime filter hooks affects all nonces, not just the ones generated for WPP’s requests.
Forum: Plugins
In reply to: [WP Popular Posts] /wp-json/wordpress-popular-posts/v2/widget?is_single=Hi @dimalifragis,
That’s a REST API endpoint that WP Popular Posts uses to get a popular posts list via AJAX.
It is odd that one IP address is trying to send requests to that particular endpoint. A bot maybe?
Forum: Plugins
In reply to: [WP Popular Posts] Is WP Popular Posts not working?The AJAX feature basically bypasses any page caching which is why your popular posts list loads as expected when it’s enabled. When disabled it seems that your site is displaying a cached version of the popular posts list which is why it shows an “outdated” popular posts list. This is why I suspect that your issue is being caused by caching.
Forum: Plugins
In reply to: [WP Popular Posts] Restrict non-Admins from dashboard & settingsHi there,
The plugin registers its menu page with the edit_published_posts capability which is granted to the Editor role by default (see Capability vs Role table for more details.)
Forum: Plugins
In reply to: [WP Popular Posts] Is WP Popular Posts not working?Alright, let’s do another test then:
- Go back to Settings > WordPress Popular Posts > Tools > Data, set Load popular posts list via AJAX to Disabled and click on the Apply button to save changes.
- Go to your server settings and disable any site optimization feature that may be on.
- When you’re done, go back to your site and check your popular posts list again. Is it loading correctly now?
Forum: Plugins
In reply to: [WP Popular Posts] Is WP Popular Posts not working?Use the code block here to insert code, that way formatting is preserved.
In any case, from the broken .htaccess code nothing seems out of the ordinary. Check your server settings, maybe there’s some sort of page caching functionality from your hosting provider that’s currently enabled?