Title: Incorrect column count
Last modified: January 2, 2024

---

# Incorrect column count

 *  Resolved [jordiparera](https://wordpress.org/support/users/jordiparera/)
 * (@jordiparera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/)
 * Hi, I’ve read the previous support requests, and I’ve tried the fix this error
   with those proposals. Anyway, the table shows the “Incorrect column count” error.
 * However, if I untick the”enable visitor features”, the table loads well, but 
   then, of course, the “search” field does not appear on the page. This searching
   feature is very important for me.
 * Is there any possibility to add it, anyway? Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fincorrect-column-count-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/#post-17313277)
 * Hi!
 * Thanks for your post and sorry for the trouble!
 * The cause for this is invalid HTML code in some cells with images in the second
   column of the table. All affected images seem to have a line break right after
   the
 *     ```wp-block-code
       alt="free sheet music download
       ```
   
 * part in their HTML code. This line break however breaks the HTML, so that the
   browser can not properly identify the end of the image HTML code anymore and 
   then can’t determine where a cell ends. This leads to the wrong count of cells
   in these rows.
 * To fix this issue, you will need to go through the HTML code of all these images
   and remove that extra line break, and potentially fix the quotation marks. A 
   quick way for this might be to export the table to a CSV file and then open that
   in a good text editor, where you can solve these in bulk via search/replace.
 * Regards,
   Tobias
 *  Thread Starter [jordiparera](https://wordpress.org/support/users/jordiparera/)
 * (@jordiparera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/#post-17313959)
 * Hi, Tobias,
 * Thanks a lot for your fast reply!
 * I’m working on it, but the fact is that with my previous theme (WP Twenty-Twenty)
   it worked 100% fine, even with the same line breaks. Now, I’m using the current
   theme, Twenty-Four.
 * Maybe, this will provide you a hint to solve this behavior.
 * Best regards, Jordi
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/#post-17313984)
 * Hi,
 * I’m afraid that there’s nothing really to solve here, the issue is pretty clear
   🙁 It might simply be possible that the old theme was less strict in sanitizing
   HTML code. The best solution is to fix those issues with the line breaks and 
   quotation marks in the HTML code of your images in the table.
 * Regards,
   Tobias
 *  Thread Starter [jordiparera](https://wordpress.org/support/users/jordiparera/)
 * (@jordiparera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/#post-17324007)
 * Thank you very much, Tobias. It worked!
 * One more question, please:
 * If I want to copy a table from a website to a different website, how is it possible
   to do it in a way that the domain of the new web is automatically changed in 
   the contents’ cells?
 * Thanks for your support, and Happy New Year!
 * Jordi
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/#post-17324376)
 * Hi,
 * automatically changing the domain is not possible, sorry. You could export the
   table to a CSV file and then open that in text editor or programming IDE and 
   use the search/replace feature there. Then, import the modified CSV file on the
   new site.
 * Best wishes,
   Tobias
 *  Thread Starter [jordiparera](https://wordpress.org/support/users/jordiparera/)
 * (@jordiparera)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/#post-17324532)
 * Thanks for your kind reply!
 * Happy New Year!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/#post-17325273)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
   Tobias
 * P.S.: In case you haven’t, please [rate TablePress in the plugin directory](https://wordpress.org/support/plugin/tablepress/reviews/#new-post).
   Thanks!

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

The topic ‘Incorrect column count’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/incorrect-column-count-4/#post-17325273)
 * Status: resolved