Conflict found
-
Hello,
I found it causes other plugin setting page mess up. Can you help?
Thanks in advance!
-
Hi @cfm168,
Please share a screenshot depicting the issue and also share exactly which plugin settings is having the issue when ours is active.
Hi webtoffee (@webtoffee),
Thanks for prompt response.
You can see the red mart indicating mess: https://prnt.sc/u0s44g
Deactivate your plugin, the page is back to normal: https://prnt.sc/u0s63z
Plugin name and setting are showed in the screenshot. Luckily Functionality is not affected thought.Please help. Thanks!
Hi @cfm168,
Please try adding below code snippet into your active theme’s functions.php
add_action('admin_footer', 'wt_pklist_dequeue_wc_script' ); function wt_pklist_dequeue_wc_script() { if(isset($_GET['page']) && $_GET['page']=='wpc-manage-settings') { wp_deregister_script('wc-enhanced-select'); wp_dequeue_script('wc-enhanced-select'); } }Hi @webtoffee,
This code is not working and causing critical to the site inaccessible.
Hi @cfm168,
Please try below code:
add_action( 'admin_print_styles', 'wt_pklist_dequeue_wc_script',11); function wt_pklist_dequeue_wc_script() { if(isset($_GET['page']) && $_GET['page']=='wpc-manage-settings') { wp_deregister_script('wc-enhanced-select'); wp_dequeue_script('wc-enhanced-select'); } }Sorry this code still not working. The site open up with following warning:
—————————————————-
There has been a critical error on your website.Learn more about debugging in WordPress.
—————————————————-Hi @cfm168,
Please share the critical error that you received in your admin email.
I don’t see the critical error email. Only that notice on website page. Is it possible change the code only on the plugin?
Hi @cfm168,
Please check the error in your Woocommerce fatal error logs under Woocommerce > Status > Log.
Fatal error logs:
2020-08-22T18:39:38+00:00 CRITICAL syntax error, unexpected ‘&’ in /home/cho/mysite.com/wp-content/themes/twentyeleven-child/functions.php on line 97
2020-08-24T18:05:38+00:00 CRITICAL syntax error, unexpected ‘&’ in /home/cho/mysite.com/wp-content/themes/twentyeleven-child/functions.php on line 124
Hi @cfm168,
Please share your functions.php via this form.
The topic ‘Conflict found’ is closed to new replies.