Git Product home page Git Product logo

woocommerce-subscriptions-renewal-logger's Introduction

WooCommerce Subscriptions Renewal Logger

Determine why automatic subscription renewal payments aren't being processed despite using an automatic gateway.

To do this, the plugin logs important data around renewal events to WooCommerce log file prefixed with 'wcs-renewal-log-'.

To view the log file:

  1. Go to WooCommerce > System Status > Logs (i.e. /wp-admin/admin.php?page=wc-status&tab=logs)
  2. Select the log file with the 'wcs-renewal-log-' prefix

Requirements

Requires WooCommmerce 3.0 or newer and Subscriptions 2.3.0 or newer.

Caveat

This plugin is a diagnostic tool that should be used only for active monitoring on a site. Do not leave it active indefinitely on a site, especially not on a live site or a site with a large number of subscriptions.

For best results, enable the plugin for 5-10 minutes at a time. Then disable it and review the logs.

woocommerce-subscriptions-renewal-logger's People

Contributors

james-allan avatar thenbrent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

woocommerce-subscriptions-renewal-logger's Issues

Issue after updating to v2.3.7 of Subscriptions

Ticket: https://secure.helpscout.net/conversation/671077056/17529?folderId=1525049

Error:

2018-09-25 08:19:36 UTC
unexpected shutdown: PHP Fatal error Uncaught TypeError: 
Argument 1 passed to WCS_Related_Order_Store_Cached_CPT::get_related_order_ids() must be an instance of WC_Order, integer given, 
called in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscription.php on line 1758 and 
defined in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/data-stores/class-wcs-related-order-store-cached-cpt.php:86 

Stack trace: 

#0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscription.php(1758): 
WCS_Related_Order_Store_Cached_CPT->get_related_order_ids(34822, 'renewal') 

#1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-subscriptions-renewal-logger-master/woocommerce-subscriptions-renewal-logger.php(219): 
WC_Subscription->get_related_orders_query(34822) 

#2 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(286): WCS_Renewal_Logger::get_subscription_last_order(Object(WC_Order), 
Object(WC_Subs in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/data-stores/class-wcs-related-order-store-cached-cpt.php on line 86

Issue

The customer is receiving lots of failed scheduled actions since updating to v2.3.7 of Subscriptions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.