• I’m using Chassis. 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/

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