Title: Illegal string offset in shortcodes.php
Last modified: November 21, 2019

---

# Illegal string offset in shortcodes.php

 *  Resolved [moustastrophe](https://wordpress.org/support/users/moustastrophe/)
 * (@moustastrophe)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/illegal-string-offset-in-shortcodes-php/)
 * After installing the plugin I’m getting errors on the food items page all similar
   to the below…
 * `Warning: Illegal string offset 'buy_button' in D:\xampp\htdocs\fat-dragon\wp-
   content\plugins\restropress\includes\shortcodes.php on line 558`
 * Is this a new bug?

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

 *  Plugin Contributor [Kshirod Patel](https://wordpress.org/support/users/kshirod-patel/)
 * (@kshirod-patel)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/illegal-string-offset-in-shortcodes-php/#post-12162437)
 * Hello,
 * Can you try to switch any default theme and check whether its working for you?
 *  Thread Starter [moustastrophe](https://wordpress.org/support/users/moustastrophe/)
 * (@moustastrophe)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/illegal-string-offset-in-shortcodes-php/#post-12164080)
 * [@kshirod-patel](https://wordpress.org/support/users/kshirod-patel/) I initially
   installed it using Twenty Twenty theme and I’ve switched to Twenty Nineteen and
   it does the same for both
    -  This reply was modified 6 years, 6 months ago by [moustastrophe](https://wordpress.org/support/users/moustastrophe/).
 *  Plugin Contributor [Kshirod Patel](https://wordpress.org/support/users/kshirod-patel/)
 * (@kshirod-patel)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/illegal-string-offset-in-shortcodes-php/#post-12166292)
 * Hello,
 * Please use our latest version of this plugin. Let us know if that works for you.
 *  Thread Starter [moustastrophe](https://wordpress.org/support/users/moustastrophe/)
 * (@moustastrophe)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/illegal-string-offset-in-shortcodes-php/#post-12169338)
 * This has fixed the illegal string issue but there are no food items showing on
   the food items page…
 *  Plugin Contributor [Kshirod Patel](https://wordpress.org/support/users/kshirod-patel/)
 * (@kshirod-patel)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/illegal-string-offset-in-shortcodes-php/#post-12204774)
 * Hello,
 * have you configured the fooditems properly?
 *  Plugin Contributor [Kshirod Patel](https://wordpress.org/support/users/kshirod-patel/)
 * (@kshirod-patel)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-in-shortcodes-php/#post-12299015)
 * Hello,
 * Hope your issue has been fixed by using the latest version of RestroPress. We
   are going to mark this topic as resolved. If you have any other issue then please
   create a new ticket.
 * Regards,

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

The topic ‘Illegal string offset in shortcodes.php’ is closed to new replies.

 * ![](https://ps.w.org/restropress/assets/icon-256x256.gif?rev=3216477)
 * [RestroPress - Online Food Ordering System](https://wordpress.org/plugins/restropress/)
 * [Support Threads](https://wordpress.org/support/plugin/restropress/)
 * [Active Topics](https://wordpress.org/support/plugin/restropress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restropress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restropress/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Kshirod Patel](https://wordpress.org/support/users/kshirod-patel/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-in-shortcodes-php/#post-12299015)
 * Status: resolved