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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | structured_data.patch | 626 bytes | jigish.addweb |
| #4 | structureddata-nonNumericValueDetected-3038686-4.patch | 904 bytes | mayaslatinek |
Comments
Comment #2
Ariana42 commentedSame problem with Drupal core 8.6.13
Comment #3
mayaslatinek commentedThe same problem occurs in 8.6.14. That line is basically trying to make a number addition on 3 strings.
Comment #4
mayaslatinek commentedPlease test the patch.
Comment #5
mayaslatinek commentedComment #6
jigish.addweb commented@Mark Slatinek, Simply you can concate "?" at the time of declaration, instead of defining it in a variable.
Comment #7
mayaslatinek commented@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.
Comment #9
baikho commentedThanks both, I think it makes sense to use the concat assignment operator here.