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

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.

 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

 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

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 and this Stack Overflow discussion.

Your form should continue to work, though.

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

Thanks