Plugin doesn't support alternative content directories.
-
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.phpto: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_PATHconstant is no longer needed.The problem was that the
CAMERA_PATHconstant wasn’t correct because it was hard coded to assumewp-contentas the directory for which the plugin was installed under. However,$pix_pluginpathglobal 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?
The topic ‘Plugin doesn't support alternative content directories.’ is closed to new replies.