Page 1 of 1

Product page images not showing!!!

Posted: Tue Sep 15, 2015 8:33 am
by Vik0
Hello,
i have a problem with images on product page and quickview page , images not showing !!!
My site is: http://tugytoys.com/
Product page: http://tugytoys.com/konstrukror%20banba ... 20-%206956

anyone have an idea for the issue?

Re: Product page images not showing!!!

Posted: Tue Sep 15, 2015 11:29 am
by IP_CAM
http://tugytoys.com/konstrukror banbao Razbivach - 6956

You're just trying to ignore HTTP Rules..., so, don't expect it to work!
Ernie
bigmax.ch/shop/

Re: Product page images not showing!!!

Posted: Tue Oct 13, 2015 3:13 pm
by pabloctoledo
Same problem here!

Any suggestion on how to fix it? I red that it could be server problems?

Re: Product page images not showing!!!

Posted: Tue Oct 13, 2015 3:15 pm
by pabloctoledo
Vik0 wrote:Hello,
i have a problem with images on product page and quickview page , images not showing !!!
My site is: http://tugytoys.com/
Product page: http://tugytoys.com/konstrukror%20banba ... 20-%206956

anyone have an idea for the issue?
I just checked your website.

How did you fix it? ???

Re: Product page images not showing!!!

Posted: Wed Oct 14, 2015 2:54 am
by IP_CAM
just in case: :crazy:
OC v. 2.1.0.0
...\cart\catalog\model\tool\image.php
can be done in the admin section /model/tool/image.php file as well,
to make it be a little more pro-Style... :D

Find, at the very botton end:

Code: Select all

if ($this->request->server['HTTPS']) {
	return $this->config->get('config_ssl') . 'image/' . $new_image;
	} else {
	return $this->config->get('config_url') . 'image/' . $new_image;
	}
   }
}
replace whole code with this:

Code: Select all

if ($this->request->server['HTTPS']) {
	return $this->config->get('config_ssl') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
	} else {
	return $this->config->get('config_url') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
	}	
   }
}
then, you don't have to worry about potential white space problems in image-title-names any longer, and OC Version Everyone will finally add important, and by default-missing, width/height Size-'Values' to it's most images as well. Add's to Online Test Site Performance Results, in addition to visibly faster page-load, and works the same (the TWO Edited RETURN... Lines, at least!) on v.1.5.6.x Versions too! (And should there, by default, since v.1.0.0!)
Good Luck ;)
Ernie
bigmax.ch/shop/

BUT IT DOES NOT SOLVE THE WHITE SPACE PROBLEM, in image title Names.
It just fixes 'em, and, like any fix, it's just one more time-consuming 'action', after all... ;D

PS. For Testers, this: '%20' could probably be renamed to an 'x' , or something, to, at least, make it a little more 'appealing' to read, in case..., but it's fully untested (yet), and just an idea :-*

Re: Product page images not showing!!!

Posted: Wed Oct 14, 2015 3:51 am
by IP_CAM
For those, using OpenCart v.1.5.6.x Software, this Solution includes regular, default, image handling, QUOTED inactive, and Image Subdomain external image handling linking (active). But be aware, that it takes MORE, to make it work, by use of Sub Domaim hosted images. Just to mention it!

Code: Select all

if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
// internal // return $this->config->get('config_ssl') . 'image/' . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
// external image url //
return HTTPS_IMAGE . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
} else {
// internal // return $this->config->get('config_url') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . 
$height;
// external image url //
return HTTP_IMAGE . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
Good Luck! ;)
Ernie
bigmax.ch/shop/

Re: Product page images not showing!!!

Posted: Wed Oct 14, 2015 4:20 am
by straightlight

Code: Select all

if ($this->request->server['HTTPS']) {
   return $this->config->get('config_ssl') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
   } else {
   return $this->config->get('config_url') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
   }   
   }
}
for:

Code: Select all

if ($this->request->server['HTTPS']) {
   return $this->config->get('config_ssl') . preg_replace('~[[:space:]]~','%20', $new_image) . '" width="' . $width . '" height="' . $height;
   } else {
   return $this->config->get('config_url') . preg_replace('~[[:space:]]~','%20', $new_image) . '" width="' . $width . '" height="' . $height;
   }   
   }
}

Re: Product page images not showing!!!

Posted: Wed Oct 14, 2015 5:52 am
by IP_CAM
what's the difference,technically?
Ernie

Re: Product page images not showing!!!

Posted: Wed Oct 14, 2015 6:01 am
by straightlight
IP_CAM wrote:what's the difference,technically?
Ernie
1 - str_replace does not track constant characters of the string but simply one set of character of the specified source.
2 - preg_replace versus str_replace is more optimized in query parsing speed lookups.

Re: Product page images not showing!!!

Posted: Wed Oct 14, 2015 6:31 am
by IP_CAM
thanks, good to know! :D
Ernie

Re: Product page images not showing!!!

Posted: Thu Oct 15, 2015 12:14 am
by pabloctoledo
Nice guys, I'll try and I let you know!

Thanks again for your time on this!

Re: Product page images not showing!!!

Posted: Thu Oct 15, 2015 12:54 am
by pabloctoledo
Hi Again guys,

It didn't work out that well. still same problem :(

Maybe is not the same issue? I can't see any front image, only the thumbnails. I use Arvixe (I red somewhere they suck big time and this issue could be related to them). I contacted them about it but not reply.

Any idea what it could be?

Re: Product page images not showing!!!

Posted: Thu Oct 15, 2015 2:49 am
by IP_CAM
this is for sure not your Hosters Problem, but rather your Browser Problem, combined
with that screwy IMAGE enlargement Mod, you have installed. I have no problem, viewing your Product Page,
with ALL IMAGES, displayed. But you seem to use different themes, as well...
Ernie

Re: Product page images not showing!!!

Posted: Tue Oct 20, 2015 4:41 pm
by jrfcomputing
What theme are you using? This is the Fix for the Journal Theme but has been fixed on latest release

http://forum.opencart.com/viewtopic.php?f=190&t=151497

Thank you

Re: Product page images not showing!!!

Posted: Tue Dec 15, 2015 1:44 pm
by joeykordahi22
The easiest way to make sure all of your details are correct is to do a "fresh install" to generate the configuration files again. Here's what you need to do

- Back up your config.php and admin/config.php files to config.backup.php
- Create a new database to use (this ensures that your original remains and can be used once your configs are created)
- Clear the contents of your original config.php files and make sure they are writeable
- Go to http://yoursite.com/install and fill in the details for the site, including the new database details NOT THE ORIGINALS
- Once install is completed, Open the config.php and admin/config.php and change the database details at the bottom to - - - - - match those of the originals in config.backup.php
- Delete the new database and remove the config.backup.php files if everything has successfully been restored