Title: PHP error
Last modified: January 14, 2023

---

# PHP error

 *  Resolved [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-error-564/)
 * Hello, I have WP6.1.1. and [Twenty Eleven](https://wordpress.org/themes/twentyeleven/)
   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)

[←](https://wordpress.org/support/topic/php-error-564/page/2/?output_format=md) 
[1](https://wordpress.org/support/topic/php-error-564/?output_format=md) [2](https://wordpress.org/support/topic/php-error-564/page/2/?output_format=md)
3

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-error-564/page/3/#post-16598834)
 * [@cfm168](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-error-564/page/3/#post-16617719)
 * [@zoonini](https://wordpress.org/support/users/zoonini/) – I tested all the plugins
   by [Enable while troubleshooting](https://www.chopsticksfactory.com/wp-admin/plugins.php?health-check-troubleshoot-enable-plugin=all-in-one-seo-pack&_wpnonce=50251de592)
   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](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-error-564/page/3/#post-16619635)
 * Can’t find the child theme author. Very disappointed.
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-564/page/3/#post-16982039)
 * 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)

[←](https://wordpress.org/support/topic/php-error-564/page/2/?output_format=md) 
[1](https://wordpress.org/support/topic/php-error-564/?output_format=md) [2](https://wordpress.org/support/topic/php-error-564/page/2/?output_format=md)
3

The topic ‘PHP error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentyeleven/5.1/screenshot.png)
 * Twenty Eleven
 * [Support Threads](https://wordpress.org/support/theme/twentyeleven/)
 * [Active Topics](https://wordpress.org/support/theme/twentyeleven/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentyeleven/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentyeleven/reviews/)

## Tags

 * [outside scope](https://wordpress.org/support/topic-tag/outside-scope/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 34 replies
 * 3 participants
 * Last reply from: [cfm168](https://wordpress.org/support/users/cfm168/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-564/page/3/#post-16982039)
 * Status: resolved