Title: Search displays php errors
Last modified: April 23, 2018

---

# Search displays php errors

 *  Resolved [hiccup42](https://wordpress.org/support/users/hiccup42/)
 * (@hiccup42)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/search-displays-php-errors/)
 * My client’s site is running a child theme of divi.
    It’s showing PHP errors for
   some but not all searches which I’ve pasted below.
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   generate_blog_post_classes’ not found or invalid function name in /homepages/
   21/d695967655/htdocs/griffenfitness.com/wp-includes/class-wp-hook.php on line
   288
 * Warning: array_unique() expects parameter 1 to be array, null given in /homepages/
   21/d695967655/htdocs/griffenfitness.com/wp-includes/post-template.php on line
   545
 * Warning: join(): Invalid arguments passed in /homepages/21/d695967655/htdocs/
   griffenfitness.com/wp-includes/post-template.php on line 423
 * Link above is to the pastebin of the search.php page.
 * I’m not a developer myself so I’ve no idea where to start!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsearch-displays-php-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [hiccup42](https://wordpress.org/support/users/hiccup42/)
 * (@hiccup42)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/search-displays-php-errors/#post-10208489)
 * To update further, it seems to be an interaction with the WP Show Posts plug 
   in, as the errors go away when one or other plug in is disabled.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/search-displays-php-errors/#post-10209316)
 * Does WP Show Posts use a shortcode? Do you have Relevanssi excerpts enabled? 
   Does the problem go away if you disable excerpts from Relevanssi settings?
 *  Thread Starter [hiccup42](https://wordpress.org/support/users/hiccup42/)
 * (@hiccup42)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/search-displays-php-errors/#post-10215290)
 * Yes it does! Should just have followed the instructions properly first before
   deciding to spend an hour trying to find an alternative for the other plug in(
   which was completely fruitless!)
 * Thank you so much!
 *  Thread Starter [hiccup42](https://wordpress.org/support/users/hiccup42/)
 * (@hiccup42)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/search-displays-php-errors/#post-10215292)
 * So yeah, sorted now thank you

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

The topic ‘Search displays php errors’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [hiccup42](https://wordpress.org/support/users/hiccup42/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/search-displays-php-errors/#post-10215292)
 * Status: resolved