• Resolved katanga1987

    (@katanga1987)


    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]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Nazmul Hassan

    (@nazmulhassann20)

    Hello @katanga1987,

    We have checked on our local-server with the latest version of Dokan and WooCommerce. We did not get any error which you have mentioned. Now, if WCFM plugin is conflicting with the latest version of Dokan plugin then we are helpless on this issue. They made their plugin based on Dokan so, they should make it compatible with the latest version of Dokan. We are unable to comment out any function for a third party plugin.

    Thanks!

    Thread Starter katanga1987

    (@katanga1987)

    Hi Nazmul…

    Thanks for the reply and completely understand your point of view.

    Will note the same issue with WCFM and see what they have to say.

    Nazmul Hassan

    (@nazmulhassann20)

    @katanga1987, Thanks for understanding ??

    WC Lovers

    (@wclovers)

    Hi @katanga1987,

    I have just checked that issue but can’t see any such issues.

    Our Dokan demo has latest version of Dokan Lite and WCFM with Listings. You may take a look at there – https://dokan.wcfmdemos.com/my-account

    Thank You

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Functions.php line 1332 causing error 500’ is closed to new replies.