• Resolved Antony Booker

    (@antonynz)


    The select post type drop field on the order and export page is empty so I’m unable to get past the first step.

    Is there anything that may cause that to happen?

    I’m using the latest WC and WP version, with the default theme, with no other plugins active.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @antonynz,

    Please make sure that Woocommerce is activated on your site for the plugin to work. If the issue still persists then please share the fatal error log and system report?

    Thread Starter Antony Booker

    (@antonynz)

    Thanks for the response. There weren’t any errors in the log but I’ve done a bit of debugging and found the culprit.

    The plugins folder was renamed from the default ‘plugins’, and on line #379 in the class-wt-import-export-for-woo-admin.php it requests the modules with a hardcoded “plugins” path so the wt_iew_exporter_post_types_basic filter was never called to add the post types.

    Replacing:
    $module_file=WP_CONTENT_DIR."/plugins/{$module_path}/admin/modules/$module_key/$module_key.php";

    With:
    $module_file=plugin_dir_path( __DIR__)."admin/modules/$module_key/$module_key.php";

    Or even:
    $module_file=dirname(__FILE__)."/modules/$module_key/$module_key.php";

    Made it compatible with the custom plugins folder name, if you wanted to add that to the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘select post type drop down is empty’ is closed to new replies.