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.
Getting
Warning: Illegal offset type in _bootstrap_is_simple_string() (line 1224 of /home/solution/public_html/solutionsnetwork.ch/themes/bootstrap/includes/common.inc).
on the 4/9/2015 dev build.
Comment | File | Size | Author |
---|---|---|---|
#7 | bootstrap_simple_string.2565217-7.patch | 1.54 KB | Haza |
#5 | bootstrap_simple_string.2565217-5.patch | 1.33 KB | Haza |
#4 | bootstrap_simple_string.2565217-4.patch | 587 bytes | Haza |
Comments
Comment #2
markhalliwellComment #3
platinum1 CreditAttribution: platinum1 commentedThe site is a Beta 14 build upgraded to Beta 15. The log shows the error when calling up basic pages and articles.
Additional info:
PHP 5.5.29
MySQL
LiteSpeed
Comment #4
HazaI have the same issue.
I guess we have this error because we try to do some string work on an object, as you can see here :
$string is a FieldFilteredMarkup object.
A simple patch that for the $string variable to actually be a string is attached.
Comment #5
HazaJust updating the docblock.
Comment #6
markhalliwellInstead of assuming that every string passed will be an FieldFilteredMarkup object, which is not the intent of the procedural function and thus changes the function signature, it should instead do a check inside the function at the very top. Something like:
Because objects are natively passed by reference, and to avoid replacing the entire object, the rest of the code following this line in the function should be changed to reference the new
$string_clone
variable (or whatever name you think is better).Comment #7
HazaThanks for the feedbacks. You're right, we should not assume that we'll always have a string here.
He is an updated patch.
Comment #9
neardark CreditAttribution: neardark at Examiner.com commented