• Resolved slm0n

    (@slm0n)


    Hello,

    I have a problem, I get a daily email, that there was an error on my website with the Flexible subscribtion plugin.
    It is always an error with a cron job.
    The first looks like this:



    WordPress version 6.6.2
    Active theme: Astra (version 4.8.3)
    Current plugin: Flexible Subscriptions (version 1.2.1)
    PHP version 8.2.25



    Error Details
    =============
    An error of type E_ERROR was caused in line 29 of the file /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/flexible-subscriptions/src/HookProvider/Admin/DisableSubscriptionCreation.php. Error message: Uncaught Error: Call to undefined function WPDesk\FlexibleSubscriptions\HookProvider\Admin\wc_get_page_screen_id() in /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/flexible-subscriptions/src/HookProvider/Admin/DisableSubscriptionCreation.php:29
    Stack trace:
    #0 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/flexible-subscriptions/src/HookProvider/Admin/DisableSubscriptionCreation.php(15): WPDesk\FlexibleSubscriptions\HookProvider\Admin\DisableSubscriptionCreation->is_hpos_add_subscription()
    #1 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/class-wp-hook.php(324): WPDesk\FlexibleSubscriptions\HookProvider\Admin\DisableSubscriptionCreation->__invoke()
    #2 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /homepages/44/d1020172973/htdocs/wordpress/wp-admin/includes/class-wp-screen.php(424): do_action()
    #5 /homepages/44/d1020172973/htdocs/wordpress/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
    #6 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(530): set_current_screen()
    #7 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(632): Automattic\Jetpack\Sync\Sender->get_items_to_send()
    #8 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(487): Automattic\Jetpack\Sync\Sender->do_sync_for_queue()
    #9 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(362): Automattic\Jetpack\Sync\Sender->do_sync_and_set_delays()
    #10 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-actions.php(743): Automattic\Jetpack\Sync\Sender->do_sync()
    #11 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-actions.php(683): Automattic\Jetpack\Sync\Actions::do_cron_sync_by_type()
    #12 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/class-wp-hook.php(324): Automattic\Jetpack\Sync\Actions::do_cron_sync()
    #13 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #14 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action()
    #15 /homepages/44/d1020172973/htdocs/wordpress/wp-cron.php(191): do_action_ref_array()
    #16 {main}
    ? thrown


    The other like this:

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.6.2
    Active theme: Astra (version 4.8.3)
    Current plugin: Flexible Subscriptions (version 1.2.1)
    PHP version 8.2.25



    Error Details
    =============
    An error of type E_ERROR was caused in line 29 of the file /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/flexible-subscriptions/src/HookProvider/Admin/DisableSubscriptionCreation.php. Error message: Uncaught Error: Call to undefined function WPDesk\FlexibleSubscriptions\HookProvider\Admin\wc_get_page_screen_id() in /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/flexible-subscriptions/src/HookProvider/Admin/DisableSubscriptionCreation.php:29
    Stack trace:
    #0 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/flexible-subscriptions/src/HookProvider/Admin/DisableSubscriptionCreation.php(15): WPDesk\FlexibleSubscriptions\HookProvider\Admin\DisableSubscriptionCreation->is_hpos_add_subscription()
    #1 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/class-wp-hook.php(324): WPDesk\FlexibleSubscriptions\HookProvider\Admin\DisableSubscriptionCreation->__invoke()
    #2 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /homepages/44/d1020172973/htdocs/wordpress/wp-admin/includes/class-wp-screen.php(424): do_action()
    #5 /homepages/44/d1020172973/htdocs/wordpress/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
    #6 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(530): set_current_screen()
    #7 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(632): Automattic\Jetpack\Sync\Sender->get_items_to_send()
    #8 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(487): Automattic\Jetpack\Sync\Sender->do_sync_for_queue()
    #9 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(425): Automattic\Jetpack\Sync\Sender->do_sync_and_set_delays()
    #10 /homepages/44/d1020172973/htdocs/wordpress/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-actions.php(194): Automattic\Jetpack\Sync\Sender->do_dedicated_sync_and_exit()
    #11 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/class-wp-hook.php(324): Automattic\Jetpack\Sync\Actions::add_dedicated_sync_sender_init()
    #12 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #13 /homepages/44/d1020172973/htdocs/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    #14 /homepages/44/d1020172973/htdocs/wordpress/wp-settings.php(700): do_action()
    #15 /homepages/44/d1020172973/htdocs/wordpress/wp-config.php(115): require_once('/homepages/44/d...')
    #16 /homepages/44/d1020172973/htdocs/wordpress/wp-load.php(50): require_once('/homepages/44/d...')
    #17 /homepages/44/d1020172973/htdocs/wordpress/wp-blog-header.php(13): require_once('/homepages/44/d...')
    #18 /homepages/44/d1020172973/htdocs/wordpress/index.php(17): require('/homepages/44/d...')
    #19 {main}
    thrown



    Luckily it is not affecting the perfomance of my website, but nonetheless it shouldn't be like this.


    Kind Regards,
    Simon
    • This topic was modified 2 weeks, 5 days ago by slm0n.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support krzysztofskorupa

    (@krzysztofskorupa)

    Hi,
    thank you very much for your contact.

    I have created a developer task to fix the error.
    I will let you contact me when the update comes out, okay?

    Greetings,

    Plugin Contributor Bartek

    (@bartj)

    Hi @slm0n

    I’d like to inform you that we took care of the issue in recent Flexible Subscriptions 1.2.2 release.

    I’d be glad, if you could confirm the problem is solved!

    Best regards

    Thread Starter slm0n

    (@slm0n)

    Yes the issue is gone.

    Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.