• I have loaded a database and created a page with [table id=1 /] on it. When I load the page it has these two error messages on it:

    Warning: array_slice() [function.array-slice]: The first argument should be an array in /mnt/w0212/d23/s08/b0118a34/www/ownwp/wp-content/plugins/wp-table-reloaded/classes/render.class.php on line 265

    Warning: Invalid argument supplied for foreach() in /mnt/w0212/d23/s08/b0118a34/www/ownwp/wp-content/plugins/wp-table-reloaded/classes/render.class.php on line 283

    What should I do?

    Eleanor

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    this sounds as if your table is corrupted. Can you edit it without problems in the backend?
    Does it update correctly?

    Regards,
    Tobias

    Thread Starter eleanorb

    (@eleanorb)

    Well, I just loaded it, from a cav file, and it looked okay in the after-import display. How do I edit it in the backend?
    Eleanor

    Thread Starter eleanorb

    (@eleanorb)

    Hang on, I’ll redo the csv — maybe it had problems — and reload and get back to you.
    Eleanor

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    then you likely have some “weird” characters in the table, like typographically nice quotation marks or accents. Due to different character encodings that sometimes causes trouble, so that the table gets corrupted in the database.
    While the “Edit” screen after the initial import looks fine, the table actually does not get saved to the database. If you then try to load the table, no data is actually returned, which leads to the above error message.

    Regards,
    Tobias

    Thread Starter eleanorb

    (@eleanorb)

    Does the line number in the error message perhaps refer to the line in the database? That would be nice…

    Eleanor

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no, unfortunately not 🙁 That line number refers to the part of the PHP code which first notices the error.

    If you want, you can email the CSV file to me and I will see if I can spot the source of the issue. My address is in the main plugin PHP file of WP-Table Reloaded.

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wp-table-reloaded’ is closed to new replies.