Title: Ghost Warning Errors??
Last modified: August 31, 2016

---

# Ghost Warning Errors??

 *  Resolved [mpoepping](https://wordpress.org/support/users/mpoepping/)
 * (@mpoepping)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/)
 * I recently updated my company’s WP version and now we have some interesting error
   messages appearing in a few places. I can’t seem to find the plugin or widget
   that houses these errors to fix them.
 * Forgive me if this is a simple fix, as I do not yet have access to my company’s
   WP files directly, which may be the problem (we did use a 3rd party to design
   our WP template back in 2010 (if that matters).
 * However I was able to find the pages in question and the error codes do not exist
   in the page/post text at all. Any guidance is greatly appreciated, thanks in 
   advance.
 * First errors (which appear below a couple of posts):
    Warning: usort() expects
   parameter 1 to be array, null given in /data/15/4/9/123/4335286/user/4995367/
   htdocs/wp-content/themes/dpi/functions.php on line 510
 * Warning: Invalid argument supplied for foreach() in /data/15/4/9/123/4335286/
   user/4995367/htdocs/wp-content/themes/dpi/functions.php on line 513
 * Second errors (which appear on a sidebar but have seemingly no connection to 
   any widgets):
    Warning: sort() expects parameter 1 to be array, null given in/
   data/15/4/9/123/4335286/user/4995367/htdocs/wp-content/themes/dpi/_course_list_module.
   php on line 45
 * Warning: usort() expects parameter 1 to be array, null given in /data/15/4/9/
   123/4335286/user/4995367/htdocs/wp-content/themes/dpi/functions.php on line 510
 * Warning: Invalid argument supplied for foreach() in /data/15/4/9/123/4335286/
   user/4995367/htdocs/wp-content/themes/dpi/functions.php on line 513

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

 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220496)
 * All of these errors are being caused by your theme, not plugin. Which version
   of WordPress were you using before?
 *  Thread Starter [mpoepping](https://wordpress.org/support/users/mpoepping/)
 * (@mpoepping)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220497)
 * No idea as I just started but it was older. Maybe even a 2.x.x version. It may
   have been 3.0.4 as well though.
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220499)
 * That’s why we recommend users to always use the updated version. You will have
   to redo your theme so it could work properly. Using older version is a huge welcome
   sign to hackers. 🙂
 *  Thread Starter [mpoepping](https://wordpress.org/support/users/mpoepping/)
 * (@mpoepping)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220500)
 * Yeah I have already discussed that with them. Thanks for the info!
 * Is there anything I can do to get rid of the phantom widget (the 2nd set of errors
   in my original post) in the meantime?
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220502)
 * If you see the error code `/themes/dpi/_course_list_module.php on line 45`
 * It’s also with the theme. It has some course list module or something which is
   causing it. 🙂
 *  Thread Starter [mpoepping](https://wordpress.org/support/users/mpoepping/)
 * (@mpoepping)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220503)
 * Well then it looks like we’ll be expediting our redesign lol. Thanks for all 
   your help!
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220504)
 * Don’t forget to mark this thread as resolved, and best of luck with that. 🙂
 *  Thread Starter [mpoepping](https://wordpress.org/support/users/mpoepping/)
 * (@mpoepping)
 * [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220505)
 * done.

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

The topic ‘Ghost Warning Errors??’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [htdocs](https://wordpress.org/support/topic-tag/htdocs/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)
 * [Themes](https://wordpress.org/support/topic-tag/themes/)
 * [usort](https://wordpress.org/support/topic-tag/usort/)
 * [wp-content](https://wordpress.org/support/topic-tag/wp-content/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 2 participants
 * Last reply from: [mpoepping](https://wordpress.org/support/users/mpoepping/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/ghost-warning-errors/#post-7220505)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
