Conversation
supportOn the HTML Importer pages, on clicking Submit I get the error: Fatal error: Uncaught Error: [] operator not supported for strings in [..]\html-importer.php on line 610 This appears to be due to using PHP 7.1+ which introduced a change in syntax. The solution is to edit the html-importer.php, and add a new line before line 610. Existing code (html-importer.php) 610: $this->table[] = "<tr><th class='error'>--</th><td colspan='3' class='error'> " . sprintf( __( "%s ( %s ) has already been imported", 'html-import-pages' ), $my_post['post_title'], $handle ) . "</td></tr>"; Edited code (html-importer.php) 610: $this->table = []; 611: $this->table[] = "<tr><th class='error'>--</th><td colspan='3' class='error'> " . sprintf( __( "%s ( %s ) has already been imported", 'html-import-pages' ), $my_post['post_title'], $handle ) . "</td></tr>"; In other words, when the new line 610 is inserted, the line that was 610 becomes lines 611. This topic was modified 5 years, 9 months ago by iantresman .
One more line needs editing: Existing code Line 1091: $this->table = ''; Edited code Line 1091: $this->table = [];
Thanks for your info, I’m just migration some static pages and found this plugin. Did you find any other issue ?
One more line needs editing: Existing code Line 1091: $this->table = ''; Edited code Line 1091: $this->table = [];
Thanks for your info, I’m just migration some static pages and found this plugin. Did you find any other issue ?