WordPress.org

Ready to get started?Download WordPress

Forums

Portfolio Post Type
Throwing a Warning (3 posts)

  1. John Morris
    Member
    Posted 6 months ago #

    With the latest version of this plugin and WordPress as of today, this plugin throws a PHP warning:

    Warning: join(): Invalid arguments passed in /path/to/wordpress/root/wp-includes/post-template.php on line 394

    Tracing the error down a bit, it appears this plugin is causing a problem with the get_body_class() function in post-template.php. Note that this is only appearing on pages, not posts.

    http://wordpress.org/plugins/portfolio-post-type/

  2. Ulrich
    Member
    Posted 6 months ago #

    I have this issue too. I have opened a issue on GitHub.
    https://github.com/devinsays/portfolio-post-type/issues/35

  3. Gary Jones
    Member
    Posted 6 months ago #

    As per the GH issue, the quick fix is to edit class-portfolio-post-type-registration.php and amend the final method so that it returns $classes, instead of nothing.

    if ( ! is_single() ) {
        return $classes;
    }

Reply

You must log in to post.

About this Plugin

About this Topic