Barry
Forum Replies Created
-
Forum: Plugins
In reply to: [Action Scheduler] Running Every X sec?Excellent, happy to help!
Forum: Plugins
In reply to: [Action Scheduler] Running Every X sec?Almost anything is possible! 🙃
You’ll probably be interested in the guidance listed over at actionscheduler.org/perf, and you may also wish to use (and adapt as needed) the plugin it links to at the bottom.
Additionally, if you are able to take advantage of WP CLI, then you can instruct Action Scheduler to create new and custom queues that target specific groups of actions. You can then use your system scheduler (in lots of cases, this will be cron) to trigger your command at whatever interval you require.
I’m not sure what sort of workloads you are processing, but do be mindful of the dangers of consuming too many system resources, as this may have an adverse affect on the rest of your site.
Forum: Plugins
In reply to: [WooCommerce] Action Scheduler Outta Control!Hey all!
Actions with the hook
wc-admin_import_ordersare created whenever:- A refund is created
- An order is created
- An order is updated
Relevant code is here. So, probably, the creation of these actions correlates with one of those things. If this is faster than you would expect (let’s say you receive a new order, or process a refund, twice a day on average, but these scheduled actions are appearing every 5 seconds or so) then something else must be triggering those events.
There are a few possibilities. One is that another plugin is interacting with and updating existing orders, or a remote service that you have connected via the REST API (an example might be a shipping service) is doing so.
Are any of those possible—what other plugins and services are you using at present?
Function WP_Block_Patterns_Registry::register was called incorrectly. Pattern content must be a string.
In relation to this error specifically, and if you have a means of doing so, you may wish to try deleting the
_site_transient_woocommerce_blocks_patternstransient. For instance, via WP CLI, you might do:wp transient delete woocommerce_blocks_patterns --networkIf you don’t have access to WP CLI, you can perhaps instead use a tool such as Transients Manager to do this.
Forum: Plugins
In reply to: [WooCommerce] ‘Redirect only’ downloads NOT workingHi! We replied in your other thread.
https://wordpress.org/support/topic/download-of-large-file-failing-often/
Forum: Plugins
In reply to: [WooCommerce] Download of large file failing oftenFor very large files, and where a redirect is not your preferred option, it may be better to use X-Accel-Redirect/X-Sendfile option if you can (we realize that enabling this is not always possible, however), as this essentially short-circuits things and PHP’s involvement will be minimized. Some resources:
- https://woocommerce.com/document/digital-downloadable-product-handling/
- https://developer.woocommerce.com/docs/using-nginx-server-to-protect-your-upload-directory/
Do you think the max_execution_time is the reason why it’s failing?
Yes, what you’ve already noted seems quite likely. The force download method can work with very large files, but to do this reliably your host would need to lift these constraints and that is, unfortunately, out of WooCommerce’s control.
See the difference? One is https the other http … somehow I think that Woocommerce should catch this and fix the URL automatically if necessary.
I’m not sure that we could always reliably detect that this would be problematic. Additionally, site configurations can change and so a large number of HTTP URLs may already be in place, and then become unviable.
However, I agree we could warn if it seems likely to cause a problem, and possibly could add a tool to correct existing entries. Would you like to propose this as a new enhancement? Some final notes:
- There are some great options like serving large files from S3 that you might be interested in.
- You could consider entering URLs without specifying the protocol. For example,
//example.com/path/to/asset.pdf
Forum: Plugins
In reply to: [WooCommerce] Rejected at loginHi @hebhansen,
I’m a little unsure where that log entry is coming from, but it sounds like you have some custom code or snippets in place. Can you try removing those, temporarily, in addition to disabling other plugins (can you confirm you have performed basic conflict testing, as described in one of the links I shared earlier)?
This is not something we’re seeing widespread reports of, and so I suspect it is related to your custom code or possibly to another plugin.
I have declared woo in snippets
We do not generally support custom development work here, and you’d need to be a little more specific in any case (remember that we cannot see your site or your code, so can really only guess at what you are describing and how it has been implemented).
That said, we may be able to point you in the right direction, or to some support resources (or indeed other community members may be able to pitch in with advice) if we can clarify what you mean … on which note, have you checked out our Community Slack channels? That’s a great spot to share problems and get advice from fellow community members, including those involved with developing for WooCommerce.
Forum: Plugins
In reply to: [WooCommerce] Rejected at loginHi @hebhansen 🙂
- It’s possible another plugin or even your theme is interfering with things. Have you tried troubleshooting/testing for plugin conflicts? See this guide for more information on how to do this.
- Normally, if WooCommerce detects a problem with a login attempt, it will display an appropriate error message. It sounds like that isn’t happening here, so the problem probably isn’t at WooCommerce-level (even if it happens to manifest through the WooCommerce-generated My Account area).
- You noted this happens to ‘other users’. What sort of accounts do these other users have—are they regular customers, or subscribers, or something else? If you create a fresh customer-level account for testing purposes, and test it yourself, do you find it works?
- Take a peek at WooCommerce ‣ Status ‣ Logs (and you may also wish to review your server error logs, if you have access to them). Do you notice any entries of interest, perhaps ones that correlate with the dates/times these failed login attempts were made?
Thanks!
Forum: Plugins
In reply to: [Action Scheduler] Fatal Error with Version 3.9.1Now i get a very similar issue with version 3.9.0 and recent rank math 1.0.237.
Yes, they use Action Scheduler 3.9.1 in that version.
Update to 3.9.2 seems to fix all issues.
Great to hear!
Forum: Plugins
In reply to: [Action Scheduler] Fatal Error with Version 3.9.1@nicmare … correction, the pieces just clicked together. This is not an issue on WP Umbrella’s side, it’s actually something that can be replicated any time Action Scheduler 3.9.1 is present but loaded after an earlier version. We’ll look into a fix on our side.
Forum: Plugins
In reply to: [Action Scheduler] Fatal Error with Version 3.9.1