{"id":16165761,"date":"2022-11-04T15:04:10","date_gmt":"2022-11-04T15:04:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/import-bug-resolution\/"},"modified":"2023-03-01T19:54:28","modified_gmt":"2023-03-01T19:54:28","slug":"import-bug-resolution","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/import-bug-resolution\/","title":{"rendered":"Import BUG +resolution"},"content":{"rendered":"<p>Hi all,<\/p>\n<p>just to inform the plugin owner that the error causing the import to fail on 500 can be resolved changing line 136 of file <strong>wp-content\/plugins\/export-import-menus\/models\/DspExportImportModel.php<\/strong> from this <\/p>\n<p><code>add_filter(&#039;map_meta_cap&#039;, &#039;menusUnfilteredUpload&#039;, 0, 2);<\/code><\/p>\n<p>to this<\/p>\n<p><code>add_filter(&#039;map_meta_cap&#039;, array($this, &#039;menusUnfilteredUpload&#039;), 0, 2);<\/code><\/p>\n<p>after this, it appears to work correctly<\/p>\n<p>Cheers<br \/>\nPp.<\/p>\n","protected":false},"template":"","class_list":["post-16165761","topic","type-topic","status-closed","hentry","topic-tag-bugfix"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16165761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":4,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16165761\/revisions"}],"predecessor-version":[{"id":16165801,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16165761\/revisions\/16165801"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16165761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}