• After I upload a CSV file it shows me all of the cells with the correct information. Then I “save and go back”. When I go back into edit the table all of the cells are gone with errors in the Data Manipulation editor:
    Warning: Invalid argument supplied for foreach() in /home/epiq/public_html/wp-content/plugins/wp-table-reloaded/views/view-edit.php on line 119 for various lines.

    Then if I go back to the tables-list page it shows these errors at the top: Warning: Invalid argument supplied for foreach() in /home/epiq/public_html/wp-content/plugins/wp-table-reloaded/controllers/controller-admin.php on line 405

    Warning: Invalid argument supplied for foreach() in /home/epiq/public_html/wp-content/plugins/wp-table-reloaded/controllers/controller-admin.php on line 407.

    It seems like if there was something wrong with the CSV file it wouldn’t import at all.

    Any help would be appreciated.
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post.

    Very likely this is a problem with the character encoding. I have noticed in the past, that certain characters (especially from foreign languages) seem to cause trouble with some PHP functions.

    This happens, when the plugin can’t read the table data correctly from the database, which usually happens during the saving of the imported data.
    While the initial import works, the ensuing saving fails, very likely to a problem with the character encoding.
    I was not yet able to find a definite cause or a solution, but usually this helps:
    Check the CSV file (in a text editor) for “special” characters.
    This means for example quotation marks or apostrophes that are not exactly the ones from the keyboard, but more typographically nice ones (i.e. the sometimes look more like an accent ′ instead of an apostrophe ‘). Then replace those by the “regular” characters.
    It could also help to open the CSV file in Notepad and then “Save as” with a different “Character Encoding” selected

    After that the import and saving process should work as expected and the table should appear fine on the page.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Uploaded table disappears after I save.’ is closed to new replies.