• Resolved hiccup42

    (@hiccup42)


    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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter hiccup42

    (@hiccup42)

    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

    (@msaari)

    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

    (@hiccup42)

    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

    (@hiccup42)

    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.