Gallery rewrites (?) & Lightbox problem
paulgray
Joined: 2008-05-06
Posts: 8 |
Posted: Tue, 2008-05-06 11:54 |
I don't know what I've done, but it must have been silly!! I then did a forced refresh of the page, thinking it might pick something new up then. It didn't get lightbox working, but did take away the thumbnails from the page. Now it only displays the title name of the photo, and those that should open up in lightbox will open when clicked, but not in lightbox. By looking at the page source, I have noticed that all of these images have the same string at the end of the img src code. "?g2_GALLERYSID=b1b70f3b9ccd3ffc1a9f40211bbaf8fe" I don't know whether this has some sort of effect on this problem. At first I thought it might have been a rewrite problem, but no fiddling there changed the problem. I currently have Gallery 2 URL Rewrite activated to give me the neat address with /v/ and /d/ type web addresses. (It was like this before the upgrade also). In WPG2 REwrites it is set to Off(Safe) and has passed as Valid. I have fiddled for two days with this now, and can't get it right. Is anyone able to offer some help please? If you need further info, please let me know. |
|
Posts: 1378
Hiya Paulgray,
The g2_GALLERYSID=b1b70f3b9ccd3ffc1a9f40211bbaf8fe is part of Gallery2 Security Feature, you can control this feature by the G2 Site Admin -> Cookies. The Appending of the SIDS will not effect lightbox although.
I have had a look at your site and you have a number of environmental issues.. When clicking on an image, you are getting a Internal Server Error and the main blog page is loading with JS errors killing MooTools which is one of the two required libraries for slimbox (the lightbox) script so it appears you have some issue with most likely another plugin that is causing at least some of your issues.
Start with the basics, deactivate a few other plugins that you know are also loading JS's and see if the lightbox effect will start working then. Also have a look at your errorlog to see what the internal server error is..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Thanks ozgreg for looking into this for me. I deactivated a plugin - vpip - I am using to show video. This plugin (before I did the upgrading) was working nicely with WPG2 to show video in a Thickbox effect.
After deactivating this plugin, my site now does not show the thumbnails, but when I click on the link it opens up Lightbox, but seems to stall - it appears to be trying to find the image to display. I am assuming this now has something to do with the Internal Server error (as if I deactivate WPG2 and click on a link I get the Internal Server error still).
I checked the error log in cPanel and this is all it shows:
[Wed May 7 20:29:18 2008] [error] [client 124.183.81.47] File does not exist: /home/**username**/public_html/gallery/v/main.php
[Wed May 7 18:44:51 2008] [error] [client 67.195.37.115] File does not exist: /home/**username**/public_html/gallery/404.shtml
[Wed May 7 18:44:51 2008] [error] [client 67.195.37.115] File does not exist: /home/**username**/public_html/gallery/robots.txt
[Wed May 7 18:20:58 2008] [error] [client 74.6.25.110] File does not exist: /home/**username**/public_html/gallery/v/main.php
[Wed May 7 18:20:57 2008] [error] [client 74.6.25.110] File does not exist: /home/**username**/public_html/gallery/v/2008-Photos/main.php
[Wed May 7 18:20:56 2008] [error] [client 74.6.25.110] File does not exist: /home/**username**/public_html/gallery/v/2008-Photos/March/main.php
Any ideas on what I could try now. By the way, Gallery2 was installed using Fantastico and is currently on version 2.2.2
I was planning on updating to 2.2.4 after doing all the other updates, but am now holding off till this issue is fixed. Would upgrading now fix the problem, or cause other errors, like database corruption, therefore I should wait to upgrade till after this is resolved?
thanks
paul
Posts: 8
Forgot to mention also, that I have noticed I can no longer log in to either of the two Gallery2 accounts I have, using Firefox (v2.0.0.11) However I can log in to both accounts if I use Safari (3.1.1) . I am on a Mac (X.4.11). Could this be part of the problem also?
Posts: 1378
I have noticed that all your lightbox links are via G2image. How are you inserting the images, as a URL or via WPG2 tags?
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
I inserted those images using the Gallery2 Image Chooser (the little button on the write post format menu).
Then in the popup window I selected the iamge, and under insertion options it is set to "thumbnail with lightbox link to full sized image"
Is there another way I should be doing it??
Posts: 1378
Not really, I personally use the WPG2 Tags which I think is a far better way as WPG2 plugin will auto generate the URL Links. I am just wondering if that is the issue can you do a post for me with a few images and use the WPG2 tags rather than URL's..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
sure, how do I do it using WPG2 tags?
Posts: 1378
In the How to Insert Image in the G2Image Popup box select WPG2 Tag of Image..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Have made a new post, http://paulgray.id.au/archives/2008/thomas-pre-school-tea-towels but it seems to be having the same problem - opens up in lightbox, but doesn't actually load.
Posts: 1378
Sorry paulgray
Just getting back to this topic now.. Have you please follow this FAQ entry and post the debug log.
Thanks
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Thanks greg, have installed the plugin, and when I go to Dashboard > Event Viewer > Display Debug, it comes up empty. Is there something else you want me to try?
Posts: 1378
Is it just lightbox that fails to load? Does the WPG2 work fine without lightbox? Because it could just be an issue with Slimbox on the way it loads.. If everything else is working turn off the internal lightbox script and try using the wordpress lightbox plugin
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Thanks for your help with all this Greg. I have had many diferent problems with this, varying between thumbnail images not showing, lightbox not loading at all, and then lightbox needing to be cicked on three times to get it working, like this error.
I again fiddled with settings, and am positive I had these set before and they didn't fix the problem.
Tonight I have the settings set at:
**WPG2 plugin active, with WPGS Rewrites set to off[safe] and Lightbox using the internal script
** In Gallery 2 Site Admin, URL Rewrite is active
I have also deactivated WP Grins and vPIP plugins as they seem to be causing troubles with wordpress 2.5 and WPG2, even though they were working under 2.3.3.
Now it appears the only problem I have is I can't log into Gallery2 Site Admin, using Firefox, but I can log in using Safari (both on mac). I realise this isn't the correct forum for this though so will leave for a little while and try to get it fixed later.
Again, thanks for your help though Greg. It appears as though I have all setting back to original and they are now working... Who knows??? ;-)
Posts: 1
I'm also having problems with lightbox. I put in lightbox links using the same drop down menu selector (which creates an a href with "lightbox" tag) .. and instead of creating a lightbox to display the image it just goes directly to the image.
Posts: 1378
Woot,
This could be caused by a number of issues, most commonly something is blocking the slimbox from activating correctly, as a quick test turn off the WPG2 internal Lightbox Script and instead use the Wordpress Lightbox Plugin
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo