After repeated attempts to troubleshoot, I continue to get the following error when activating the Product Image on Hover: Swap function in the theme options.
Warning: getimagesize(/var/chroot/home/content/53/10559053/html/wp-content/uploads/2015/03/BEACON-85mm-f4-1080p-TALENT-300×168.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/content/53/10559053/html/provideobackgrounds/wp-content/themes/legenda/framework/images.php on line 123
I’ve seen other users in the forum have this problem, but the fix wasn’t explained. Currently I have the feature off, as it causes warning messages on my site but I want to fix it to utilize the functionality. Just updated WordPress, Legenda and WooCommerce and it didn’t help.
What is the likelyhood that changing this value in the DB is going to break code in other parts of the site that are working correctly?
Is there a way I can change this value myself? I’m using GoDaddy for hosting.
The problem is caused by your hosting settings.
Image is loaded from the path that is defined in “DOCUMENT_ROOT” variable. On a server where your site is located the path for DOCUMENT_ROOT is written:
but your site is located in
/var/chroot/home/content/53/10559053/html/provideobackgrounds and this path is written for variable “REAL_DOCUMENT_ROOT”.
So to fix the issue I’ve changed the code
$file_path = $_SERVER['DOCUMENT_ROOT'] . $file_path['path']; to
$file_path = $_SERVER['REAL_DOCUMENT_ROOT'] . $file_path['path']; on line 118 in the file wp-content/themes/legenda/framework/images.php.
Please clear browser cache and check hover image now.
Thank you for the fix and for the great explanation.
So my site residing in a folder off the root fouled up the location of the images. Got it.
Thank you for your persistence in getting to the root of the problem.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty