Page 1 of 1

Ozio not displaying photos

Posted: Wed Nov 25, 2009 7:45 pm
by tlawson84005
I just installed Ozio 2.2 and it appears to have installed just fine. The problem is that I don't see any photos. I created a directory /oziogallery2 user the media folder off of root. I created a menu item and published it. The Ozio control shows up but none of the jpgs in that folder.

I am running on a local host. Would that make a difference?

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 7:37 am
by creativesights
same problem here - I did notice that adding the www. before the domain name makes a difference.

example www.domain.com works while domain.com doesn't. Unfortuately it seems to vary.

Did you get it figured out?

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 7:48 am
by hamanaka
let's see a link, maybe we can identify the problem, I am sure it is something simple, Ozio is pretty simple, try changing the type.

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 8:10 am
by creativesights
Glad you liked the site for the forum. Much thanks for the fast approval. Unfortuneately, this is the site where I'm having the ozio issue. Check it out

http://www.cristinascarborough.com or http://cristinascarborough.com

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 8:13 am
by creativesights
What do you mean by type?

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 8:18 am
by hamanaka
I'm sorry, the images show up for me.

Be more speciifc on what the issue is.

I am responding to creativesights, not tlaw the original thread author.

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 2:17 pm
by creativesights
I guess that's a good thing, but for me they show up when I go to http://www.cristinascarborough.com - no problem.

Problem comes when I go to the alternate address (without the www) http://cristinascarborough.com i get a gallery with empty grey boxes.

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 7:17 pm
by creativesights
Alright so I have a band-aid fix in place.

when you write or reset the xml file for the menu item, it assigns absolute paths in the xml file to each image in the appropriate image folder. So to fix it for now, in the com_oziogallery2/skin/flashgallery/xml folder edit the flashgallery_Gallery file and change the absolute paths to relative paths.

To further illustrate: change http://www.domain.com/images/oziogallery/picture001.jpg to /images/oziogallery/picture001.jpg.

Now the next step is to figure out what's writing the xml file that way and fix it. Help still welcome here.

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 9:10 pm
by hamanaka
yes that is a good fix, also will keep things running fast.

Otherwise I was going to say, maybe you built the website too fast. I have also had that in the first day that I have built and published websites.

Yes that would be good to know what writes the XML code and tell it to write everything but the domain url.

On this website though, will you really be changing pictures or making change too often?

I would suggest that you spend 30 minutes to an hour and see if you can have the same or similar visual appearance without using flash (sorry Adobe) either with a different extension, or just with some fancy scripting.

Re: Ozio not displaying photos

Posted: Thu Dec 31, 2009 9:37 pm
by creativesights
The big feature here for the client is the ability for her to add pictures herself as she wants to each time she finishes a project. I think we'll move eventually project menu where each project has it's own gallery.

Your suggestion isn't a bad idea. I'd have to brush up on my scripting skills, but it could pay off.

Thanks again!

Re: Ozio not displaying photos

Posted: Wed Jan 06, 2010 5:15 pm
by mattfive
I've had the same problem and was able to fix it. I did it only with flashgallery, but it should work for all the other types as well. You just have to replace the folder's name (instead of flashgallery):

1) go from root into /components/com_oziogallery2/views/02flashgallery
2) there is the file view.html.php which writes the .xml file with the absolute paths that causes our problem
3) transfer this to your hard disk and edit it the following way:
4) in lines 120-122 you have to delete the absolute path variable $VAMBpathAssoluto, so that it looks like this:

$path = $folder . '/';
$dir_images = $folder . '/';
$dir_files = 'images/oziogallery2' . '/';

[It could look slightly different and the line numbers could differ for other gallery types]

5) Save your view.html.php and upload it again to your webspace (to be safe: rename the old file to "view.html_old.php")
6) Reset xml file(s) in the backend for your galleries
7) check whether the folder /components/com_oziogallery2/skin/flashgallery/xml does not contain any .xml file
8 ) log in into the frontend and go to your gallery
9) now everything is fine, with "www" or without it
10) for fun, check the new .xml file in the folder above: you will see that all the pictures are now listed with relative paths

I hope this saved some of you some time ;)

P.S.: Please let me know if those changed lines could cause new trouble, for example when adding new subfolders for more galleries. I haven't checked that yet...

Re: Ozio not displaying photos

Posted: Mon Jan 11, 2010 7:30 pm
by creativesights
Much appreciated - I've been on vacation so I'll check that out today.

Curious - why do you think the authors would be so specific with an absolute path setting like that?

Re: Ozio not displaying photos

Posted: Mon Jan 11, 2010 7:55 pm
by mattfive
This is indeed a good question...
Anyhow, I've just uploaded some pictures into a new folder and created a new gallery to test whether my changes affect this in any way. Since the view.html.php file creates a separate .xml file for each gallery (you should have separate subfolders in /images/oziogallery2 as well) the relative paths to the image files don't seem to cause any problems.

Re: Ozio not displaying photos

Posted: Mon Jan 18, 2010 6:17 pm
by creativesights
worked perfectly for me. Much thanks!

Re: Ozio not displaying photos

Posted: Mon Jan 18, 2010 6:38 pm
by mattfive
You're welcome! Without the other pieces of information I found here I wouldn't have been able to fix it anyhow...

Re: Ozio not displaying photos

Posted: Tue Feb 02, 2010 12:23 am
by alanuzga1
I have a similar problem in which the photos all show up but the scrolling thumbnails at the bottom of the viewer don't show the picture in the preview. By thumbnails I don't mean the _thumg.jpg images in each subfolder that are used as the picture for each gallery, I mean the small photos at the bottom during the slideshow. All that shows is a number for each photo in ascending order and a blue box.

I tried changing some of the preferences in the xml file but nothing seems to fix it... Please advise! Thanks!

Re: Ozio not displaying photos

Posted: Tue Feb 02, 2010 6:00 am
by mattfive
I haven't heard of that problem yet. Just a few questions: Have you tried to delete the gallery you have created and then create it again? Have you resetted the .xml? Have you deleted/emptied the cache (of component and browser)? Do you use the Flickr method? If so, try it with the other method first.

Re: Ozio not displaying photos

Posted: Tue Feb 02, 2010 8:16 pm
by alanuzga1
I have tried deleting and recreating the gallery and resetting the xml with no success. I don't use the Flickr method because I am using the Imagin skin.

I just recently got a reply from the author of the module and they said that I need to ensure that I have given chmod777 to all the folders so I will try that.

Re: Ozio not displaying photos

Posted: Tue Feb 02, 2010 9:31 pm
by mattfive
CHMOD 777 for all the folders? I wouldn't feel so comfortable with that, since from what I have read about 777 I guess it could cause security issues (hacks) if you applied it to all your Joomla folders-> cf. http://forum.joomla.org/viewtopic.php?f=267&t=25853

Re: Ozio not displaying photos

Posted: Wed Feb 09, 2011 7:02 pm
by daalouw
My current view.html.php file looks like this:

-------------------
if( $flickr == 0 ) :
jimport('joomla.filesystem.file');
// creazione file xml al volo
$VAMBpathAssoluto = str_replace("\\", "/" , $VAMBpathAssoluto);

$path = $VAMBpathAssoluto .'/'. $folder . '/';
$dir_images = rtrim(JURI::root() . $folder . '/') ;
$dir_files = rtrim(JURI::root() . 'images/oziogallery2') . '/';
----------------

So I changed it to the following based on previous suggestion but am getting syntax errors when displaying the gallery:

------------------
if( $flickr == 0 ) :
jimport('joomla.filesystem.file');
// creazione file xml al volo
$VAMBpathAssoluto = str_replace("\\", "/" , $VAMBpathAssoluto);
$path = $folder . '/';
$dir_images = $folder . '/') ;
$dir_files = 'images/oziogallery2' . '/';

----------------------------------

I also tried the following and still got syntax error:

----------------------------
if( $flickr == 0 ) :
jimport('joomla.filesystem.file');
// creazione file xml al volo
$path = $folder . '/';
$dir_images = $folder . '/') ;
$dir_files = 'images/oziogallery2' . '/';
-----------------------------------------

Please help me get the correct syntax figured out.

Re: Ozio not displaying photos

Posted: Wed Feb 09, 2011 7:31 pm
by creativesights
In the time since I used on this I've worked with several different SEO teams on different projects and now as a general practice, set the canonical to reflect either www or not.

more about this in an article here: http://www.mattfarina.com/2007/07/24/ww ... o-question

Short version add the following code to your htaccess file.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

This should remove the variation between the two sets in the front end of the website.

Re: Ozio not displaying photos

Posted: Wed Feb 09, 2011 7:58 pm
by daalouw
Awesome - I went the no-WWW route and it works perfectly. Great solution and only 1 place to change.

Thank you.

Re: Ozio not displaying photos

Posted: Wed Feb 09, 2011 10:57 pm
by creativesights
Glad to help!

Re: Ozio not displaying photos

Posted: Fri Apr 29, 2011 12:46 pm
by mpanessa
Wondeful set of directions Matt5. This solution fixed a domain that had parked domains that were erroring out (grayed out blank images) within the oziogallery frontend when accessed thru a the parked domain .
After editing the file you mentioned I then went to the main ozio gallery component interface and reset the global xml doc.

Done. :)

thanks again.

Re: Ozio not displaying photos

Posted: Fri Feb 17, 2012 11:15 pm
by changlee
Hello dear friends,
We developed a website with four oziogallery - cooliris albumes like one here: http://www.jerotech.eu/laminate/laminate-floors-premium

The problem is that when we RESET XML, everything is working fine, but after few minutes, the images are not displaying. What solution do you suggest?

Should I follow mattfive's post?

Thank you

Re: Ozio not displaying photos

Posted: Wed Feb 22, 2012 10:43 am
by changlee
We finally fixed that by setting the code in .htaccess in order to work fine both in jerotech.eu and www.jerotech.eu

Thanks ;)

Re: Ozio not displaying photos

Posted: Thu Mar 08, 2012 11:32 am
by changlee
Yes it is working fine right now. Thank you for your support.