WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. t0symmonds
    Member
    Posted 1 year 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
    class="">

    How do I remove it from the webpage?

  2. roelhelios
    Member
    Posted 1 year ago #

    Hello t0symmonds I have exactly the same problem.

    Anyone a solution?

  3. Snegu
    Member
    Posted 1 year ago #

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

  4. Snegu
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Thanks Snegu

    Where do I find post-template.php?

  6. taliwalt
    Member
    Posted 1 year 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
    Member
    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:

    error_reporting(0);

    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

Tags