Functions.php line 1332 causing error 500
-
Hi guys,
The latest version of Dokan Lite causes error 500 when loading WooCommerce products. Seems to be a conflict with the latest version of WCFM.
Get an Ajax error and no products load for all users except admin users.
Error on front-end is:
DataTables warning: table id=wcfm-listings - Ajax error. For more information about this error, please see https://datatables.net/tn/7
Error when checking error logs is:
PHP Fatal error: Call to undefined function remove_meta_box() in my-site-url/wp-content/plugins/dokan-lite/includes/functions.php on line 1332
Just commented out this function and error is resolved.
if ( is_admin() && $query->query_vars['post_type'] == 'page' ) { remove_meta_box( 'sellerdiv', 'product', 'normal' ); }
Please advise a potentially better solution.
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Functions.php line 1332 causing error 500’ is closed to new replies.