Page 1 of 2
[1.4.7] CKEditor Image add problem in second language
Posted: Mon Apr 19, 2010 11:06 pm
by Blueforce
Hi Guys!
I don't know if it's me doing something wrong, but I'm not able to add a image in my second language. It's the same in both categories and products. It's the description area I'm talking about here.
The image upload and add works perfectly in my first language, but when I added a second language and try adding in the second language tab it doesn't work.
I have tried this in a clean install with a fresh DB. I also duplicated the original English language folder in both catalog and admin, renamed the folders and the main language.php files. And when i have added the new(duplicated English) language the same is happening, in first language image add works, in second language it don't.
Open cart 1.4.7 with the updated files from r107.
Firefox 3.6.3
Is there anyone else having the same problem? Any help is appreciated!
Regards,
Leffe
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 1:17 am
by Blueforce
Hi again,
Just a bit more info.
It doesn't matter if the language is default or not, but if I change the sort order of the languages so that the second language is sorted first, then i can add images in category and product description. I can only add/insert images to the language that is in the first tab.
Regards,
Leffe
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 6:57 am
by falofal
Runing v 1.4.7 with Spanish first and English second and I too cannot add any images no matter which language is listed first. Well, actually, I can add them and they do upload to my hosting server (verified there there) but I cannot see them to select them and have them appear where I choose.
Thank you,
Falofal
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 9:37 am
by Blueforce
Hi Falofal,
My problem is a bit different from yours.
If I want to add a image in product description or category description and are using the first language tab, regardless what language, everything works fine. I can upload, select and insert the image - Everything works perfectly!
But if I try the same in the second language tab(regardless of what language), the upload works fine, and the problem is when I try to select a image in Image Manager, I can't select and no image url is passed to "Image Properties" URL field.
And it doesn't matter what languages I have installed, or which language I have as default. The only thing that matters is the language sort order. In other words, the language listed first, in the fist tab works, the rest don't.
Would by nice if someone else could check if the have the same behavior, if so then it might be a bug.
Regards,
Leffe
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 9:39 am
by falofal
I found my solution, make sure file permissions are set to 777 in the admin folder and sub folders for your Open Cart on your web server. Hope this helps, it did me.
Cheers mate,
Falofal
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 10:13 am
by Blueforce
Hi again!
I don't think it's a permission issue in my case, because the upload works just fine.
And to be honest, I don't think you should set your folder permissions to 777 if it's a "live" server - That is never god!
If you set permission to 777 then everyone have read, write, and execute permissions.
Regards,
Leffe
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 11:19 am
by Qphoria
I will look into this
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 1:11 pm
by i2Paq
I have Dutch and Engligs running but I cannot reproduce this.
I can add images, delete them, change any TAB but all works well and show up in my storefront.
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 1:13 pm
by Qphoria
i2Paq wrote:I have Dutch and Engligs running but I cannot reproduce this.
I can add images, delete them, change any TAB but all works well and show up in my storefront.
I think they mean add images inside of ckeditor.
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 1:20 pm
by Blueforce
Hi Guys,
Thanks for looking in to this!
Yes, Qphoria is right, it's the description area with CKEditor i'm talking about.
/Leffe
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 8:46 pm
by hillfish
Just to add my 2p's worth - I have exactly the same problem (using english and german).
The simple fix is to create the listing in the default language, then go to html view and copy the relevant block of code for the pic and paste it into the listing for the second language - works perfectly. Of course you could just hand code the pic in the first place, but I'm very lazy lol.
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 11:46 pm
by Blueforce
Thanks hillfish,
Yes, that is also how I done it. But that is not how I want our clients to use it.
Qphoria is looking in to this so I'm waiting to here what he found out.
Maybe this should be posted as a bug also since there are others having the same problem.
/Leffe
Re: Image add problem in second language
Posted: Tue Apr 20, 2010 11:51 pm
by i2Paq
Qphoria wrote:i2Paq wrote:I have Dutch and Engligs running but I cannot reproduce this.
I can add images, delete them, change any TAB but all works well and show up in my storefront.
I think they mean add images inside of ckeditor.
OK, clear and I can confirm that it does not work.
The issue is related to the url use for that image.
If I use:
Code: Select all
http://oc147.***.info/image/data/1ag-spf30-b.gif
, it fails
This is the path I get from clicking the image.
If I use:
Code: Select all
http://oc147.***.info/image/cache/data/1ag-spf30-b-100x100.jpg
, the image shows.
This is the path if I right-click the image and request the image properties.
I hope I make sense.
Re: Image add problem in second language
Posted: Wed Apr 21, 2010 12:00 am
by Qphoria
Can anyone check if ever worked in previous versions?
Re: Image add problem in second language
Posted: Wed Apr 21, 2010 12:12 am
by i2Paq
Qphoria wrote:Can anyone check if ever worked in previous versions?
Which version do you prefer?
Re: Image add problem in second language
Posted: Wed Apr 21, 2010 12:14 am
by Qphoria
The error is a javascript error:
Error: this.getInputElement() is null
Source File: /admin/view/javascript/ckeditor/ckeditor.js
Line: 97
Tho it is packed so will have to use the source version of it to check it out
Re: Image add problem in second language
Posted: Wed Apr 21, 2010 1:02 am
by i2Paq
Qphoria wrote:The error is a javascript error:
Error: this.getInputElement() is null
Source File: /admin/view/javascript/ckeditor/ckeditor.js
Line: 97
Tho it is packed so will have to use the source version of it to check it out
Do you mean the version of ckEditor or OC?
Re: Image add problem in second language
Posted: Wed Apr 21, 2010 4:22 am
by i2Paq
Tested it with 1.4.0 and there it also does not work.
Re: Image add problem in second language
Posted: Wed Apr 21, 2010 4:38 am
by Qphoria
might even be a ckeditor bug.
Re: Image add problem in second language
Posted: Wed Apr 21, 2010 5:20 am
by i2Paq
Qphoria wrote:might even be a ckeditor bug.
It is related to having 2 or more languages.
With one it works.