• When trying to Import, after selecting a file and clicking “Import Menus” I get Error in processing!

    The error inte log is:

    TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “menusUnfilteredUpload” not found or invalid function name

    /wp-content/plugins/export-import-menus/models/DspExportImportModel.php in DspExportImportModel::uploadMenusJson at line 137

    The line is:
    $movefile = wp_handle_upload( $requested_vars[‘menusfile’], $upload_overrides );

Viewing 1 replies (of 1 total)
  • This is a problem in PHP8+. To fix this we need to fix the add_filter() within ‘models/DspExportImportModel.php’ on line 136 to the below.

    add_filter('map_meta_cap', array($this,'menusUnfilteredUpload'), 0, 2);

    This will now allow you to upload the menu import.

Viewing 1 replies (of 1 total)

The topic ‘Error in processing: function “menusUnfilteredUpload” not found’ is closed to new replies.