• Resolved prokops

    (@prokops)


    Hello, when I use your plugin together with conditional shipping, I get this error:

    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.

    Lauri from Conditional Shipping writes:

    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

    Can this get addressed by you? This is a problem for these two plugins working together.

    • This topic was modified 3 years, 12 months ago by prokops.
Viewing 1 replies (of 1 total)
  • Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello Prokops,

    Thanks for addressing your queries here.

    No, we never get this type of conflict at our side.

    Sure, we will test both plugins on the same site and resolve them in our upcoming version if we found anything.

    Apologies for the inconvenience.

    Best Regards,
    Hitendra & Dotstore Team

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