[wp-trac] [WordPress Trac] #56996: Getting error Uncaught exception 'TypeError' with message 'Cannot access offset of type string on string' in /var/www/wp-includes/media.php:2147

WordPress Trac noreply at wordpress.org
Fri Nov 4 10:10:45 UTC 2022


#56996: Getting error Uncaught exception 'TypeError' with message 'Cannot access
offset of type string on string' in /var/www/wp-includes/media.php:2147
--------------------------+-----------------------------
 Reporter:  umesh.nevase  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.1
 Severity:  blocker       |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 WordPress 6.1 and PHP8.
 Getting this error on the page with the old caption shortcodes. if regex
 does not find 2nd offset. giving below error

 Uncaught exception 'TypeError' with message 'Cannot access offset of type
 string on string' in /var/www/wp-includes/media.php:2147

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56996>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list