Fails to open directory
-
Using WordPress 4.0 I receive these messages, with no pages importing:
Warning: scandir(/Users/lisasarasohn/Documents/local_sites/lisasarasohn/memorialpoems): failed to open dir: No such file or directory in /home/queenofb/public_html/memorialpoems/wp/wp-content/plugins/import-html-pages/html-importer.php on line 268
Warning: scandir(): (errno 2): No such file or directory in /home/queenofb/public_html/memorialpoems/wp/wp-content/plugins/import-html-pages/html-importer.php on line 268
Warning: Invalid argument supplied for foreach() in /home/queenofb/public_html/memorialpoems/wp/wp-content/plugins/import-html-pages/html-importer.php on line 269
Warning: Invalid argument supplied for foreach() in /home/queenofb/public_html/memorialpoems/wp/wp-content/plugins/import-html-pages/html-importer.php on line 998
– – – – –
Here are the relevant lines in
/home/queenofb/public_html/memorialpoems/wp/wp-content/plugins/import-html-pages/html-importer.php
lines 266-269
function get_files_from_directory($rootdir) {
$options = get_option(‘html_import’);
$dir_content = scandir($rootdir);
foreach($dir_content as $key => $val) {lines 987-998
function print_results($posttype) {
if (!empty($this->single_result))
echo $this->single_result;
else {
?>
<table class=”widefat page fixed” id=”importing” cellspacing=”0″>
<thead><tr>
<th id=”id”><?php _e(‘ID’, ‘import-html-pages’); ?></th>
<th><?php _e(‘Old path’, ‘import-html-pages’); ?></th>
<th><?php _e(‘New path’, ‘import-html-pages’); ?></th>
<th><?php _e(‘Title’, ‘import-html-pages’); ?></th>
</tr></thead><tbody> <?php foreach ($this->table as $row) echo $row; ?> </tbody></table>
The topic ‘Fails to open directory’ is closed to new replies.