WPIntell

Source evidence

Fatal error [] operator not supported for strings [Solved]

HTML Import 2 · support · 2020-08-16T17:20:00+00:00

complaintsentiment
highseverity
1.0relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 25 rows with source links

16.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

21 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
iantresman unresolved
On 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 ?

Comments

2 shown
iantresman 2020-08-25T17:24:00+00:00

One more line needs editing: Existing code Line 1091: $this->table = ''; Edited code Line 1091: $this->table = [];

An-tonio 2021-01-06T10:11:00+00:00

Thanks for your info, I’m just migration some static pages and found this plugin. Did you find any other issue ?