Post by gnevzmaja » Fri Feb 11, 2011 4:38 pm

Hi,

On comment and review product page I have problem that generated image of a string is not showing in languages other than English. Besides this language packs are working fine.

English
Image

All other languages
Image


Any thoughts what could be causing it?

Regards

Newbie

Posts

Joined
Fri Feb 04, 2011 8:55 pm

Post by gnevzmaja » Fri Feb 11, 2011 9:56 pm

I did some digging and it seems that languge localisation should not play any role in generating capcha image

This is part of code inside \catalog\controller\information\contact.php
that seems to be responsible for generating image, and I don't see anything laguage specific about it...

Code: Select all

public function captcha() {
		$this->load->library('captcha');
		
		$captcha = new Captcha();
		
		$this->session->data['captcha'] = $captcha->getCode();
		
		$captcha->showImage();
	}
Any tip on where to look is welcome

Newbie

Posts

Joined
Fri Feb 04, 2011 8:55 pm

Post by gnevzmaja » Mon Feb 14, 2011 6:43 am

I still haven't found solution for this, so if anybody know a way around this I would appreciate an advice

Newbie

Posts

Joined
Fri Feb 04, 2011 8:55 pm

Post by openmycart.com » Mon Feb 14, 2011 1:30 pm

is that appear in reviews product page? or perhaps you can use reload image captcha, i provide it in my store for free

Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here


User avatar
Active Member

Posts

Joined
Tue Oct 12, 2010 4:47 am


Post by gnevzmaja » Mon Feb 14, 2011 3:45 pm

Same error appears both in "review products" and "contact us" page. For default languge (English) it works no problem and for second language it doesnt...

Newbie

Posts

Joined
Fri Feb 04, 2011 8:55 pm

Post by openmycart.com » Mon Feb 14, 2011 4:44 pm

OK, do you still use default theme? the language related to character encoding, default theme use UTF-8 already, did you change it? and what is you store link?

Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here


User avatar
Active Member

Posts

Joined
Tue Oct 12, 2010 4:47 am


Post by gnevzmaja » Mon Feb 14, 2011 6:14 pm

I havent changed encoding, I use defauld theme and my new language files are UTF-8 as well.
Unfortunatelly my store is still on localhost, Im still at the testing phase...

Newbie

Posts

Joined
Fri Feb 04, 2011 8:55 pm

Post by gnevzmaja » Mon Feb 14, 2011 7:49 pm

Just to report back that I partially solved problem by changing encoding of main lanuage file from UTF-8 to ANSI and now captcha is working.

Still it would be good to hear from someone if its possible somehow to use UTF-8 encoded main language file, because with ANSI I lost some lnaguage specific caracters like č,ć,đ...

Thanx

Newbie

Posts

Joined
Fri Feb 04, 2011 8:55 pm

Post by openmycart.com » Mon Feb 14, 2011 11:27 pm

yeah, from the beginning i think this issue is about encoding character, may i know what language do you use? if you can't type your language normally in php language file, then use html encoding, e.g. for & ==> & usually start with &, i use macromedia dreamweaver and it automatically appear.
find it here: http://www.asciitable.com/

Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here


User avatar
Active Member

Posts

Joined
Tue Oct 12, 2010 4:47 am


Post by incan » Sat May 07, 2011 3:35 am

I hade the same problem and solved it. Save the file in UTF-8 whitout BOM. To do that you can not use Windows notepad. It´s saving some strange charachters in the beginning of the file. "Wordpad" works fine for me.

Active Member

Posts

Joined
Fri May 28, 2010 5:53 pm

Post by labeshops » Fri Oct 21, 2011 8:57 pm

I'm having this problem only on the review section (it's fine in the contact us page). Tried the encoding thing with language files (the general english.php and the product.php) and still not showing. Any other ideas?

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by bogdan_ciocoiu » Sun Nov 13, 2011 3:12 am

Same problem, tried the encoding trick but without any result. I can't seem to be able to find any form of logging which might help me in this case.

--
Bogdan Ciocoiu
http://www.bogdans.co.uk
http://www.directmall.co.uk
http://www.b2bconsult.co.uk
http://www.getcomputerservices.co.uk



Posts

Joined
Fri Oct 14, 2011 7:37 am


Post by K313 » Fri Dec 23, 2011 8:12 am

CAPTCHA_K313
created: 0.0015 sec.
_____________________
Image

Newbie

Posts

Joined
Fri Dec 23, 2011 8:11 am

Post by IP_CAM » Fri Mar 14, 2014 5:46 am

I just placed my solution finding here:

http://forum.opencart.com/viewtopic.php ... 58#p483058

My Github OC Site: https://github.com/IP-CAM
5'200 + 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
Who is online

Users browsing this forum: No registered users and 202 guests