Embedded page shows only one album wont load WP style
averad
Joined: 2008-01-31
Posts: 8 |
Posted: Thu, 2008-01-31 08:03 |
PHP Version: 5.2.2 I finally got my permalinks working correctly in wordpress but, now when I load my embedded album the first page only shows one album. I tried turning on the URL rewrite but, all that did was break my image block widget. So I turned it off and now the image block works but the main embedded page shows only one album. You can see by going to http://www.averad.com/wpg2 When you go to the next page it will show my theme and embed correctly You can see this by going http://www.averad.com/wpg2?g2_page=2&g2_GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT I'm not sure what is causing this and ive been searching for a few hours. Anyone have any ideas? |
|
Posts: 8
this is in my .htaccess file for the rewrite
Posts: 8
Could this be caused from the php timeout settings in php.ini being set to low? (Something under 30 seconds) How many seconds does G2 need?
Any help is much appreciated, I am quite lost and have now spent 6+ hours searching for a fix.
If I revert to the standard /?p=%postid% the embedded G2 page will work without any problems.
One thing I didn't mention is how the structure of my site is:
averad.com - Index.php that routes the browser to wp.averad.com
wp.averad.com - Actual location of worpress
album.averad.com - Actual location of Gallery 2
So might the issue be the redirect doesnt take into account that the files are not under averad.com but a subdirectory?
Posts: 1378
Lets take a few steps backwards, I think the TMP_SESSION_ID_DI_NOISSES_PMT is part of your issue I suspect the fact you both your WP and G2 installs are in subdomains but you access the webpage from the main domain is tripping security within Gallery2 (which is why the TMP_SESSION_ID_DI_NOISSES_PMT gets appended)
Firstly turn off Gallery2 rewrites, they are just making it even more confusing.. We can play with them later on. Secondly have a look at the Gallery2 Site Panel, Cookies Settings (Click on the + Sign) you may need to set the path and domain to help with your session handling.
At the end of the day, it might be that G2 security just will not let you have WP in one subdomain, G2 in another while accessing both from your main domain, I will admit I never tried this and struggling a little to understand why you would want this..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Thank you for getting back to me, sorry that I'm a little spaztastic. I've lost a few hours of sleep I could really use.
1) URL Rewrites has been disabled (set to off safe in WP and shows as not activated in g2.
2) Under G2 Site Panel, Cookies Settings path is set to / and domain is .averad.com
Honestly the reason I split the install of WP and G2 between two sub domains was because of my hosts auto installer. When I tried to install word press to the base domain (averad.com) I was warned that all information would be removed and had files I didn't want deleted. So I created a sub domain (Just like I had for G2) and installed wordpress.
Posts: 1378
Strange that the autoinstaller makes you do this, the very typical install I see is /wordpress and /gallery2 on the same domain. I think tweaking the cookie settings might also correct this issue as well. (As I already posted)
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
I messed around with the settings but couldnt get it to work. So I figured it would proibly benifit me the most to move both WP and G2 to my main domain.
Im proud to say I was able to get everything up and running now at http://www.averad.com without the crazy subdomains =)
Posts: 8
Its broken again
Well I finished uploading enough pictures to have 3 pages of albums.
Now on averad.com/wpg2 it embeds page 1 correctly but if you click on an album or try to move to the next page I get a g2 page with only the logo. Im not sure what the issues is now.
averad.com/wordpress
averad.com/gallery2
averad.com - index.php script that launches the wp
Could it be because I have the images set to a folder in /gallery2? Image block embeds correctly on my main page with the current settings and lightboxes images.
Posts: 8
I've been playing around with the settings all morning and cant seem to get this fixed.
Cookies are set to / and blank for the domain as nothing is under a sub domain.
Posts: 1378
OK I can see all your albums but no navigate below the album.. This could be one of three issues, firstly it could be caused by the lack of phpmemory (FAQ has a fix for this) and/or the activation / deactivation of the G2 rewrite module has left some messed up settings in your .htaccess. You will find two .htaccess files one in your G2 and the other in your wordpress directory. Turn off your WP permalinks, remove both of these files and reactivate your WP Permalinks.. Lastly it also could be caused by Gallery2 Template caching, which you can clear via G2 Site Admin -> Maintenance
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Ok it's all fixed the .htaccess was all messed up and now everything works fine. Now I just need to get a better theme setup for the embedding.
Thanks alot.
Averad - http://www.averad.com