Title: Trying to fix errors
Last modified: January 5, 2018

---

# Trying to fix errors

 *  [astima](https://wordpress.org/support/users/astima/)
 * (@astima)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/trying-to-fix-errors/)
 * I have a whole bunch of errors in my error log that I am trying to fix. I have
   been successful in fixing some, but there are two so far that has me stumped.
 * **The first error is:**
    Trying to get property of non-object in /home/hbco/wp-
   content/themes/londonlive-child/header.php on line 198
 * Here is what is on that line:
    if($page_item->ID == $post->ID) { $selected = ‘
   selected=”selected”‘; } else { $selected = ”; }
 * **The second error is:**
 * PHP Notice: get_the_author_email is **deprecated** since version 2.8.0! Use get_the_author_meta(’
   email’) instead. in /home/hbco/wp-includes/functions.php on line 3838
 * I can’t find where the get_the_author_email is?
 * Also, I am getting an error that is related to a plug-in, but the plug-in works.
   Do I try and fix it? The error is:
 * PHP Notice: Undefined index: debug in /home/hbco/wp-content/plugins/store-locator/
   sl-functions.php on line 1319, referer: [http://www3.hunterdonbrewing.com/?cat=2](http://www3.hunterdonbrewing.com/?cat=2)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftrying-to-fix-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Rajan Vijayan](https://wordpress.org/support/users/rajanit2000/)
 * (@rajanit2000)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/trying-to-fix-errors/#post-9837819)
 * Hi.,
 * 1. `$page_item` is object?
 * 2. Please let me know your WP version and theme name
 * Thanks
 *  Thread Starter [astima](https://wordpress.org/support/users/astima/)
 * (@astima)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/trying-to-fix-errors/#post-9838009)
 * I am using WordPress 4.9.1 and theme is LondonLive
 *  [Rajan Vijayan](https://wordpress.org/support/users/rajanit2000/)
 * (@rajanit2000)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/trying-to-fix-errors/#post-9838052)
 * Can you please your header.php file via pastebin
 *  Thread Starter [astima](https://wordpress.org/support/users/astima/)
 * (@astima)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/trying-to-fix-errors/#post-9838268)
 * Here is the header:[https://pastebin.com/GuP9VEZb](https://pastebin.com/GuP9VEZb)

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

The topic ‘Trying to fix errors’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [astima](https://wordpress.org/support/users/astima/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/trying-to-fix-errors/#post-9838268)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
