Title: Throwing a Warning
Last modified: August 21, 2016

---

# Throwing a Warning

 *  [John Morris](https://wordpress.org/support/users/jtmorris/)
 * (@jtmorris)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/throwing-a-warning/)
 * 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/](http://wordpress.org/plugins/portfolio-post-type/)

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

 *  [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/throwing-a-warning/#post-4473413)
 * I have this issue too. I have opened a issue on GitHub.
    [https://github.com/devinsays/portfolio-post-type/issues/35](https://github.com/devinsays/portfolio-post-type/issues/35)
 *  Plugin Contributor [Gary Jones](https://wordpress.org/support/users/garyj/)
 * (@garyj)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/throwing-a-warning/#post-4473421)
 * 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;
       }
       ```
   

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

The topic ‘Throwing a Warning’ is closed to new replies.

 * ![](https://ps.w.org/portfolio-post-type/assets/icon-256x256.png?rev=2904059)
 * [Portfolio Post Type](https://wordpress.org/plugins/portfolio-post-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/portfolio-post-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/portfolio-post-type/)
 * [Active Topics](https://wordpress.org/support/plugin/portfolio-post-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/portfolio-post-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/portfolio-post-type/reviews/)

## Tags

 * [post-template.php](https://wordpress.org/support/topic-tag/post-template-php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 2 replies
 * 3 participants
 * Last reply from: [Gary Jones](https://wordpress.org/support/users/garyj/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/throwing-a-warning/#post-4473421)
 * Status: not resolved