• Good day! I use nginx 1.14 and php-fpm7
    Single html page import work well, but if I try to import the html files from the folder then I get the zero result:

    HTML Importer
    Importing HTML files…
    ID Old path New path Title
    All done. Have fun!

    there is an error in nginx error log:

    2018/08/13 01:14:01 [error] 5167#5167: *5387 FastCGI sent in stderr: “PHP message: PHP Warning: Invalid argument supplied for foreach() in /home/astra/www/sitename/wp-content/plugins/import-html-pages/html-importer.php on line 1040” while reading upstream, client: ip, server: servername, request: “POST /wp-admin/admin.php?import=html&step=1 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “hostname”, referrer: “http://siteadress/wp-admin/admin.php?import=html”

    How i can resolve this problem? THank you!

Viewing 1 replies (of 1 total)
  • Thread Starter wpht

    (@wpht)

    there is wrong rights on html files, problem solved.

    • This reply was modified 5 years, 8 months ago by wpht.
Viewing 1 replies (of 1 total)
  • The topic ‘Invalid argument supplied for foreach() in html-importer.php on line 1040’ is closed to new replies.