How to enable ShopMagic debug logging#
If an automation, marketing list, or integration is not working as expected, enable ShopMagic logging and reproduce the problem. The logs can help identify what happened and provide useful information for support.
- Go to ShopMagic → Settings → General.
- Select Enable logging.
- Save the changes.
- Repeat the steps that caused the problem and note the time.
Enabling logging does not recreate diagnostic details from earlier attempts. Reproduce the issue after saving the setting.
Finding ShopMagic logs in WooCommerce#
When WooCommerce logging is available, ShopMagic writes diagnostic entries through the WooCommerce logger using the source shopmagic.
- Go to WooCommerce → Status → Logs.
- Find the source or log file containing
shopmagic. - Open the entries for the date and time when you reproduced the problem.
The log viewer depends on your WooCommerce version and storage settings. Logs may be stored in files or in the database, so there is not always a separate file to locate on your server.
If detailed entries are missing#
Open Settings on the WooCommerce Logs screen. Confirm that logging is enabled and that the Level threshold allows Debug entries. Selecting None records all severity levels.
Then reproduce the problem again. For more information, see the WooCommerce logging documentation.
Checking automation results#
For problems with a specific automation, also check ShopMagic → Logs → Outcomes. Error details associated with an execution can help explain why it failed.
Outcomes and debug logs serve different purposes: Outcomes records automation execution results, while debug logging provides additional diagnostic information. Emails sent using Send test do not create Outcomes entries.
WordPress and PHP error logs#
PHP errors may also appear in your hosting provider's error logs. Ask your hosting provider where to find them; their location and filename depend on the server configuration.
If WooCommerce logging is unavailable, ShopMagic can fall back to PHP error logging when WP_DEBUG_LOG is enabled.
With both WP_DEBUG and WP_DEBUG_LOG enabled, WordPress normally writes errors to wp-content/debug.log. A custom log path may be configured instead. ShopMagic's Enable logging option does not enable these WordPress settings automatically.
For configuration instructions, see Debugging in WordPress. Keep error display disabled on customer-facing pages.
What to include when contacting support#
- The steps needed to reproduce the problem.
- The affected automation's name and ID, or the affected marketing list.
- The approximate time of the failed attempt and your site's timezone.
- Relevant log entries and any error message shown in Outcomes.
- Your ShopMagic, add-on, WooCommerce, and WordPress versions.
Logs may contain customer information or integration details. Share them privately with support and remove passwords, API tokens, and other credentials.
Once troubleshooting is complete, turn off Enable logging if detailed logging is no longer needed. Restore any temporary WordPress or WooCommerce logging settings you changed.
