Title: Theme and Tablepress
Last modified: August 21, 2016

---

# Theme and Tablepress

 *  Resolved [mkpalumbo](https://wordpress.org/support/users/mkpalumbo/)
 * (@mkpalumbo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/theme-and-tablepress/)
 * Hi,
 * After updating to 3.8 I found that the shortcodes I use for my theme failed to
   work. After disabling Tablepress, the started to work again. In debug mode I 
   got the following error when loading a page with the shortcodes:
 * Catchable fatal error: Argument 1 passed to TablePress_Frontend_Controller::shortcode_table()
   must be of the type array, string given in /home1/villari1/public_html/chandler/
   wp-content/plugins/tablepress/controllers/controller-frontend.php on line 320
 * [http://villarisinc.com/chandler/shortcodes/](http://villarisinc.com/chandler/shortcodes/)
 * The theme designer says that the error is with the tablepress plugin. I don’t
   know if it’s related to 3.8 or if that’s just a coincidence. I installed table
   press around the same time as my upgrade.
 * Thanks for any help you can give,
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/theme-and-tablepress/#post-4576006)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I think I have an idea on what’s happening here, but you should actually never
   really experience this. This only happens if you enter an empty Shortcode (i.
   e. one with a table ID), like
 *     ```
       [table]
       ```
   
 * to a page. Is that maybe a Shortcode on that page? (Note, that to show the plain
   Shortcode, you can write it in its escaped form: `[``[table]``]` ).
 * Regardless, to fix the error, you could update to the current TablePress developer
   version from [http://tablepress.org/download/tablepress-dev.zip](http://tablepress.org/download/tablepress-dev.zip)
   
   In, I have worked around that error by return a notice here.
 * Regards,
    Tobias
 *  Thread Starter [mkpalumbo](https://wordpress.org/support/users/mkpalumbo/)
 * (@mkpalumbo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/theme-and-tablepress/#post-4576036)
 * Hi,
 * I appreciate access to the dev file. It did fix it mostly. The page renders correctly
   now, and the rest of the short codes work. The theme designer did include a [
   table] short code for the purupose of styling tables. I’m not using them, but
   the fix you applied breaks them. I don’t know if there’s anyway around this, 
   and if there isn’t then I guess it’s OK because you’d either use the plugin or
   the theme, but not both.
 * [http://connect5fc.com/chandler/shortcodes/](http://connect5fc.com/chandler/shortcodes/)
 * Thanks,
 * Mike
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/theme-and-tablepress/#post-4576038)
 * Hi Mike,
 * good to hear that this helped.
 * Now, I don’t really understand what the theme is trying to do here.
    Does it 
   bring its own `[table]` Shortcode? That won’t work then, of course, as it would
   conflict with TablePress’s `[table]` Shortcode. The Shortcode will either be 
   renamed in the theme or in TablePress (with the help of this Extension: [http://tablepress.org/extensions/table-shortcode/](http://tablepress.org/extensions/table-shortcode/))
 * If you just want to show the text `[table]` (without that Shortcode being evaluated,
   you’ll just have to espace it with a second pair of `[]` as mentioned above.
 * Regards,
    Tobias
 *  Thread Starter [mkpalumbo](https://wordpress.org/support/users/mkpalumbo/)
 * (@mkpalumbo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/theme-and-tablepress/#post-4576039)
 * Hi,
 * Yes the theme has its own [table] shortcode. All it does is allow the styling
   of html tables. Your extension is nice for keeping things clean, even if I don’t
   use the theme’s table shortcode.
 * Thanks for your help.
 * Mike
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/theme-and-tablepress/#post-4576042)
 * Hi Mike,
 * ah, that explains it. If you don’t want to use the `[table]` Shortcode from your
   theme, but just the one from TablePress, you will not need the TablePress Extension.
   (
   Of course the link that you posted above will then not work, but that’s not a
   problem I guess).
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘Theme and Tablepress’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/theme-and-tablepress/#post-4576042)
 * Status: resolved