ConvertKit / convertkit-paid-memberships-pro

ConvertKit Integration with Paid Memberships Pro
GNU General Public License v2.0
1 stars 7 forks source link

Deactivate PMPro and some ugliness ensues #2

Open growdev opened 8 years ago

growdev commented 8 years ago

Steps to recreate

  1. This plugin and PMPro are both enabled
  2. Disable PMPro
  3. Debug log ugliness below:
[06-Jul-2016 15:55:06 UTC] PHP Notice:  Undefined property: wpdb::$pmpro_membership_levels in /Users/daniel/sites/convertkit/wp-includes/wp-db.php on line 684
[06-Jul-2016 15:55:06 UTC] PHP Stack trace:
[06-Jul-2016 15:55:06 UTC] PHP   1. {main}() /Users/daniel/sites/convertkit/wp-admin/plugins.php:0
[06-Jul-2016 15:55:06 UTC] PHP   2. require_once() /Users/daniel/sites/convertkit/wp-admin/plugins.php:10
[06-Jul-2016 15:55:06 UTC] PHP   3. do_action() /Users/daniel/sites/convertkit/wp-admin/admin.php:168
[06-Jul-2016 15:55:06 UTC] PHP   4. call_user_func_array:{/Users/daniel/sites/convertkit/wp-includes/plugin.php:525}() /Users/daniel/sites/convertkit/wp-includes/plugin.php:525
[06-Jul-2016 15:55:06 UTC] PHP   5. ConvertKit_PMP_Admin->register_settings() /Users/daniel/sites/convertkit/wp-includes/plugin.php:525
[06-Jul-2016 15:55:06 UTC] PHP   6. ConvertKit_PMP_Admin->get_pmp_membership_levels() /Users/daniel/code/convertkit/convertkit-paid-memberships-pro/admin/class-convertkit-pmp-admin.php:114
[06-Jul-2016 15:55:06 UTC] PHP   7. wpdb->__get() /Users/daniel/code/convertkit/convertkit-paid-memberships-pro/admin/class-convertkit-pmp-admin.php:315
[06-Jul-2016 15:55:06 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id ASC' at line 1 for query SELECT * FROM  ORDER BY id ASC made by require_once('wp-admin/admin.php'), do_action('admin_init'), call_user_func_array, ConvertKit_PMP_Admin->register_settings, ConvertKit_PMP_Admin->get_pmp_membership_levels
[06-Jul-2016 15:55:13 UTC] PHP Notice:  Undefined property: wpdb::$pmpro_membership_levels in /Users/daniel/sites/convertkit/wp-includes/wp-db.php on line 684
[06-Jul-2016 15:55:13 UTC] PHP Stack trace:
[06-Jul-2016 15:55:13 UTC] PHP   1. {main}() /Users/daniel/sites/convertkit/wp-admin/plugins.php:0
[06-Jul-2016 15:55:13 UTC] PHP   2. require_once() /Users/daniel/sites/convertkit/wp-admin/plugins.php:10
[06-Jul-2016 15:55:13 UTC] PHP   3. do_action() /Users/daniel/sites/convertkit/wp-admin/admin.php:168
[06-Jul-2016 15:55:13 UTC] PHP   4. call_user_func_array:{/Users/daniel/sites/convertkit/wp-includes/plugin.php:525}() /Users/daniel/sites/convertkit/wp-includes/plugin.php:525
[06-Jul-2016 15:55:13 UTC] PHP   5. ConvertKit_PMP_Admin->register_settings() /Users/daniel/sites/convertkit/wp-includes/plugin.php:525
[06-Jul-2016 15:55:13 UTC] PHP   6. ConvertKit_PMP_Admin->get_pmp_membership_levels() /Users/daniel/code/convertkit/convertkit-paid-memberships-pro/admin/class-convertkit-pmp-admin.php:114
[06-Jul-2016 15:55:13 UTC] PHP   7. wpdb->__get() /Users/daniel/code/convertkit/convertkit-paid-memberships-pro/admin/class-convertkit-pmp-admin.php:315
[06-Jul-2016 15:55:13 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id ASC' at line 1 for query SELECT * FROM  ORDER BY id ASC made by require_once('wp-admin/admin.php'), do_action('admin_init'), call_user_func_array, ConvertKit_PMP_Admin->register_settings, ConvertKit_PMP_Admin->get_pmp_membership_levels
growdev commented 8 years ago

And more. (Oh the humanity!)


[14-Jul-2016 15:39:33 UTC] PHP Notice:  Undefined property: wpdb::$pmpro_membership_levels in /Users/daniel/sites/convertkit/wp-includes/wp-db.php on line 684
[14-Jul-2016 15:39:33 UTC] PHP Stack trace:
[14-Jul-2016 15:39:33 UTC] PHP   1. {main}() /Users/daniel/sites/convertkit/wp-admin/plugins.php:0
[14-Jul-2016 15:39:33 UTC] PHP   2. require_once() /Users/daniel/sites/convertkit/wp-admin/plugins.php:10
[14-Jul-2016 15:39:33 UTC] PHP   3. do_action() /Users/daniel/sites/convertkit/wp-admin/admin.php:168
[14-Jul-2016 15:39:33 UTC] PHP   4. call_user_func_array:{/Users/daniel/sites/convertkit/wp-includes/plugin.php:525}() /Users/daniel/sites/convertkit/wp-includes/plugin.php:525
[14-Jul-2016 15:39:33 UTC] PHP   5. ConvertKit_PMP_Admin->register_settings() /Users/daniel/sites/convertkit/wp-includes/plugin.php:525
[14-Jul-2016 15:39:33 UTC] PHP   6. ConvertKit_PMP_Admin->get_pmp_membership_levels() /Users/daniel/code/convertkit/convertkit-paid-memberships-pro/admin/class-convertkit-pmp-admin.php:114
[14-Jul-2016 15:39:33 UTC] PHP   7. wpdb->__get() /Users/daniel/code/convertkit/convertkit-paid-memberships-pro/admin/class-convertkit-pmp-admin.php:315
[14-Jul-2016 15:39:33 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id ASC' at line 1 for query SELECT * FROM  ORDER BY id ASC made by require_once('wp-admin/admin.php'), do_action('admin_init'), call_user_func_array, ConvertKit_PMP_Admin->register_settings, ConvertKit_PMP_Admin->get_pmp_membership_levels
[14-Jul-2016 15:39:58 UTC] PHP Notice:  Undefined property: wpdb::$pmpro_membership_levels in /Users/daniel/sites/convertkit/wp-includes/wp-db.php on line 684
[14-Jul-2016 15:39:58 UTC] PHP Stack trace:
[14-Jul-2016 15:39:58 UTC] PHP   1. {main}() /Users/daniel/sites/convertkit/wp-admin/plugins.php:0
[14-Jul-2016 15:39:58 UTC] PHP   2. require_once() /Users/daniel/sites/convertkit/wp-admin/plugins.php:10
[14-Jul-2016 15:39:58 UTC] PHP   3. do_action() /Users/daniel/sites/convertkit/wp-admin/admin.php:168
[14-Jul-2016 15:39:58 UTC] PHP   4. call_user_func_array:{/Users/daniel/sites/convertkit/wp-includes/plugin.php:525}() /Users/daniel/sites/convertkit/wp-includes/plugin.php:525
[14-Jul-2016 15:39:58 UTC] PHP   5. ConvertKit_PMP_Admin->register_settings() /Users/daniel/sites/convertkit/wp-includes/plugin.php:525
[14-Jul-2016 15:39:58 UTC] PHP   6. ConvertKit_PMP_Admin->get_pmp_membership_levels() /Users/daniel/code/convertkit/convertkit-paid-memberships-pro/admin/class-convertkit-pmp-admin.php:114
[14-Jul-2016 15:39:58 UTC] PHP   7. wpdb->__get() /Users/daniel/code/convertkit/convertkit-paid-memberships-pro/admin/class-convertkit-pmp-admin.php:315
[14-Jul-2016 15:39:58 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id ASC' at line 1 for query SELECT * FROM  ORDER BY id ASC made by require_once('wp-admin/admin.php'), do_action('admin_init'), call_user_func_array, ConvertKit_PMP_Admin->register_settings, ConvertKit_PMP_Admin->get_pmp_membership_levels