veppa
Forum Replies Created
-
Forum: Plugins
In reply to: [HTTP Requests Manager] Undefined array key “action”Hello,
Thank you for reporting. I added fix and released new version 1.3.10.
Fixed issue and released updated version 1.3.9.
Thank you for reporting.
Regards.
Yes, it is by design this way.
“Custom rules” work only in “smart block” mode. For this reason all requests obey smart block rules, including 3 second page generation rule.
“Smart block” designed to make blocking simple, with one switch. “Custom rules” added to overwrite “Smart block” with individual requests related to particular plugin or domain.
Main goal was to prevent WordPress from slow loading or timing out due to an excessive number of slow
WP_HTTPrequests.I waited couple days to test workaround for this.
You can add an other rule:
allow: all - allow in: everywhereThis way all requests are allowed, your initial blocking rule will also work.
But downside is your logs will have lots of cron jobs requests( WP_HTTP made to wp-cron.php). Originally they are not logged. But when “allow” custom rule applied they are logged in order to show that custom rule applied to it.
Forum: Plugins
In reply to: [HTTP Requests Manager] Merge Outbound Operator with HTTP Requests ManagerI was looking for ways to simplify creation of custom rules.
Thank you for suggestion.
Hello,
I assume that you are using http-requests-manager plugin in “Smart block” operation mode. In that case you can explicitly allow WP_HTTP external requests that cause infinite loop.
First check what requests are being blocked too many times in “Tools” -> “HTTP Requests Manager” page.
Use “group by page type” from dropdown to see on which page type too many blocking happens.
Use “group by request domain” from dropdown to see on which domain too many blocking happens.I do not see logs from that page in you report so I can assume following values.
Most blocking happens on “rest_api” page type to “SOMEDOMAIN.com” domain. Using this data you can create following custom rule:
- Navigate to “Settings” tab in “Tools” -> “HTTP Requests Manager” page
- Make sure operation mode is “Smart block”.
- Click “Add new” button next to ‘Custom rules for “Smart Block” mode’ text.
- Create following rule:
What -> “domain” -> “SOMEDOMAIN.com”,
Where -> “rest_api”,
Action -> “Allow”,
Then click “Save changes” button.
This should prevent blocking particular external request and avoid infinite loop caused by “custom code” or “other plugin”.
View tutorial to explicitly allow some external WP_HTTP requests.
Why infinite loop happens?
- http-requests-manager plugin blocks some WP_HTTP requests based on “operation mode”.
- “Other plugin” or “custom code” expects successful response from remote WP_HTTP request. When request is not valid then it tries to get valid response and sends external request again and again (infinite times).
Optimal solution should be optimizing “Other plugin” or “custom code” to avoid infinite loop. Because any external request can fail due to network or server error. And that failure should not create infinite loop.
Forum: Plugins
In reply to: [bbPress WP Tweaks] Admin user page empty / PHP fatal errorFixed TypeError in version 1.5.1.
Switched to unique user meta_key for avoiding conflicts.
Thank you for reporting.
Forum: Plugins
In reply to: [HTTP Requests Manager] Logs not visible – stuck in “refreshing…”To fix timeout issues when loading reports, in version 1.3.7 I have added response data truncating feature. So 50% less data should be used when loading reports.
Compressed (gzip, deflate, brotli etc.) report data ~100 kb, uncompressed 1-2 MB.
Make sure that your web server and web browser uses data compression so only around 100kb data loaded when viewing reports.
Regards.
Forum: Plugins
In reply to: [HTTP Requests Manager] Logs not visible – stuck in “refreshing…”It might be server timeout or browser related issue. Can you check console log in chrome browser (by pressing F12 key) for related errors?
Forum: Plugins
In reply to: [HTTP Requests Manager] Limit of exception rulsThank you for reaching out.
Increased custom rule limit to 30 in version 1.3.6.
Hope it meets your requirements.
Regards.
Forum: Plugins
In reply to: [HTTP Requests Manager] PHP Warning for HTTP_HOSTThank you for reporting.
Fixed in version 1.3.6.
Forum: Plugins
In reply to: [HTTP Requests Manager] Limit search queries attemptsHTTP Requests Manager plugin is not related to search.
I found another one in WordPress repository that might help. https://ww.wp.xz.cn/plugins/search-limiter-blocker/
Regards.
Forum: Plugins
In reply to: [HTTP Requests Manager] Custom rules for “Smart Block” mode issueRecently in version 1.3.4 I added force blocking to “Block external requests” and “Block external requests (allow ww.wp.xz.cn only)” modes using wordpress constants. Now other plugins cannot remove that block.
For “Smart block” I have another idea that can force blocking rules. Will check it soon and keep you updates.
Forum: Plugins
In reply to: [HTTP Requests Manager] Bugfix: increase length of request_source VARCHAR(20)Released fix with version 1.3.5.
Regards.
Forum: Plugins
In reply to: [HTTP Requests Manager] Bugfix: increase length of request_source VARCHAR(20)Thank you for reporting. Will add fix to next release. In couple days.
Ok. In above code what happens when $ids emty because of network error or blog blocking external requests.
It will store empty ids. Then on next page will request ids from remote server again. And this will be repeated on every page.
Issue can be reproduced following these steps:
- You block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL as true in your wp-config.php file. Ref https://developer.ww.wp.xz.cn/reference/classes/wp_http/block_request/
- wait 1 day until transient expires or delete it.
- navigate in admin with “query monitor” to view api calls as you visit pages.
Regards.