• Resolved cfm168

    (@cfm168)


    Hello,

    I have WP6.7.2 and WC9.7.1. and theme version4.8. I got the following error from WC status check:

    2025-04-03T23:43:39+00:00 Critical Uncaught TypeError: Cannot access offset of type string on string in /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:795
    Additional context
    {
    "error": {
    "type": 1,
    "file": "/home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php",
    "line": 795
    },
    "remote-logging": true,
    "backtrace": [
    "",
    "#0 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php(236): image_get_intermediate_size(455, Array)",
    "#1 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php(970): image_downsize(455, Array)",
    "#2 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php(1062): wp_get_attachment_image_src(455, Array, false)",
    "#3 /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php(104): wp_get_attachment_image(455, Array)",
    "#4 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/template-loader.php(106): include('/home/hided…')",
    "#5 /home/SorryHidedmysite/SorryHidedmysite.com/wp-blog-header.php(19): require_once('/home/hided…')",
    "#6 /home/SorryHidedmysite/SorryHidedmysite.com/index.php(17): require('/home/hided…')",
    "#7 {main}",
    "thrown"
    ]
    }

    I used Health Check & Troubleshooting plugin and deactivated all plugins but WooCommerce and got the above error report.

    Please help how to fix it. Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter cfm168

    (@cfm168)

    Also get this error everyday:

    Apr 04, 16:33:20

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:795

    Stack Trace


    1. image_get_intermediate_size(456, Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:236

    2. image_downsize(456, Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:970

    3. wp_get_attachment_image_src(456, Array, false)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:1062

    4. wp_get_attachment_image(456, Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php:104

    5. include(‘/home/SorryHidedmysite…’)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/template-loader.php:106

    6. require_once(‘/home/SorryHidedmysite…’)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-blog-header.php:19

    7. require(‘/home/SorryHidedmysite…’)
      /home/SorryHidedmysite/SorryHidedmysite.com/index.php:17

    8. {main}
      thrown in /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php on line 795

    The above error log found when all plugins are activated.

    Thread Starter cfm168

    (@cfm168)

    I use Health check plugin and deactivated all plugins including woocommerce, still get the following errors:

    [07-Apr-2025 07:16:08 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:795
    Stack trace: 0 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php(236): image_get_intermediate_size(311, Array) 1 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php(970): image_downsize(311, Array) 2 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php(1062): wp_get_attachment_image_src(311, Array, false) 3 /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php(104): wp_get_attachment_image(311, Array) 4 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/template-loader.php(106): include(‘/home/SorryHidedmysite…’) 5 /home/SorryHidedmysite/SorryHidedmysite.com/wp-blog-header.php(19): require_once(‘/home/SorryHidedmysite…’) 6 /home/SorryHidedmysite/SorryHidedmysite.com/index.php(17): require(‘/home/SorryHidedmysite…’) 7 {main}

    thrown in /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php on line 795

    [07-Apr-2025 11:51:31 UTC] PHP Warning: Undefined array key “width” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 39
    [07-Apr-2025 11:51:31 UTC] PHP Warning: Undefined array key “height” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 40
    [07-Apr-2025 12:45:31 UTC] PHP Warning: Undefined array key “width” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 39
    [07-Apr-2025 12:45:31 UTC] PHP Warning: Undefined array key “height” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 40
    [07-Apr-2025 13:26:09 UTC] PHP Warning: Undefined array key “width” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 39
    [07-Apr-2025 13:26:09 UTC] PHP Warning: Undefined array key “height” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 40
    [07-Apr-2025 13:34:31 UTC] PHP Warning: Undefined array key “width” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 39
    [07-Apr-2025 13:34:31 UTC] PHP Warning: Undefined array key “height” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 40
    [07-Apr-2025 13:42:07 UTC] PHP Warning: Undefined array key “width” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 39
    [07-Apr-2025 13:42:07 UTC] PHP Warning: Undefined array key “height” in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 40

    Thread Starter cfm168

    (@cfm168)

    Deactivated all plugins including woocommerce, the error persists:

    Apr 12, 02:30:34

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:795

    Stack Trace


    1. image_get_intermediate_size(325, Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:236

    2. image_downsize(325, Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:970

    3. wp_get_attachment_image_src(325, Array, false)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php:1062

    4. wp_get_attachment_image(325, Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/themes/twentyeleven/image.php:104

    5. include(‘/home/SorryHidedmysite…’)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/template-loader.php:106

    6. require_once(‘/home/SorryHidedmysite…’)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-blog-header.php:19

    7. require(‘/home/SorryHidedmysite…’)
      /home/SorryHidedmysite/SorryHidedmysite.com/index.php:17

    8. {main}
      thrown in /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/media.php on line 795

    Apr 11, 15:31:02

    Warning: Undefined array key “width” in /home/SorryHidedmysitesSorryHidedmysite/SorryHidedmysitesSorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 39

    Apr 11, 15:31:02

    Warning: Undefined array key “height” in /home/SorryHidedmysitesSorryHidedmysite/SorryHidedmysitesSorryHidedmysite.com/wp-content/themes/twentyeleven/image.php on line 40

    Thread Starter cfm168

    (@cfm168)

    Resolved by unknown reason.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Critical Uncaught TypeError’ is closed to new replies.