Title: Plugin doesn&#039;t support alternative content directories.
Last modified: August 22, 2016

---

# Plugin doesn't support alternative content directories.

 *  [Sam](https://wordpress.org/support/users/figaroo/)
 * (@figaroo)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-doesnt-support-alternative-content-directories/)
 * I’m using [Chassis](http://docs.chassis.io/en/latest/). Chassis configures WordPress
   so that it’s content directory isn’t in `wp-content`, but rather a content directory
   outside of the WordPress installation.
 * This plugin breaks on line 666 of `lib/camera_functions.php`. Here’s a simple
   fix for this error, thus making this plugin work for different content directory
   configurations:
 * Change line 662 of `lib/camera_functions.php` to:
 *     ```
       global $post, $pix_pluginpath;
       ```
   
 * Change line 666 to:
 *     ```
       include($pix_pluginpath . '/lib/meta/camera_meta.php');
       ```
   
 * You can also remove line 659 as the `CAMERA_PATH` constant is no longer needed.
 * The problem was that the `CAMERA_PATH` constant wasn’t correct because it was
   hard coded to assume `wp-content` as the directory for which the plugin was installed
   under. However, `$pix_pluginpath` global was already defined in the plugins index.
   php file and was correctly using the `__FILE__` magic constant to get the plugin’s
   directory, so why not just use this global?
 * [https://wordpress.org/plugins/camera-slideshow/](https://wordpress.org/plugins/camera-slideshow/)

The topic ‘Plugin doesn't support alternative content directories.’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/camera-slideshow_d3dcd0.svg)
 * [Camera slideshow](https://wordpress.org/plugins/camera-slideshow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/camera-slideshow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/camera-slideshow/)
 * [Active Topics](https://wordpress.org/support/plugin/camera-slideshow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/camera-slideshow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/camera-slideshow/reviews/)

## Tags

 * [path](https://wordpress.org/support/topic-tag/path/)
 * [wp-content](https://wordpress.org/support/topic-tag/wp-content/)

 * 0 replies
 * 1 participant
 * Last reply from: [Sam](https://wordpress.org/support/users/figaroo/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-doesnt-support-alternative-content-directories/)
 * Status: not resolved