DrWiresofNC
Forum Replies Created
-
David,
The site is development and local. You cannot access it even if I was willing. The code is obvious. Your coder has hard coded wp-content in this line:$uploads_dir = is_multisite() ? ‘/files/’ : ‘/wp-content/’;
This can never work if the directory name is not wp-content on a single site.
I believe the original line # to be 945 in /includes/global/common.phpI am using envira-lite, now 1.5.5.1, on a single site. 1.5.6 exhibits the same issue and also changed the look of the gallery therefore I am still using 1.5.5.1.
Brian
I’m sorry you found the original post unclear.
(1) rename the folder wp-content to my_new_content_folder_name
(2) add this to wp-config:
define( ‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’ );
define( ‘WP_CONTENT_FOLDERNAME’, ‘my_new_content_folder_name’ );
define( ‘WP_CONTENT_DIR’, ABSPATH . WP_CONTENT_FOLDERNAME );
define( ‘WP_CONTENT_URL’, WP_SITEURL . WP_CONTENT_FOLDERNAME );each image in any gallery shows an error similar to:
Error: The dimensions of the original image could not be retrieved for cropping.
Image: http://ncv2.albert.einstein/my_new_content_folder_name/uploads/galleries/Coffee & Conversation/20160624_150213-1.jpeg
Args: array (
‘position’ => ‘c’,
‘width’ => 640,
‘height’ => 480,
‘quality’ => 100,
‘retina’ => false,
)