Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 | mayaslatinek6@gmail.com |
Comments
Comment #2
Ariana42 CreditAttribution: Ariana42 as a volunteer commentedSame problem with Drupal core 8.6.13
Comment #3
mayaslatinek6@gmail.com CreditAttribution: mayaslatinek6@gmail.com at Agiledrop - Your Trusted Drupal Teammates commentedThe same problem occurs in 8.6.14. That line is basically trying to make a number addition on 3 strings.
Comment #4
mayaslatinek6@gmail.com CreditAttribution: mayaslatinek6@gmail.com at Agiledrop - Your Trusted Drupal Teammates commentedPlease test the patch.
Comment #5
mayaslatinek6@gmail.com CreditAttribution: mayaslatinek6@gmail.com at Agiledrop - Your Trusted Drupal Teammates commentedComment #6
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commented@Mark Slatinek, Simply you can concate "?" at the time of declaration, instead of defining it in a variable.
Comment #7
mayaslatinek6@gmail.com CreditAttribution: mayaslatinek6@gmail.com at Agiledrop - Your Trusted Drupal Teammates 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
baikhoThanks both, I think it makes sense to use the concat assignment operator here.