{"id":16550689,"date":"2023-03-11T20:40:04","date_gmt":"2023-03-11T20:40:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/argument-count-error\/"},"modified":"2023-03-11T20:40:04","modified_gmt":"2023-03-11T20:40:04","slug":"argument-count-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/argument-count-error\/","title":{"rendered":"Argument Count Error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;m attempting to convert Weebly generated HTML to WordPress pages using this importer. I thought I had configured everything correctly, but encountered this error (note, site name obfuscated for privacy):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">======================================<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Fatal error<\/strong>: Uncaught ArgumentCountError: fopen() expects at least 2 arguments, 1 given in \/homepages\/xxxxxxxxxxxxxxx\/htdocs\/xxxxxxxxxxxxxxx\/wp-content\/plugins\/import-html-pages\/html-importer.php:286 Stack trace: #0 \/homepages\/xxxxxxxxxxxxxxx\/htdocs\/xxxxxxxxxxxxxxx\/wp-content\/plugins\/import-html-pages\/html-importer.php(286): fopen(&#8216;\/homepages\/~&#8230;&#8217;) #1 \/homepages\/xxxxxxxxxxxxxxx\/htdocs\/xxxxxxxxxxxxxxx\/wp-content\/plugins\/import-html-pages\/html-importer.php(1099): HTML_Import-&gt;get_files_from_directory(&#8216;\/homepages\/~&#8230;&#8217;) #2 \/homepages\/xxxxxxxxxxxxxxx\/htdocs\/xxxxxxxxxxxxxxx\/wp-content\/plugins\/import-html-pages\/html-importer.php(1129): HTML_Import-&gt;import() #3 \/homepages\/xxxxxxxxxxxxxxx\/htdocs\/xxxxxxxxxxxxxxx\/wp-admin\/admin.php(364): HTML_Import-&gt;dispatch() #4 {main} thrown in\u00a0<strong>\/homepages\/xxxxxxxxxxxxxxx\/htdocs\/xxxxxxxxxxxxxxx\/wp-content\/plugins\/import-html-pages\/html-importer.php<\/strong>\u00a0on line\u00a0<strong>286<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There has been a critical error on this website. Please check your site admin email inbox for instructions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">======================================<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If any forum members have some thoughts about what is happening on line 286 of the importer code, I&#8217;m fine with tuning it. I just haven&#8217;t figured out what code to adjust.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"template":"","class_list":["post-16550689","topic","type-topic","status-publish","hentry","topic-tag-html-import"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16550689","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16550689\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16550689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}