Subject: GL_Gallery2 Plugin no images??

Posted on: 28/02/06 08:24pm
By: squirrellydw

Well I installed the GL_Gallery2 Plugin and I am having a few problems.

See below, got the first problem fixed

GL_Gallery2 Plugin no images??

Posted on: 28/02/06 09:19pm
By: squirrellydw

ok, I got the images to show up however I can only see them when I am logged out, whats up with that?

Also when I click on a picture it takes me out of geeklog, I have no header so no way to get back to the main site.

GL_Gallery2 Plugin no images??

Posted on: 02/03/06 08:47am
By: jaapvdv

After installing the GL_Gallery2 plugin I am confronted with the same problem.
Gallery2 stand-alone works fine, Gallery2 embedded in Geeklog also seems to function properly, except for the fact that no image are shown.
All I see are broken image icons. Not only for the images in my albums, also for the Gallery2 logo and the other images in Gallery2 itself. Can someone help?

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 03:56am
By: stolidus

I have the same problem. Install went fine, but no images. Empty boxes.

I followed Gallery2 recommendation to store data outside of webtree, is this the prob? C:g2data is where the images are. Gallery2 works fine independently. Anybody with an idea? Thanks in advance.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 04:01am
By: stolidus

I only have the gd graphics toolkit installed is that it?

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 07:16am
By: suprsidr

Which Gallery version are you using? Looks like you are using a windows server, apache or IIS?

if IIS look here.

GL_Gallery2 0.5.0 only works with Gallery 2.0.x or lower.
I have a version that works with Gallery 2.1.
Let me know if you are interested. I need some testers.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 09:44am
By: squirrellydw

[QUOTE BY= suprsidr] Which Gallery version are you using? Looks like you are using a windows server, apache or IIS?

if IIS look here.

GL_Gallery2 0.5.0 only works with Gallery 2.0.x or lower.
I have a version that works with Gallery 2.1.
Let me know if you are interested. I need some testers.[/QUOTE]

Here is what I am running, I still can't get it to work correctly. I will update to 2.1 when its final.

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) mod_fastcgi
Database = mysql 4.0.26-log

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 02:45pm
By: stolidus

Hey there,

Righto, windows, apache. I fixed it. The only thoing that seemed to work is changing the way my slashes hang. the relative path had to be unix format /../yadayada and direct g2 path had to be C:backslash...backslash...backslashetc. Very interesting.

Now I'm having a problem locking everything down. I changed permissions on Gallery2 to make everyone sign-in so that the site is not just hanging open and when I did that my geeklog site is redirected to http://my.site.net/gallery2/usr.php and of course a 404 error shows saying it is not available. No matter how I came in the webroot index.php was sending to webroot/gallery2/users.php

Well I have the G2 site hanging open again just to keep my geeklog site accessible.

I've played with the permissions and have reached my limit. I don't know where to go from here. Any help? Thanks in advance.

Why doesn't the forum allow backslash ? oh well.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 03:47pm
By: dingo

I had a similar issue with Gallery 2.0.3 and GL_Gallery2 0.5.0 running under Apache and Linux. After installing GL_Gallery2 I could do everything in Gallery except see photos.

I found that my relative path was incorrect in the config.php for GL_Gallery2. My setup is as follows:

Gallery2 is at "/var/www/gallery"
The Geeklog public_html is at "/var/www/html"
GL_Gallery2 is at "/var/www/html/GL_Gallery2".

Based on this I entered a path of "../../gallery" for the relative path configuration.

After quite a bit of uninstalling/reinstalling/reading, I found that the relative path is based on a brower's relative path or a web relative path - not a OS level relative path.

I have an alias set up in the apache config so that the gallery pages can be accessed directly via http://www.mydomain.com/gallery.

Changing my path to "../gallery" for my relative path fixed my issue.

To hopefully further clear up:



From this, the relative browser/web path from http://www.mydomain.com/GL_Gallery2 to http://www.mydomain.com/gallery is ../gallery.

Since I have made the change to my config.php everything is working as expected!

Hope this helps.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 05:11pm
By: suprsidr

Now I'm having a problem locking everything down. I changed permissions on Gallery2 to make everyone sign-in so that the site is not just hanging open and when I did that my geeklog site is redirected to http://my.site.net/gallery2/usr.php and of course a 404 error shows saying it is not available. No matter how I came in the webroot index.php was sending to webroot/gallery2/users.php


The redirect problem is an easy fix. in path_to_geeklog/plugins/GL_Gallery2/functions.inc look for the init function somewhere around line 707 you will see a loginRedirect
it should read 'loginRedirect' => $_CONF['site_url'].'/users.php';

and the path thing, I hope to fix in the next release.


Cheers

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 05:19pm
By: suprsidr

As for squirrellydw I think you still have a path issue, or you have the url_rewrite module active and not setup properly.

Another possibility is that your user id did not get mapped properly during install. Its happened to me several times during testing.
If you login using another username do you see the images? do they link to the right place?

what version of GL_Gallery2 are you using?

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 05:31pm
By: Anonymous

[QUOTE BY= suprsidr] As for squirrellydw I think you still have a path issue, or you have the url_rewrite module active and not setup properly.

Another possibility is that your user id did not get mapped properly during install. Its happened to me several times during testing.
If you login using another username do you see the images? do they link to the right place?

what version of GL_Gallery2 are you using?[/QUOTE]

Here is what I am running, I still can't get it to work correctly. I will update to 2.1 when its final.
I can give you access to my site if you wantto try it?


Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) mod_fastcgi
Database = mysql 4.0.26-log

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 05:49pm
By: suprsidr

Well, looking at your site (I was actually there the other day ) your paths should look something like this
$_GLG_CONF['G2_path'] = '/home/suprsidr/www/testbed/public_html/gallery2';

$_GLG_CONF['G2_relative_path'] = '../gallery2/';


if they do, we will try something else.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 05:58pm
By: squirrellydw

I uninstalled everything, I will try it again unless you want to

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 06:31pm
By: suprsidr

I'm available for chat on msn suprsidr-at-hotmail, aim suprsidr-at-aol, skype suprsidr

would be easier

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 06:32pm
By: stolidus

[QUOTE BY= suprsidr]
Now I'm having a problem locking everything down. I changed permissions on Gallery2 to make everyone sign-in so that the site is not just hanging open and when I did that my geeklog site is redirected to http://my.site.net/gallery2/usr.php and of course a 404 error shows saying it is not available. No matter how I came in the webroot index.php was sending to webroot/gallery2/users.php


The redirect problem is an easy fix. in path_to_geeklog/plugins/GL_Gallery2/functions.inc look for the init function somewhere around line 707 you will see a loginRedirect
it should read 'loginRedirect' => $_CONF['site_url'].'/users.php';

and the path thing, I hope to fix in the next release.


Cheers
[/QUOTE]

should read 'loginRedirect' => $_CONF['site_url'].'/users.php',

should end with comma not semi-colon

tiny but significant for those who don't write code.

Thanks, I'm giving it a try now.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 07:09pm
By: stolidus

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

* This problem can sometimes be caused by disabling or refusing to accept
cookies.

This is the page I get when replacing the line of code as directed. Any thoughts?

I am taking away all rights from the 'Everybody' group in order to force log-in and restrict viewing permissions to select groups on my geeklog site.

As soon as I remove 'Everybody' group permissions and logout, then the redirect situation is a problem.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 07:15pm
By: suprsidr

this is a problem we had on another site.
do your image blocks get rendered on users.php like in the left blocks?

Basically the page that gallery redirects to(users.php) is asking for permission to view a gallery object, and then redirecting again.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 08:21pm
By: squirrellydw

Thanks suprsidr, you are great.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 10:01pm
By: stolidus

the random photo block does, apparently. I disabled the random photo block and all is well. Except of course random photo block doesn't work. First I tried to reset group to all users to see if it would keep from redirecting to users.php, but nope. Set it back to my 'family' group and disabled it altogether. Is there a way to get random photo to work after log-in. I didn't think this was an issue because I had the block set to a specific group and assumed the call for the object did not happen till log-in. I guess it needs to render on first call. Is this an order problem in the code? Any suggestions would be appreciated. Thanks again suprsidr.

GL_Gallery2 Plugin no images??

Posted on: 14/03/06 10:03pm
By: suprsidr

stolidus, you can set gallery2 to embed mode only in gallery2/config.php
look for line $gallery->setConfig('mode.embed.only', false);
and set to true.

Also remember in GL_Gallery2 config
// Allow anonymous users to see the random photo block
$_G2B_CONF['allow_anon_access_random_photo'] = true;

// Allow anonynmous users to access the gallery
$_G2B_CONF['allow_anon_access_gallery'] = true;

And you can stop albums from showing up in the random photoblock by editing the album in gallery.

Cheers.

GL_Gallery2 Plugin no images??

Posted on: 15/03/06 02:33pm
By: stolidus

Well, stepped back and went over evrything recommended. The embed mode was something I missed. I kept thinking that I needed to lock that gallery2 page down. That's not a prob anymore, sweet.

When I take away permission for everybody to view images then the anonymous user can not access my site because the random photo block is causing a redirect to the user file.

If I disable the random photo block, the problem goes away.

The random photo block is an important feature for a certaian group or groups, but the random photo block is set to only show up for those groups. ie 'family' 'friends'

I do not want Jo Schmo reg. usr to have access to pics of my kids and what not.

Well, I could just manually delete Jo Schmo from the Gallery2 usr file. I tried that even tho I could see it was no fix for the long term when new usrs would be signing up regularly, what a nightmare that would be. That is why we have group permissions, right?

When I delete Jo Schmo's Gallery2 account and leave his geeklog acct active, he 'Jo' still has the Gallery2 usr function available in the usr function block, and when Jo clicks that link he gets the following:

Reinit failed: Error (ERROR_MISSING_OBJECT) : Missing object for 22

* in C:wwwwebrootgallery2modulescoreclassesGalleryStorageDatabaseStorage.class at line 2121 (GalleryStatus::error)
* in C:wwwwebrootgallery2modulescoreclassesGalleryStorageDatabaseStorage.class at line 305 (DatabaseStorage::_identifyEntities)
* in C:wwwwebrootgallery2modulescoreclassesGalleryStorage.class at line 118 (DatabaseStorage::loadEntities)
* in C:wwwwebrootgallery2modulescoreclasseshelpersGalleryEntityHelper_simple.class at line 82 (GalleryStorage::loadEntities)
* in C:wwwwebrootgallery2modulescoreclasseshelpersGalleryEntityHelper_simple.class at line 141 (GalleryEntityHelper_simple::loadEntitiesById)
* in C:wwwwebrootgallery2modulescoreclassesGalleryCoreApi.class at line 2225 (GalleryEntityHelper_simple::loadEntityByExternalId)
* in C:wwwwebrootgallery2modulescoreclassesGalleryEmbed.class at line 184 (GalleryCoreApi::loadEntityByExternalId)
* in C:wwwwebrootgallery2modulescoreclassesGalleryEmbed.class at line 94 (GalleryEmbed::checkActiveUser)
* in C:wwwgeeklog-1.4.0sr1pluginsGL_Gallery2functions.inc at line 711 (GalleryEmbed::init)
* in C:wwwwebrootGL_Gallery2index.php at line 67


In the above, Jo now has a map of files and easy access to evrything in those files.

I would like to be able to remove the Gallery 2 usr function from those usrs that have no business using it.

What I'm really after is to be able to set restrictive permissions on albums and still be able to use the random photo block for certain groups of registered users. So, the gallery would be open for use to the community, but users would not have to share thier personal photos with Jo Schmo who they don't know and/or trust. So, anyone in the group 'family' would see the random block containing pics they can relate to...and others would simply be able to acces thier own albums or those for which they have permission.

I guess I would just like users to be able to restrict access to thier albums and pics but still be able to allow or disallow a thumbnail image on the random photo block. In the process not affecting the ability for new or anonymous traffic to the site to be unaffected.

If anyone has read this far, sugesstions and/or help would be much appreciated. Thanks again.




GL_Gallery2 Plugin no images??

Posted on: 15/03/06 08:08pm
By: suprsidr

Why don't you create some public galleries for anon to see.
And put all your other non-public albums into say a members album, and lock that down to registered users only.
Also in the block editor you could set the random image block to logged in only if you don't want anon to see it.
and don't forget the settings in GL_Gallery2's own config for anon users.

We have a similar system that you speak of at http://dev.neven57.com

Member albums are created on the fly, but they appear in the members album as sub-albums. Members have total control over their own albums. But since they are created under the members parent album, they have the default permissions of the parent album.

Hope this helps

Also, I have the code to generate a link to the current logged in users own gallery.

GL_Gallery2 Plugin no images??

Posted on: 17/03/06 04:02am
By: stolidus

Thank you, Suprsidr. I really appreciate all the help. I found that users could only see the thumbs and I threw a watermark on those. So, only family and friends can get the resize and originals. That will work. The community will still be able to use the gallery service which is cool. Thanks again.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=64382