Admin links not working in embedded page

blackwolf_wx

Joined: 2008-02-29
Posts: 2
Posted: Fri, 2008-02-29 18:46

I recently upgraded Gallery2 and WPG2 on my WP2.2 site.

Prior to this, I had no problems accessing the embedded gallery2, though it took some effort to get it working on IIS 6.

With this new set up, I can view the embedded wpg2 page, navigate the albums and pictures. The sidebar block with Lightbox works fine.

The problem is when a user logs in and attempts to access admin/edit mode via the wpg2 page. The site admin and edit links return a url that errors to a 404 page.

Sample string:
http://w2.wolfextreme.com:8080/wpg2?g2_view=core.ItemAdmin&g2_subView=core.ItemEdit&g2_itemId=7&g2_return=%2Fwpg2%3Fg2_wpg2_returnurl%3Dhttp%253A%252F%252Fw2.wolfextreme.com%253A8080%26g2_wpg2_returnname%3DWolfeXtreme%26g2_GALLERYSID%3D692b09997a2e5bf46b9fa18a9a345d6c&g2_returnName=album&g2_GALLERYSID=692b09997a2e5bf46b9fa18a9a345d6c

I tested URL Rewrite/Path Info in the gallery2 install both enabled and disabled, which produced the same results.

I can verify that Gallery2 and WP are working properly separately. It's just getting them to play nice together that has been challenging me this entire week.

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.1 isapi
Webserver = Microsoft-IIS/6.0
Database = mysqli 5.0.37-community-nt, lock.system=database
Toolkits = NetPBM, Gd, Ffmpeg, Thumbnail, ImageMagick

I'm using svn 534 of WPG2 btw.

Appreciate any help and support you can give on this.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sat, 2008-03-01 00:56

Lets start with the basics. Turn off the Gallery2 rewrite module via WPG2 -> Gallery2 Rewrite.
Edit your .htaccess in your Wordpress Blog Directory and REMOVE the Gallery2 rewrite rules that way we can rule out G2 rewrites causing the issue..

PS: You do not have the Site Admin (Rewrite) Rule active right?

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
blackwolf_wx

Joined: 2008-02-29
Posts: 2
Posted: Sun, 2008-03-02 01:10

All rewrites are off as seen here:

Wordpress Permalinks Active? Yes
Does Gallery2 Rewrite Plugin Exists? Yes
Can Gallery2 Rewrite Plugin be Activated? No
Is Gallery2 Rewrite using Apache Mod_Rewrite? Skipped Due to Previous Failure
Wordpress .htaccess can be updated? Skipped Due to Previous Failure

And this being IIS, no .htaccess.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-03-02 07:36

Ahh this being IIS = Game over.. Sorry but I just do not have access to a IIS box to test if Wordpress + WPG2 + Gallery2 will work.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo