• mayday295

    (@mayday295)


    I’m attempting to add a custom shipping condition using a plugin called “Conditional Shipping for WooCommerce”. I add the shipping condition on the woocommerce < Shipping < Conditions page.

    When I try to save, I get this error:

    Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/customer/www/poplarcreekfarms.com/public_html/wp-content/plugins/woo-product-attachment/admin/class-woocommerce-product-attachment-admin.php:1847 Stack trace: #0 /home/customer/www/poplarcreekfarms.com/public_html/wp-includes/class-wp-hook.php(289): Woocommerce_Product_Attachment_Admin->wcpoa_attachment_meta_data(1641) #1 /home/customer/www/poplarcreekfarms.com/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(1641, Array) #2 /home/customer/www/poplarcreekfarms.com/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/customer/www/poplarcreekfarms.com/public_html/wp-includes/post.php(4260): do_action(‘save_post’, 1641, Object(WP_Post), true) #4 /home/customer/www/poplarcreekfarms.com/public_html/wp-includes/post.php(4354): wp_insert_post(Array, false) #5 /home/customer/www/poplarcreekfarms.com/public_html/wp-content/plugins/woo-conditional-shipping-pro/includes/admin/class-woo-conditional-shippi in /home/customer/www/poplarcreekfarms.com/public_html/wp-content/plugins/woo-product-attachment/admin/class-woocommerce-product-attachment-admin.php on line 1847
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Learn more about debugging in WordPress.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello mayday295,

    Thanks for reaching out to us.

    I think this issue is coming because of another plugin conflict with our plugin.

    Can you please comment that line or function which causing an issue and check if its work or not.

    We have also replied on your support email.

    Best Regards,
    Hitendra & Dotstore team

    Hello, we have the exact same problem. What can we do?

    Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /var/www/danishwebsite.dk/public_html/wp-content/plugins/woo-product-attachment/admin/class-woocommerce-product-attachment-admin.php:1847 Stack trace: #0 /var/www/danishwebsite.dk/public_html/wp-includes/class-wp-hook.php(289): Woocommerce_Product_Attachment_Admin->wcpoa_attachment_meta_data(6807) #1 /var/www/danishwebsite.dk/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /var/www/danishwebsite.dk/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #3 /var/www/danishwebsite.dk/public_html/wp-includes/post.php(4309): do_action(‘save_post’, 6807, Object(WP_Post), true) #4 /var/www/danishwebsite.dk/public_html/wp-includes/post.php(4411): wp_insert_post(Array, false, true) #5 /var/www/danishwebsite.dk/public_html/wp-content/plugins/conditional-shipping-for-woocommerce/includes/admin/class-woo-conditional-shipping-admin.php(141): wp_update_post(Array, false) #6 /var/www/danishwebsite.dk/public_html/wp-includes/class-w in /var/www/danishwebsite.dk/public_html/wp-content/plugins/woo-product-attachment/admin/class-woocommerce-product-attachment-admin.php on line 1847
    Der er sket en kritisk fejl p? dit websted. Tjek venligst dit websteds administrator e-mail indbakke for instruktioner.

    L?r mere om fejls?gning i WordPress.

    • This reply was modified 3 years, 10 months ago by prokops.

    I have talked with Lauri from WooElements and his feedback is below.
    Can this be fixed soon?

    Yes, it indeed seems to be a conflict between the two plugins. It’s being triggered by use of get_current_screen() function in Product Attachment when Conditional Shipping is trying to save the ruleset. Product Attachment is hooking into the saving process. This is an issue that should be fixed in Product Attachment as it cannot be fixed in Conditional Shipping.

    Here’s some more info why the error happens: https://wordpress.stackexchange.com/questions/145670/call-to-undefined-function-get-current-screen-on-my-localhost

    Kind regards,
    Lauri Karisola
    WooElements.com Support

    Can you please comment on this issue.

    Thread Starter mayday295

    (@mayday295)

    Would love help with this. I paid for the plugin but haven’t been able to use it for months.

    I am currently setting up an Advanced Custom Fields alternative for my client.
    It seems that support for this issue is not available at this time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error plugin conflict’ is closed to new replies.