Page 1 of 2

Error when I display image with description

Posted: 27 Aug 2009, 04:10
by youpla
Hi everbody,

First of all, I want to congratulate the Phoca staff for all the great work you are doing. Phocagallery is a very good component! :twisted:

I was using it with the modalbax display (with description) for 6 mounth without any problems.
Few days ago I had some extra photo and I rearanged some categories.
But now, I have an error when I want to display an image With title (and description). The following message is displayed at the top of the popup windows.
"') else document.write('

') if (iebrowser&&dom||dom) /*if IE5+ or modern browsers such as Firefox*/ this.startit() else{ this.curimageindex++ setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay) } } function fadepic(obj){ if (obj.degree<100){ obj.degree+=10 if (obj.tempobj.filters&&obj.tempobj.filters[0]){ if (typeof obj.tempobj.filters[0].opacity=="number") /*if IE6+*/ obj.tempobj.filters[0].opacity=obj.degree else /*else if IE5.5-*/ obj.tempobj.style.filter="alpha(opacity="+obj.degree+")" } else if (obj.tempobj.style.MozOpacity) obj.tempobj.style.MozOpacity=obj.degree/101 else if (obj.tempobj.style.KhtmlOpacity) obj.tempobj.style.KhtmlOpacity=obj.degree/100 else if (obj.tempobj.style.opacity&&!obj.tempobj.filters) obj.tempobj.style.opacity=obj.degree/101 } else{ clearInterval(fadeclear[obj.slideshowid]) obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1" obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas) obj.populateslide(obj.tempobj, obj.nextimageindex) obj.nextimageindex=(obj.nextimageindex' slideHTML+='


' if (this.theimages[picindex][1]!="") /*if associated link exists for image*/ slideHTML+='' picobj.innerHTML=slideHTML } fadeshow.prototype.rotateimage=function(){ if (this.pausecheck==1) /*if pause onMouseover enabled, cache object*/ var cacheobj=this if (this.mouseovercheck==1) setTimeout(function(){cacheobj.rotateimage()}, 100) else if (iebrowser&&dom||dom){ this.resetit() var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas) crossobj.style.zIndex++ fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50) this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0" } else{ var ns4imgobj=document.images['defaultslide'+this.slideshowid] ns4imgobj.src=this.postimages[this.curimageindex].src } this.curimageindex=(this.curimageindex */



The photo with description appears at the end of the frame but you have to scroll down. The pb appear with all the display settings excepted shadowbox (but with shadow box, only the first line of the description is available)

I use firefox (3.0.13) but I have the same pb with IE.
I update my version of phocagallery but the pb is still the same.
I tried all the differents parametre options for the display but it is always the same pb :x

Somebody have a similar pb?
Will very much appreciate for any help. Thanks

Re: Error when I display image with description

Posted: 27 Aug 2009, 20:10
by Jan
Hi, seems like the code is not correct, did you do some changes in the code? check if all files were successfully copied while reinstallation.

Jan

Re: Error when I display image with description

Posted: 28 Aug 2009, 09:17
by youpla
Hi,

Thank for your reply.
I have export all my phot in anotherwebsite were I installed Phocagallery and it is working perfectly
I have delete phocogallery in the initial website and install it again. but the problem stil remains. :x

I think that it is comming from a problem with other jommla components.
I read in the forum that Phocagallery is using other joomla component surch as modalbox.
Do you know which joomla component could be affected (the pb is the same for modalbox and Highslide)
Should be a common component at this both functionalities....

Thanks a lot for your valuable support !!

Re: Error when I display image with description

Posted: 28 Aug 2009, 18:44
by Jan
Hi, Phoca Gallery doesn't use any other component. :idea: The modal box is a part of Joomla! framework and Phoca Gallery use Joomla! framework ? :(

Re: Error when I display image with description

Posted: 08 Sep 2009, 18:12
by Jan
Hi, you need to check other extensions or template, so there is no conflict with standard modal box (mootools) library.

Jan

Re: Error when I display image with description

Posted: 03 Oct 2009, 11:03
by luso76
Hi,
I have the same probleme.
I don't change anything in my site.
All it's OK 1 month before.

Someone find a solution ?

Thank you

Re: Error when I display image with description

Posted: 03 Oct 2009, 15:24
by Superjan
Yes. The same problem here. All pictures are shown as thumbs, but as soon as I click to open them I get this instead of a picture:

Code: Select all

') else document.write('

') if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox this.startit() else{ this.curimageindex++ setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay) } } function fadepic(obj){ if (obj.degree<100){ obj.degree+=10 if (obj.tempobj.filters&&obj.tempobj.filters[0]){ if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+ obj.tempobj.filters[0].opacity=obj.degree else //else if IE5.5- obj.tempobj.style.filter="alpha(opacity="+obj.degree+")" } else if (obj.tempobj.style.MozOpacity) obj.tempobj.style.MozOpacity=obj.degree/101 else if (obj.tempobj.style.KhtmlOpacity) obj.tempobj.style.KhtmlOpacity=obj.degree/100 else if (obj.tempobj.style.opacity&&!obj.tempobj.filters) obj.tempobj.style.opacity=obj.degree/101 } else{ clearInterval(fadeclear[obj.slideshowid]) obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1" obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas) obj.populateslide(obj.tempobj, obj.nextimageindex) obj.nextimageindex=(obj.nextimageindex' slideHTML+='
And no - I did not toutch or do anything...
Could this have something to to with rights? I found some htaccess-files in one of my folders that the web-company had generated.

regards
Jan Henrik

Re: Error when I display image with description

Posted: 05 Oct 2009, 16:18
by Jan
Hi, maybe you should check if your site were not hacked. Check the permissions of your folders, if there are 777, everybody on internet can write something into your folders

Jan

Re: Error when I display image with description

Posted: 06 Oct 2009, 11:13
by Superjan
Hi again Jan.
No, not 777:)
And the rest of the webpage is perfectly normal. So I don't think I've been hacked. It's only the gallery that does not work.
You can see it here:
http://www.albaniaferie.com/index.php?o ... &Itemid=62

But it's kind of strange that so many of us get the same problem at the same time?
Any other ideas? :idea:

Jan Henrik

Re: Error when I display image with description

Posted: 07 Oct 2009, 19:13
by Jan
Hi, your site was hacked. To see it:

Open your site with Mozilla Firefox, go to gallery, click on the image, the detail window will be opened. Click right mouse click on the detail image area and select "This frame" - Didplay html source of this frame. Then see the html source of this frame (you will see a lot of url links) or copy the javascript part and paste it into your editor (e.g. notepad++) too see it better. :(


So for now you should to try find every hacked code on your site, change all the passwords to the site, change all the ftp passwords, check the ftp clients (if they save the password not secure), your pc for viruses and check all the permissions and ownership of the files and folders on the server :(

Jan