flagshipcompany / flagship-for-woocommerce

MIT License
7 stars 3 forks source link

Bug/Issue: Uncaught Error: Call to undefined function FS\Components\Event\Listener\wc_get_page_screen_id() #93

Open VSWebTeam opened 9 months ago

VSWebTeam commented 9 months ago

We're getting an error when editing a site page or a product page. The error details are below.

Here are the details of our site: WordPress version 5.9.8 Current theme: Divi Child (version ) Current plugin: FlagShip WooCommerce Shipping (version 3.0.25) PHP version 8.0.30

Error Details

An error of type E_ERROR was caused in line 68 of the file /home/ecoaquariums/public_html/wp-content/plugins/flagship-woocommerce-shipping/src/Components/Event/Listener/MetaboxDisplay.php. Error message: Uncaught Error: Call to undefined function FS\Components\Event\Listener\wc_get_page_screen_id() in /home/ecoaquariums/public_html/wp-content/plugins/flagship-woocommerce-shipping/src/Components/Event/Listener/MetaboxDisplay.php:68 Stack trace:

0 /home/ecoaquariums/public_html/wp-includes/class-wp-hook.php(309): FS\Components\Event\Listener\MetaboxDisplay->FS\Components\Event\Listener{closure}('product')

1 /home/ecoaquariums/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)

2 /home/ecoaquariums/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)

3 /home/ecoaquariums/public_html/wp-admin/includes/meta-boxes.php(1581): do_action('add_meta_boxes', 'product', Object(WP_Post))

4 /home/ecoaquariums/public_html/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post))

5 /home/ecoaquariums/public_html/wp-admin/post.php(206): require('/home/ecoaquari...')

6 {main}

thrown