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.
Here is a patch for 2.x version that prints stdclass variables as debug() does instead of having this error:
Recoverable fatal error: Object of class stdClass could not be converted to string in _strongarm_readable() (line 113 of /[...]/sites/all/modules/strongarm/strongarm.admin.inc).
Comment | File | Size | Author |
---|---|---|---|
print_stdclass_variables.patch | 1.42 KB | cthiebault |
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedI don't suppose you wanted to let
'<pre>' . print_r($var, TRUE) . '</pre>';
in your patch ;-)Comment #2
bblake CreditAttribution: bblake commentedI'm having trouble replicating that error, can you give me an example of a variable that is giving the error, and what version of php are you running?
Comment #3
bblake CreditAttribution: bblake commentedCan someone please provide a way to replicate that error? What variable will trigger that error?
Comment #4
bblake CreditAttribution: bblake commented