PHP Fatal error: Cannot use string offset as an array
-
We were getting a 500 from admin-ajax.php. Further digging showed wp_get_attachment_metadata() is returning a serialized value.
Please replace line 38 with:
$attachment_metadata = maybe_unserialize(wp_get_attachment_metadata( $req_post ));
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Fatal error: Cannot use string offset as an array’ is closed to new replies.