• Resolved Sean Conklin

    (@seanconklin)


    Hello,

    We’re seeing this crash log:

    CRITICAL Uncaught Error: Call to undefined function convert_to_screen() in /wp-admin/includes/class-wp-list-table.php:149

    I’ve traced it to the Imagify plugin in this line:

    plugins/imagify/inc/classes/class-imagify-files-list-table.php:convert_to_screen

    I suspect this is a WordPress 6.4 incompatibility. We’re running WP v6.4.1.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi @seanconklin

    I am sorry to hear about the issue!

    Can you please share further details in which case do you receive this error?

    Best Regards,

    Ioanna

    Thread Starter Sean Conklin

    (@seanconklin)

    Please confirm – you’re not getting this crash in WordPress 6.4 running this plugin and viewing the Imagify interfaces?

    Plugin Author WP Media

    (@wp_media)

    Hi @seanconklin

    I have already shared the issue with the rest of our team and I will get back to you as soon as possible.

    Thank you for your patience!

    Best Regards,

    Ioanna

    Plugin Author WP Media

    (@wp_media)

    Hi @seanconklin

    Thank you for your patience once again!

    Checking from our end I can confirm that we cannot reproduce the issue.

    Thread Starter Sean Conklin

    (@seanconklin)

    This PHP crash is still showing up in the WooCommerce > Status > Logs several times a day.

    Here’s the stack trace. It looks to me this comes from admins looking at the WooCommerce orders list and an AJAX request firing off their browser.

    Imagify is the only plugin that I could find that calls the missing function convert_to_screen(). I would say to have your developers check where they’re hooking into WordPress. There must be somewhere that’s too general and allowing AJAX to execute their code surrounding the convert_to_screen call.

    Stack trace:
    #0 wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php(74): WP_List_Table->__construct(Array)
    #1 wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(28): Automattic\WooCommerce\Internal\Admin\Orders\ListTable->__construct()
    #2 wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass('Automattic\\WooC...')
    #3 wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve(false)
    #4 wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...', false)
    #5 wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(158): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false)
    #6 wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(178): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...', false)
    #7 wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(158): Automattic\WooCommerce\Vendor\League\Container\Container->get('Automattic\\WooC...', false)
    #8 wp-content/plugins/woocommerce/src/Container.php(110): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get('Automattic\\WooC...')
    #9 wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php(48): Automattic\WooCommerce\Container->get('Automattic\\WooC...')
    #10 wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php(100): WC_Admin_List_Table_Orders->__construct()
    #11 wp-includes/class-wp-hook.php(326): WC_Admin_Post_Types->setup_screen('inlineeditnonce')
    #12 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #13 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #14 wp-includes/pluggable.php(1343): do_action('check_ajax_refe...', 'inlineeditnonce', false)
    #15 wp-content/plugins/wordpress-seo/src/conditionals/admin/doing-post-quick-edit-save-conditional.php(25): check_ajax_referer('inlineeditnonce', '_inline_edit', false)
    #16 wp-content/plugins/wordpress-seo/src/loader.php(270): Yoast\WP\SEO\Conditionals\Admin\Doing_Post_Quick_Edit_Save_Conditional->is_met()
    #17 wp-content/plugins/wordpress-seo/src/loader.php(208): Yoast\WP\SEO\Loader->conditionals_are_met('Yoast\\WP\\SEO\\In...')
    #18 wp-includes/class-wp-hook.php(324): Yoast\WP\SEO\Loader->load_integrations('')
    #19 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #20 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #21 wp-settings.php(643): do_action('init')
    #22 wp-config.php(57): require_once('/www/...')
    #23 wp-load.php(50): require_once('/www/...')
    #24 wp-admin/admin-ajax.php(22): require_once('/www/...')
    #25 {main}
      thrown in wp-admin/includes/class-wp-list-table.php on line 149
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP crash: Call to undefined function convert_to_screen’ is closed to new replies.