Warning: join() [function.join]: (7 posts)

  1. t0symmonds
    Posted 2 years ago #

    Started seeing this message today, first with version 3.4.2 and then with version 3.5.

    Warning: join() [function.join]: Invalid arguments passed in /home/content/24/8542424/html/SMB/wp-includes/post-template.php on line 296

    How do I remove it from the webpage?

  2. roelhelios
    Posted 2 years ago #

    Hello t0symmonds I have exactly the same problem.

    Anyone a solution?

  3. Snegu
    Posted 2 years ago #

    Same problem here. It's appearing on every page.

  4. Snegu
    Posted 2 years ago #

    I got the error message to go away by changing line 296 in post-template.php to

    if (get_post_class( $class, $post_id) != '') {
    	   echo 'class="' . join( ' ', get_post_class( $class, $post_id ) ) . '"';

    Not sure if it's the best fix, but is working for now.

  5. t0symmonds
    Posted 2 years ago #

    Thanks Snegu

    Where do I find post-template.php?

  6. taliwalt
    Posted 2 years ago #

    Snegu -
    Thank you for the fix, it worked for me. Would you mind explaining what I just did? Messing with core WP files scares the !&#* out of me, so maybe you could reassure me a bit? Thanks again!

  7. vloo
    Posted 1 year ago #

    If should be scarry, taliwait, cause you don't fix anything by doing this. Next update and you'll be again with the same message.

    Suppressing errors is done by adding this to the last line of wp-config.php:


    This doesn't fix the problem either, but at least it hides it from the visitors of the site.

Topic Closed

This topic has been closed to new replies.

About this Topic