Support » Plugin: Subscriptions for WooCommerce » Fatal Error: Backend on subscription management page

  • Resolved ServusTuo

    (@servustuo)


    Hi!

    I’m now getting an error in backend, on the subscription management page. I can’t see any active subscription, just the following error:

    Fatal error: Call to a member function get_status() on boolean in /web/htdocs/www.pursang.graphics/home/wp-content/plugins/xa-woocommerce-subscriptions/includes/admin/subscription-management.php on line 327

    Is it because I converted the website in a wordpress multisite network? I hope it supports the multisite feature ç_ç

    Please let me know, thanks!
    – Joseph

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ServusTuo

    (@servustuo)

    Mhhh now I did some stuff and the error is the one at the end of this post. The strange thing is that this happens only on the second site of the network, on the main site the backend works perfectly. Basically this is what’s going on:

    On the main site the plugin backend doesn’t have errors, on the second site the backend has errors. I need the plugin on the second site.

    This is the error, thanks for your help!
    – Joseph

    Fatal error: Uncaught Error: Call to a member function get_status() on boolean in /web/htdocs/www.pursang.graphics/home/wp-content/plugins/xa-woocommerce-subscriptions/includes/admin/subscription-management.php:327 Stack trace: #0 /web/htdocs/www.pursang.graphics/home/wp-includes/class-wp-hook.php(288): HF_Admin_Post_Types->render_hf_shop_subscription_columns(‘status’) #1 /web/htdocs/www.pursang.graphics/home/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /web/htdocs/www.pursang.graphics/home/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /web/htdocs/www.pursang.graphics/home/wp-admin/includes/class-wp-posts-list-table.php(1162): do_action(‘manage_hf_shop_…’, ‘status’, 497) #4 /web/htdocs/www.pursang.graphics/home/wp-admin/includes/class-wp-list-table.php(1254): WP_Posts_List_Table->column_default(Object(WP_Post), ‘status’) #5 /web/htdocs/www.pursang.graphics/home/wp-admin/includes/class-wp-posts-list-table.php(1195): WP_List_Table->single_row_columns(Object(WP_Post)) #6 /web/htdocs/ in /web/htdocs/www.pursang.graphics/home/wp-content/plugins/xa-woocommerce-subscriptions/includes/admin/subscription-management.php on line 327

    Thread Starter ServusTuo

    (@servustuo)

    Hi! I tried uninstalling and reinstalling the plugin but it doesn’t delete the old subscriptions. I was wondering if the error is given by the subscriptions that were present before transforming the site in a network in some way, but even uninstalling the plugin doesn’t remove them. How can i manually delete them from database? I checked but I really can’t find where they are saved! Please let me know, thanks!
    – Joseph

    Hi @servustuo,

    By which plugin you have created the old subscriptions. So I can suggest accordingly. The error you mentioned occur if the subscription with all properties doesn’t exist in database.

    Thread Starter ServusTuo

    (@servustuo)

    So how do I delete the subscriptions from the backend?

    The problem is this: I was working on a test site that then became the final site, but I needed to create the wordpress network. So I deactivated all plugins including yours (as wordpress guide indicates to do), created the network and then reactivated all plugins. From that moment on I have the error and am not able to remove the test subscriptions I had made on the test site. I thought that by uninstalling and reinstalling the plugin all things in memory should have been deleted, but apparantely it’s not so. Is some of the subscription info saved on file? I don’t think so, but at the same time I can’t understand how I see stuff in backend and can’t find the same stuff in mysql. What tables does your plugin use? maybe some woocommerce tables?

    Hi @servustuo,

    Please ping me in Skype @mark_35997 , So I can suggest you to sort it out.

    Thread Starter ServusTuo

    (@servustuo)

    Hi!

    Still having this problem. I am not able to add a subscription in backend, and when I want to see all the subscriptions I just get this error:

    Fatal error: Uncaught Error: Call to a member function get_status() on boolean in /web/htdocs/www.pursang.graphics/home/wp-content/plugins/xa-woocommerce-subscriptions/includes/admin/subscription-management.php:327 Stack trace: #0 /web/htdocs/www.pursang.graphics/home/wp-includes/class-wp-hook.php(288): HF_Admin_Post_Types->render_hf_shop_subscription_columns(‘status’) #1 /web/htdocs/www.pursang.graphics/home/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /web/htdocs/www.pursang.graphics/home/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /web/htdocs/www.pursang.graphics/home/wp-admin/includes/class-wp-posts-list-table.php(1162): do_action(‘manage_hf_shop_…’, ‘status’, 509) #4 /web/htdocs/www.pursang.graphics/home/wp-admin/includes/class-wp-list-table.php(1254): WP_Posts_List_Table->column_default(Object(WP_Post), ‘status’) #5 /web/htdocs/www.pursang.graphics/home/wp-admin/includes/class-wp-posts-list-table.php(1195): WP_List_Table->single_row_columns(Object(WP_Post)) #6 /web/htdocs/ in /web/htdocs/www.pursang.graphics/home/wp-content/plugins/xa-woocommerce-subscriptions/includes/admin/subscription-management.php on line 327

    I’m on a wordpress network with woo commerce 3.2.6 and your plugin version 1.1.1, if that helps. Please help, I’m stuck! Your script to delete the orders via mysql worked in deleting them, but it seems as if I’m not able to create new orders.
    – Joseph

    UPDATE:
    When I try creating a new subscription in backend I get this error:

    Fatal error: Uncaught Error: Call to a member function update_dates() on boolean in /web/htdocs/www.pursang.graphics/home/wp-content/plugins/xa-woocommerce-subscriptions/includes/admin/meta-boxes/subscription-schedule-meta-box.php:65 Stack trace: #0 /web/htdocs/www.pursang.graphics/home/wp-includes/class-wp-hook.php(286): HF_Meta_Box_Schedule::save(510, Object(WP_Post)) #1 /web/htdocs/www.pursang.graphics/home/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /web/htdocs/www.pursang.graphics/home/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /web/htdocs/www.pursang.graphics/home/wp-content/plugins/xa-woocommerce-subscriptions/includes/admin/subscription-meta-boxes.php(36): do_action(‘woocommerce_pro…’, 510, Object(WP_Post)) #4 /web/htdocs/www.pursang.graphics/home/wp-includes/class-wp-hook.php(288): HF_Subscription_Admin_Meta_Boxes->save_meta_boxes(510, Object(WP_Post)) #5 /web/htdocs/www.pursang.graphics/home/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #6 / in /web/htdocs/www.pursang.graphics/home/wp-content/plugins/xa-woocommerce-subscriptions/includes/admin/meta-boxes/subscription-schedule-meta-box.php on line 65

    • This reply was modified 3 years, 3 months ago by ServusTuo.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error: Backend on subscription management page’ is closed to new replies.