# Issue with embedded form on wp-engine: A non-numeric value encountered

**URL:** <https://community.hubspot.com/t/issue-with-embedded-form-on-wp-engine-a-non-numeric-value-encountered/13726>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [March 28, 2019, 7:31am UTC](https://community.hubspot.com/t/issue-with-embedded-form-on-wp-engine-a-non-numeric-value-encountered/13726 "2019-03-28T07:31:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erniehigh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/erniehigh/32/63860_2.png) [@erniehigh](https://community.hubspot.com/u/erniehigh)\
**Post date:** [March 28, 2019, 7:31am UTC](https://community.hubspot.com/t/issue-with-embedded-form-on-wp-engine-a-non-numeric-value-encountered/13726/1 "2019-03-28T07:31:19Z")

</div>

Took over a WordPress site hosted on wp-engine. The form loads and works as expected.

Created a clone for a stage site everything is the same theme, plugins, database, etc. The form is added with Hubspot “Share” javascript.

```auto
 hbspt.forms.create({
portalId: "426511",
formId: "3999df8b-33a7-4075-ad54-b6473f5c2479",
css: ""
});

```

There is code added to the custom theme connect to the API for submitting the form. As I said above it works great, except on the stage site

```auto
 public function getFormData($cached = true){
 if(!$this->_formId) {
 return false;
 }

 $data = unserialize(get_option(self::OPTION_PREFIX + $this->_formId));
 if(!$data || !$cached) {
 $data = $this->_getFormDataFromApi();
 if($data) {
 $this->_updateWpOption(self::OPTION_PREFIX + $this->_formId, serialize($data));
 }
 }
 return $data;
 }

```

is producing an error saying \_formId is not a number the enitre error message here:

Warning: A non-numeric value encountered in /nas/content/staging/aprenergy/wp-content/themes/apr/functions/hubspot-functions.php on line 291

Line 291 is $data = unserialize(get\_option(self::OPTION\_PREFIX + $this-\>\_formId));

The form appears to work but that error message is a bit worrisome. New at Hubspot so looking for suggestions

Thanks

Ernie

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [April 1, 2019, 12:54pm UTC](https://community.hubspot.com/t/issue-with-embedded-form-on-wp-engine-a-non-numeric-value-encountered/13726/2 "2019-04-01T12:54:26Z")

</div>

Welcome, @erniehigh.

That looks like a PHP `E_WARNING` citing the fact that you’re attempting to use the `+` operator with strings instead of numbers. See [this PHP 7.1.x documentation](https://www.php.net/manual/en/migration71.other-changes.php) and [this Stack Overflow discussion](https://stackoverflow.com/questions/42044127/warning-a-non-numeric-value-encountered).

Your form should continue to work, though.

---

<div class="post-metadata">

**Author:** ![erniehigh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/erniehigh/32/63860_2.png) [@erniehigh](https://community.hubspot.com/u/erniehigh)\
**Post date:** [April 9, 2019, 7:28pm UTC](https://community.hubspot.com/t/issue-with-embedded-form-on-wp-engine-a-non-numeric-value-encountered/13726/3 "2019-04-09T19:28:08Z")

</div>

Yes, that is what it was exactly. The sad thing is that this code appears to not even be needed any longer.

Thanks
