Post by Vik0 » Tue Sep 15, 2015 8:33 am

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?

Newbie

Posts

Joined
Tue Sep 15, 2015 8:29 am

Post by IP_CAM » Tue Sep 15, 2015 11:29 am

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/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by pabloctoledo » Tue Oct 13, 2015 3:13 pm

Same problem here!

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

Newbie

Posts

Joined
Thu Jan 23, 2014 12:39 am

Post by pabloctoledo » Tue Oct 13, 2015 3:15 pm

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? ???

Newbie

Posts

Joined
Thu Jan 23, 2014 12:39 am

Post by IP_CAM » Wed Oct 14, 2015 2:54 am

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 :-*

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by IP_CAM » Wed Oct 14, 2015 3:51 am

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/
Last edited by IP_CAM on Thu Oct 15, 2015 12:30 am, edited 1 time in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by straightlight » Wed Oct 14, 2015 4:20 am

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;
   }   
   }
}

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IP_CAM » Wed Oct 14, 2015 5:52 am

what's the difference,technically?
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by straightlight » Wed Oct 14, 2015 6:01 am

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IP_CAM » Wed Oct 14, 2015 6:31 am

thanks, good to know! :D
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by pabloctoledo » Thu Oct 15, 2015 12:14 am

Nice guys, I'll try and I let you know!

Thanks again for your time on this!

Newbie

Posts

Joined
Thu Jan 23, 2014 12:39 am

Post by pabloctoledo » Thu Oct 15, 2015 12:54 am

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?

Attachments

Untitled-4.jpg

Untitled-4.jpg (62.28 KiB) Viewed 5434 times


Newbie

Posts

Joined
Thu Jan 23, 2014 12:39 am

Post by IP_CAM » Thu Oct 15, 2015 2:49 am

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

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by jrfcomputing » Tue Oct 20, 2015 4:41 pm

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

Opencart sites I am currently working on:
http://www.cablecafe.co.uk
http://www.exclusivelygorgeous.co.uk/


User avatar
Active Member

Posts

Joined
Mon May 09, 2011 11:29 pm

Post by joeykordahi22 » Tue Dec 15, 2015 1:44 pm

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

Newbie

Posts

Joined
Tue Dec 15, 2015 1:34 pm
Who is online

Users browsing this forum: No registered users and 6 guests