Envira Gallery does not handle content folder change
-
my fix:
replace code in common.php around line 950
from:
$uploads_dir = is_multisite() ? ‘/files/’ : ‘/wp-content/’;
to:
$content_dir = substr(content_url(),strlen(site_url())).’/’;
$uploads_dir = is_multisite() ? ‘/files/’ : $content_dir;WordPress Version:4.7
Envira Lite Version 1.5.5.1
Example URL demonstrating the issue: not remotely viewable, on local development site
Exact steps taken to reproduce the issue (enough for anyone with Envira Lite installed to be able to take those steps and see the issue for themselves) :add these lines to wp-config.php;
define( ‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’ );
define( ‘WP_CONTENT_FOLDERNAME’, ‘your new content name’ );
define( ‘WP_CONTENT_DIR’, ABSPATH . WP_CONTENT_FOLDERNAME );
define( ‘WP_CONTENT_URL’, WP_SITEURL . WP_CONTENT_FOLDERNAME );What the error is:
Envira: Error occured resizing image (these messages are only displayed to logged in WordPress users):
Error: The dimensions of the original image could not be retrieved for cropping.
Image: http://ncv2.albert.einstein/ncv/uploads/galleries/Coffee & Conversation/20160624_150213-1.jpeg
Args: array (
‘position’ => ‘c’,
‘width’ => 640,
‘height’ => 480,
‘quality’ => 100,
‘retina’ => false,
)What you expect to see: the image
The topic ‘Envira Gallery does not handle content folder change’ is closed to new replies.