Argument Count Error
-
I’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):
======================================
Fatal error: 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(‘/homepages/~…’) #1 /homepages/xxxxxxxxxxxxxxx/htdocs/xxxxxxxxxxxxxxx/wp-content/plugins/import-html-pages/html-importer.php(1099): HTML_Import->get_files_from_directory(‘/homepages/~…’) #2 /homepages/xxxxxxxxxxxxxxx/htdocs/xxxxxxxxxxxxxxx/wp-content/plugins/import-html-pages/html-importer.php(1129): HTML_Import->import() #3 /homepages/xxxxxxxxxxxxxxx/htdocs/xxxxxxxxxxxxxxx/wp-admin/admin.php(364): HTML_Import->dispatch() #4 {main} thrown in?/homepages/xxxxxxxxxxxxxxx/htdocs/xxxxxxxxxxxxxxx/wp-content/plugins/import-html-pages/html-importer.php?on line?286
There has been a critical error on this website. Please check your site admin email inbox for instructions.
======================================
If any forum members have some thoughts about what is happening on line 286 of the importer code, I’m fine with tuning it. I just haven’t figured out what code to adjust.
- The topic ‘Argument Count Error’ is closed to new replies.