Troubleshooting
Campaigns that did not run or started late, failed products and logs.
A campaign shows "Did not run"
The site's scheduled tasks did not run between the campaign's start and end, so it never started and no products were changed. Nothing needs undoing. The Scheduled tasks card at the top of the Campaigns tab shows when they last ran, how they are started (page visits or a server cron job) and the next campaign start or end; it turns into a warning when they have not run for over an hour.
To fix it for good, set up a server cron job as described in Installation. To run the sale, create a campaign with new dates.
A campaign starts late
Same cause: it starts on the first scheduled-task run after its start time. If the Scheduled tasks card says Behind, a start or end is more than 15 minutes overdue.
Background work stopped
A PHP time-out, or a fatal error from another plugin during a batch, can stop the work. A check that runs every five minutes restarts it from where it stopped, and the Activity tab records Stalled work restarted. Nothing is applied twice.
Some products failed
The results list each one with the error. The rest are changed normally.
A product could not be restored
When a campaign ends or you undo a quick change, a product can fail to save its old values (another process had it locked, the server timed out). The product keeps the sale values for now and the results show it as Failed with "Undo failed:" and the error. SaleCraft keeps the record of what it changed and tries again by itself every few minutes, up to three more times; the Activity tab records each retry. After that, Retry restore on the campaign or quick change tries again whenever you click it.
A retry puts back only what still holds the value the campaign set. A price you edited by hand in the meantime is kept.
Where to find logs
- WooCommerce › Status › Logs, source
campaign-center - Tools › Scheduled Actions, group
campaign-center
Getting help
Before you write, note your WordPress, WooCommerce and PHP versions (under WooCommerce › Status) and what the logs above say about the problem. If a campaign behaves oddly, attach a campaign export (Export campaigns on the Settings tab).
Sign in at WPBay with the account you bought SaleCraft Pro with, and open a support ticket for it from your account, or write to us through the contact form on our BrainCraft.rs seller profile on WPBay. Include your order number. Never post your purchase code in public.
For a purchase code that is not accepted, check that it is the code from your SaleCraft Pro order, with no spaces before or after it, and that the site can reach wpbay.com (some firewalls block it). If it still fails, write to us as above.