When I open a page in admistrator mode, I get following warning:
Warning: A non-numeric value encountered in structured_data_toolbar_alter() (line 16 of modules/structured_data/structured_data.module).

I have PHP version 7.2.15

After reload, the warnings are gone.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ariana42 created an issue. See original summary.

Ariana42’s picture

Same problem with Drupal core 8.6.13

mayaslatinek6@gmail.com’s picture

The same problem occurs in 8.6.14. That line is basically trying to make a number addition on 3 strings.

mayaslatinek6@gmail.com’s picture

Please test the patch.

mayaslatinek6@gmail.com’s picture

Status: Active » Needs review
jigish.addweb’s picture

FileSize
626 bytes

@Mark Slatinek, Simply you can concate "?" at the time of declaration, instead of defining it in a variable.

mayaslatinek6@gmail.com’s picture

@jigish.addweb yes I know. I did that at first and it would be logical that it would work, but at the time when I was doing this, for some reason putting it in at the time of declaration didn't resolve the issue for me.

  • baikho committed eae03b9 on 8.x-1.x authored by Maya Slatinek
    Issue #3038686 by Maya Slatinek, jigish.addweb, Ariana42: Warning: A non...
baikho’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Status: Needs review » Fixed

Thanks both, I think it makes sense to use the concat assignment operator here.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.