• Resolved cfm168

    (@cfm168)


    Hello, I have WP6.1.1. and Twenty Eleven v4.2. Get this error log every day recently:

    [Jan 14, 08:51:30] PHP Warning: Undefined array key “width” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 39
    [Jan 14, 08:51:30] PHP Warning: Undefined array key “height” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 40
    [Jan 14, 08:58:14] PHP Warning: Undefined array key “width” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 39
    [Jan 14, 08:58:14] PHP Warning: Undefined array key “height” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 40
    [Jan 14, 09:15:10] PHP Warning: Attempt to read property “ID” on null in /home/SorryHided/SorryHided.com/wp-includes/link-template.php on line 405

    Please help to fix it. Thanks in advance!

Viewing 4 replies - 31 through 34 (of 34 total)
  • Moderator Kathryn Presner

    (@zoonini)

    @cfm168 That’s because when you enable Troubleshooting mode, all plugins are automatically deactivated so you can begin testing to see if your issue is still present. If it isn’t, then you reactivate plugins one by one, checking for the issue in between each reactivation. If the issue comes back, you know the most recently reactivated plugin is the culprit.

    Here are some tutorials on using the Health Check plugin:

    https://wordpress.com/support/plugins/solve-problems-with-plugins/#health-check-amp-troubleshooting-plugin – there’s a step-by-step guide and video

    Thread Starter cfm168

    (@cfm168)

    @zoonini – I tested all the plugins by Enable while troubleshooting one by one, no php error persist. Until I Switch theme to “Child”, the php error warning explore right away.

    ————————————————————————–

    Here are the last 6 entries from /home/SorryHided/php-errors.log:

    [Apr 01, 15:58:04] PHP Warning: Undefined array key “width” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 39
    [Apr 01, 15:58:04] PHP Warning: Undefined array key “height” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 40
    [Apr 01, 16:00:12] PHP Warning: Undefined array key “width” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 39
    [Apr 01, 16:00:12] PHP Warning: Undefined array key “height” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 40
    [Apr 01, 16:03:05] PHP Warning: Undefined array key “width” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 39
    [Apr 01, 16:03:05] PHP Warning: Undefined array key “height” in /home/SorryHided/SorryHided.com/wp-content/themes/twentyeleven/image.php on line 40

    —————————————————————

    So the Child theme is the suspect now. I will contact the author and update here later. Thank you for telling me the Health Check plugin.

    Thread Starter cfm168

    (@cfm168)

    Can’t find the child theme author. Very disappointed.

    Thread Starter cfm168

    (@cfm168)

    Hello,

    The errors are gone after this theme recently updated to version 4.4. I have WooCommerce version 8.0.2, and WP v6.3. now. It seems no plugin conflicts with this theme. Thank you Kathryn and all for your time.

Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘PHP error’ is closed to new replies.