# Gravity Forms throwing errors in GeneratePress theme

**URL:** <https://community.gravityforms.com/t/gravity-forms-throwing-errors-in-generatepress-theme/14307>\
**Category:** Get Help\
**Tags:** database-error, gravityforms-27, conflict, generatepress\
**Created:** [January 26, 2023, 7:00pm UTC](https://community.gravityforms.com/t/gravity-forms-throwing-errors-in-generatepress-theme/14307 "2023-01-26T19:00:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joepoe777](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/joepoe777/32/6483_2.png) [@joepoe777](https://community.gravityforms.com/u/joepoe777)\
**Post date:** [January 26, 2023, 7:00pm UTC](https://community.gravityforms.com/t/gravity-forms-throwing-errors-in-generatepress-theme/14307/1 "2023-01-26T19:00:39Z")

</div>

I received this error when I updated Gravity Forms to version 2.7 today.

**Warning** : mysqli\_query(): (22032/3141): Invalid JSON text in argument 1 to function json\_contains: “Invalid value.” at position 0. in **/home/customer/www/tacticalfaith.com/public\_html/wp-includes/class-wpdb.php** on line **2187**

When I turned on the WP-Config.php error log on I received this database error.

**WordPress database error:** [Invalid JSON text in argument 1 to function json\_contains: “Invalid value.” at position 0.]  
`SELECT form_id FROM kxi_gf_form_meta WHERE JSON_CONTAINS(display_meta, '{\"form_full_screen_slug\": \"events/dr-jason-baxter-event\"}', '$.gf_theme_layers')`

So, I reverted the site back a day and will wait a little bit to update the plugin, but wanted to make Gravity Forms aware of this. This is the first problem I’ve ever had and I’ve been using GF’s for years. GeneratePress is up to date and so is my Wordpress version. Not sure if it matters, but I’m using Siteground as my host.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [January 29, 2023, 7:40pm UTC](https://community.gravityforms.com/t/gravity-forms-throwing-errors-in-generatepress-theme/14307/2 "2023-01-29T19:40:10Z")

</div>

Hi Joe. Can you please open a support ticket for this issue and include a copy of your system status report?

> **[Checking Your Environment Details](https://docs.gravityforms.com/checking-environment-details/#h-sending-system-reports)**
>
> As of Gravity Forms 2.2, it's possible to see full details on your hosting environment from directly within Gravity Forms. Investigating your environment details is one of the first and most helpful steps when troubleshooting an issue.

Thank you.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 30, 2023, 3:20pm UTC](https://community.gravityforms.com/t/gravity-forms-throwing-errors-in-generatepress-theme/14307/3 "2023-01-30T15:20:05Z")

</div>

I suspect the reason for this issue is that the `kxi_gf_form_meta` table contains some very old forms that haven’t been modified in years, so they are still serialized. We switched to JSON several years ago when saving new forms and updating existing forms.

Can you open a support ticket at [https://www.gravityforms.com/open-support-ticket/technical/](https://www.gravityforms.com/open-support-ticket/technical/), so we can investigate and confirm if this is the cause of your issue?

---

<div class="post-metadata">

**Author:** ![joepoe777](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/joepoe777/32/6483_2.png) [@joepoe777](https://community.gravityforms.com/u/joepoe777)\
**Post date:** [January 30, 2023, 4:59pm UTC](https://community.gravityforms.com/t/gravity-forms-throwing-errors-in-generatepress-theme/14307/4 "2023-01-30T16:59:17Z")

</div>

Looks like I am having no luck recreating the issue. I had restored the backup after I saw the error, but now it looks like there might have been an auto update, but regardless, Gravity Forms is updated and there are no PHP errors showing up in the site. I had created a staging site, and noticed that the plugin was already updated. Sorry about that. please let me know if there are any other questions you might have? I’m guessing creating a support ticket now would not be beneficial?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [March 1, 2023, 4:59pm UTC](https://community.gravityforms.com/t/gravity-forms-throwing-errors-in-generatepress-theme/14307/5 "2023-03-01T16:59:49Z")

</div>

Closed on March 1, 2023, 4:59pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
