Can't view Wordpress Pages when WPG2 is active

kissmymutt

Joined: 2007-05-02
Posts: 7
Posted: Tue, 2008-05-06 00:56

Hi All.. I've been struggling with this for a bit and I suspect it's something really simple, but beyond my understanding...
(boy that makes me feel stupid)

WP: 2.5
Gallery : 2.2.4

WPG2: 3.0.6

Regardless of whether or not I have url rewrite on, the gallery works beautifully but my pages don't! I get either

The action you attempted is not permitted.

Back to the Gallery

if url rewrite is on

and sometimes I get a gallery page loading inside wordpress with a 404 error

and a string of code errors if it's off.

(sorry.. didnt' copy them.. I can though... but I disabled the plugin)

Please let me know what information you need to help me fix this.. I'm wondering if it's a .htaccess problem?

I'm sorry to be so vague.. I think my brain is fried.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-05-06 01:54

Hiya kissmymutt,

Ok lets take this one step at a time..

The error inside Gallery2, the action you attempted.. sounds like you got a Gallery2 session issue.. Log into your Gallery2 Directly (do not go via your Wordpress WPG2 Page) and navigate to the Site Admin -> Maintenance and you should see a task, clear sessions.. Run that, and log back out and see if that corrects the issue. If not then you might also be having a cookie session issue and we can address that next..

The rewrite 404 errors after that :)

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

 
TekGen

Joined: 2008-05-06
Posts: 4
Posted: Tue, 2008-05-06 04:44

Security Violation
The action you attempted is not permitted.

Back to the Gallery

Error Detail -
Error (ERROR_PERMISSION_DENIED)
in modules/core/classes/GalleryController.class at line 147 (GalleryCoreApi::error)
in main.php at line 189 (GalleryController::loadController)
in main.php at line 94
in modules/core/classes/GalleryEmbed.class at line 179
in /home/.upside/tekgen/vegasnative.com/wp-content/plugins/wpg2/wpg2template.inc at line 73 (GalleryEmbed::handleRequest)
in ??? at line 0
in /home/.upside/tekgen/vegasnative.com/wp-includes/plugin.php at line 311
in /home/.upside/tekgen/vegasnative.com/wp-includes/template-loader.php at line 7
in /home/.upside/tekgen/vegasnative.com/wp-blog-header.php at line 20
in /home/.upside/tekgen/vegasnative.com/index.php at line 4
System Information
Gallery version 2.2.4
PHP version 5.2.3 cgi-fcgi
Webserver Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.8 mod_ssl/2.8.22 OpenSSL/0.9.7e
Database mysqli 5.0.24a-standard-log
Toolkits Thumbnail, SquareThumb, NetPBM, Gd
Operating system Linux rexford 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194 #1 SMP Tue Jun 6 15:52:09 PDT 2006 i686
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18

 
TekGen

Joined: 2008-05-06
Posts: 4
Posted: Tue, 2008-05-06 04:47

So to be specific... WPG2 works fine on the main page... but any sub page it fails on.

Exampe:
http://www.vegasnative.com/ <- works
http://www.vegasnative.com/page/2 <- doesn't work
http://www.vegasnative.com/2008/04/27/4x4-rock-n-roll <- doesn't work

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-05-06 06:00

Hiya TekGen,

I certainly do not experience these issues so I would recommend you perform the following..

Log into your Gallery2 Directly (do not go via your Wordpress WPG2 Page) and navigate to the Site Admin -> Maintenance and you should see a task, clear sessions.. Run that, and log back out and see if that corrects the issue. If not then you might also be having a cookie session issue and we can address that next..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
TekGen

Joined: 2008-05-06
Posts: 4
Posted: Tue, 2008-05-06 06:18

Yes... did all of that already... and just did it again for good measure including reseting Safari to delete all cache, history, cookies, etc. So you are saying you can view the other pages on my site specifically... or just in your experience with your implementation?

Side note: when not logged in to gallery or wordpress the error message I get is exceptionally simplified

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-05-06 07:30

Ok take me through your installation, firstly what permalink rule do you have setup? I take it you have Gallery2 rewrites turned on. What permissions do you have setup on your albums. Do you have guest view access for example? If you disable Gallery2 rewrites do you have the same issues with other pages being redirected?

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

 
kissmymutt

Joined: 2007-05-02
Posts: 7
Posted: Tue, 2008-05-06 12:46
ozgreg wrote:
Hiya kissmymutt,

Ok lets take this one step at a time..

The error inside Gallery2, the action you attempted.. sounds like you got a Gallery2 session issue.. Log into your Gallery2 Directly (do not go via your Wordpress WPG2 Page) and navigate to the Site Admin -> Maintenance and you should see a task, clear sessions.. Run that, and log back out and see if that corrects the issue. If not then you might also be having a cookie session issue and we can address that next..

The rewrite 404 errors after that :)

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

Hiya! Good (?) to know that I'm not the only one having this problem..

I did try the session thing.. but I tried SO many things... so tonight I'll do this again (I'm at work right now.. drat!)

and then I'll try the / thing in the cookies field in Gallery...

And I'll report back! Thanks!

 
kissmymutt

Joined: 2007-05-02
Posts: 7
Posted: Tue, 2008-05-06 14:40

Ok so I couldn't wait and am doing this on the sly.

I'm on a different computer so maybe that helps!

anywho.. rewrite rules are OFF.

Seems to be working but my g2 images chooser isn't.. that might be a java block on this work PC.

Does it work ok for you?

http://www.sewcrazydoglady.com

 
TekGen

Joined: 2008-05-06
Posts: 4
Posted: Tue, 2008-05-06 16:03
ozgreg wrote:
Ok take me through your installation, firstly what permalink rule do you have setup? I take it you have Gallery2 rewrites turned on. What permissions do you have setup on your albums. Do you have guest view access for example? If you disable Gallery2 rewrites do you have the same issues with other pages being redirected?

Interesting... my permalinks plugin was disabled though I knew I had it on before WPG2 v3.0.6. I activated them and now the behavor I get is that if I go to any sub page I get the WPG2 Output Page. Permalink rewrite rule is simply %filename%. I only have one permalink setup. I have no user specific permisions on any of my albums (guest access yes) and only a few of them are hidden... of which none of them are referenced by WP.

It also seems like every time I make a configuration change with WPG2 it disables the permalink plugin and sometimes the rewrite module. I disabled rewrite in WPG2 and got the same behavor where WPG2 Output Page is what I see (in fact that is the same behavor for this whole exercise from this point on until it starts to work). I then disabled all the rewrite rules in Gallery2. Disabled the permalink and rewrite plugins. verified that the rewrite in WPG2 is still disabled. Activated the two plugins back in Gallery2 and reactivated all my normal rules (obviously not the admin one). Turned on rewrite back on in WPG2. And POOF! it worked.

That only came to mind to try disabling everything related to each other before reactivating it because of the behavor of making changes in WPG2 and it disabling plugins or making configuration changes in Gallery2.

Hope that helps anyone else who is having similar problems.

 
kissmymutt

Joined: 2007-05-02
Posts: 7
Posted: Tue, 2008-05-06 17:40

ok.. my G2 Image chooser IS working.. So! tonight I'll look on my own PC.. but before I do, I'll log out of everything.

Now, off to search for why my lightbox image is so freaking big...

and if the rewrite rules screw up my images, I'll be back!

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-05-07 00:01

kissmymutt,

Please see the note in topic -> http://gallery.menalto.com/node/77414

TekGen,

Hmmm glad you got it working, but clearly something environmental is not 100% but hopefully it remains fixed..

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

 
kissmymutt

Joined: 2007-05-02
Posts: 7
Posted: Wed, 2008-05-07 13:29

Thanks.. um.. I'm "not authorized" to view that topic.

I suspect that it will remain fixed since I cleared my cache, deleted my cookies and added the / for the cookie path (which resulted in my clearing my cash again, deleteing my cookies and deleteing my user sessions)..

It's fine still this AM..

I didnt' play with the URL rewrites which I suspect was part of the problem last time..

(and for the record, my miniumum size for images in the lightbox settings is 100 and it's still not working for images in posts.. in the sidebar block they are perfect... I'll keep digging about for answers.. maybe I need to rebuild my image sizes or somethign.. but this is for a different thread I think)

Thanks!

Jen

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-05-08 11:36

Yeah someone marked the topic as SPAM while I was away on my business trip. Back up now *sighs*

The lightbox issue could be an issue, please have a read of -> http://gallery.menalto.com/node/77327

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