WordPress.org

Forums

HTML Import 2
[resolved] [function.scandir]: failed to open dir: (4 posts)

  1. ksutar
    Member
    Posted 2 years ago #

    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/

  2. Stephanie Leary
    Member
    Plugin Author

    Posted 2 years ago #

    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).

  3. Pumps001
    Member
    Posted 2 years ago #

    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.

  4. Stephanie Leary
    Member
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HTML Import 2
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic