WordPress.org

Support

Support » Plugins and Hacks » HTML Import 2 » [Resolved] [Plugin: HTML Import 2] [function.scandir]: failed to open dir:

[Resolved] [Plugin: HTML Import 2] [function.scandir]: failed to open dir:

  • Hi,

    I have succesfully installed the plugin and provide the directory of where all my html files are that I want to import, saved all settings necessary but found this error when I clicked the import button:

    Importing HTML files…

    Warning: scandir(C:/Documents and Settings/mateens/My Documents/My Web Sites/sunnah.org) [function.scandir]: failed to open dir: No such file or directory in /home/content/s/u/n/sunnah/html/import/wp-content/plugins/import-html-pages/html-importer.php on line 262

    Warning: scandir() [function.scandir]: (errno 2): No such file or directory in /home/content/s/u/n/sunnah/html/import/wp-content/plugins/import-html-pages/html-importer.php on line 262

    Warning: Invalid argument supplied for foreach() in /home/content/s/u/n/sunnah/html/import/wp-content/plugins/import-html-pages/html-importer.php on line 263

    Warning: Invalid argument supplied for foreach() in /home/content/s/u/n/sunnah/html/import/wp-content/plugins/import-html-pages/html-importer.php on line 835

    Please advice me on what I should do or if im missing something in the process?

    Thanks!

    http://wordpress.org/extend/plugins/import-html-pages/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stephanie Leary

    @sillybean

    You’ve provided a path to files on your hard drive. You must upload them to the web server and provide that path instead. It should begin with /home/content/s/u/n/sunnah/html/import/ (the path to your WordPress installation).

    This is a great plugin. While learning how to use it, I imported my static pages four times. Each time I delete and import same pages my page slug becomes -1 (second time I tried) -2 (third time I tried) now my slug name is followed by a -4 even though I deleted my pages from WordPress admin view.

    How can I remove the -4 from my slug name?

    I am new to this.
    Thanks for your help.

    Plugin Author Stephanie Leary

    @sillybean

    WordPress adds -2 and so on to make sure that each page has a unique URL. You have to empty your trash before WP will let you reuse the original slugs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: HTML Import 2] [function.scandir]: failed to open dir:’ is closed to new replies.
Skip to toolbar