Logging and diagnostics
CartThrob 10.0.1 and Subscriptions 6 use ExpressionEngine’s logs for different purposes. Persistent entries start with CartThrob or CartThrob Subscriptions, so you can search for either name.
| Where to look | What it tells you |
|---|---|
| Template tab in the frontend debug bar | Why a form or tag rendered as it did: its fixed values, allowed choices, selected values and relevant checks. |
| CP → Logs → Developer | Something needs attention: an old form silently behaves differently, configuration needs correcting, or a payment operation failed. |
| ExpressionEngine file log | Operational failures with the relevant Order or Subscription IDs, plus optional information and debug messages. |
| CP → Logs → Control Panel | Successful administrator actions, including Subscription edits, card assignments, charges, cancellations, Plan edits and payment-review resolutions. EE records the administrator and IP address. |
Customer validation errors still appear in the form. A card decline or an invalid customer input does not, by itself, need a Developer Log alert. Orders, payment reviews and reconciliation records remain the source of payment evidence; clearing a log does not resolve a payment review.
Template debugging
In EE 6/7, open Settings → Debugging & Output and turn Enable debugging? on. This is the $config['show_profiler'] = 'y'; setting. Super Admins can then open the Template tab in the debug bar at the bottom of the frontend page.
CartThrob’s messages explain the form being rendered. For example, subscription_select shows the offered values and whether its selected value came from a cart row or a tag parameter. It uses the cart row’s actual recurring flag when explaining a Yes/No selection.
Template debugging is a rendering aid. A form submission, scheduled rebill or provider callback may run without a template, so its operational details belong in the persistent logs instead. With debugging off, CartThrob does not build these template explanations.
Developer Log: what needs attention
Open CP → Logs → Developer and search for CartThrob. To receive EE’s unread Developer Log alert, turn on Enable Developer Log Alerts? under Settings → Debugging & Output ($config['enable_devlog_alerts'] = 'y';). These alerts are shown to Super Admins.
There are two kinds of entry:
CartThrob:/CartThrob Subscriptions:: something behaves differently from what the template or integration author expects. Follow the migration or configuration instruction in the entry.CartThrob error:/CartThrob Subscriptions error:: an operation failed and a payment or related record may need investigation. Check the file log for its IDs, then inspect the relevant Order and payment review before attempting another charge or refund.
For example, a submitted update_recurrent_billing_form is refused: replace it with update_subscription_form. An update_subscription_details form containing billing fields can update only the Subscription’s name and description: remove the unsupported fields and use change_plan_form for Plan changes or update_subscription_form for card changes.
Repeated entries are suppressed and refreshed while a problem persists: deprecated forms and their refused legacy submissions weekly, configuration notices daily, compatibility findings hourly, and operational error summaries hourly. Individual file entries retain the IDs needed to distinguish failures. Warnings do not create an operational-error summary. A failed Developer Log write is not retried in the file log.
File logs
ExpressionEngine normally writes daily files under system/user/logs/; an installation can configure another log path. The directory must be writable. The log_threshold configuration controls which levels are recorded on EE 6/7:
log_threshold |
Records |
|---|---|
0 |
No file logging |
1 |
Errors, including CartThrob warnings marked [warning] |
2 |
Errors and debug messages |
3 |
Errors, debug and information messages |
EE 6/7 has no native file-warning level, so CartThrob records warnings at error level with [warning] in the text. An operational error also creates the short, deduplicated Developer Log summary; its detailed file entry carries the identifiers. If file logging is disabled, that summary cannot supply the missing file details.
Temporarily raise log_threshold when troubleshooting a problem that needs the existing optional trail. Restore the usual level afterward. Raising the threshold does not add messages to code paths that have no trail logging.
Control Panel action log
The CP action log records administrative actions performed through the Control Panel. Storefront purchases, customer card changes and scheduled rebills do not belong there. Subscriptions records successful changes with the relevant IDs; a failed action is not recorded as successful.
ExpressionEngine 8
ExpressionEngine 8’s logging work supports add-on channels, source attribution and a unified CP viewer. A dedicated CartThrob health log is planned for that system; it is not included in this release. On EE 6/7, use the Developer Log and file logs described above.