[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 13:41:56 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       |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by umesh.nevase):

 On WordPress 6.1 the issue is coming on line number: 2198
 Replying to [ticket:56996 umesh.nevase]:
 > 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#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list