404 error when not logged in to WordPress?

knadles

Joined: 2008-10-10
Posts: 4
Posted: Sun, 2008-10-12 02:09

I just found and installed WPG2. Very nice idea. Mostly, I just plan to use it to show a random Gallery2 image in the WP sidebar.

My issue:

If I access WP and I'm logged in, I can click on the sidebar image and it takes me to the WP/Gallery2 page featuring the large version of that image. However, if I'm not logged into WP, it takes me to the WP 404 error page.

Why is this? Is there a way I can turn it off? I don't expect everyone who looks at my site to log in, but I would like the link to work.

Thanks,
Peter

 
raug

Joined: 2009-07-07
Posts: 4
Posted: Wed, 2009-07-08 11:27

I get same problem here.

Hope someone can help.

Thanks!

 
MattWPBS

Joined: 2009-07-21
Posts: 6
Posted: Tue, 2009-07-21 23:14

Same issue. Anyone got any ideas?

Gallery's installed in /gallery.
Wordpress's installed in /wordpress.
Root brings up the WP.

Could that have some impact?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-07-22 04:33

Do you have the url rewite module activated?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
MattWPBS

Joined: 2009-07-21
Posts: 6
Posted: Wed, 2009-07-22 09:47

Hi Dave,

Nope. If I activate it, it doesn't fix the issues with non-admin users getting a 404. It does cause additional problems, by sending all admin users to the Gallery main album.

Here's the Gallery homepage: http://www.mattwpbs.com/gallery2/main.php
Here's the Wordpress homepage: http://mattwpbs.com/

Let me know if there's any more info that would help, and massive thanks for any help as well!

Plug in wise, within Gallery I've got:

Gallery:
URL Re-write 1.1.18 (disabled)
Bulk Manage 1.0.0
Captcha 1.1.7
Core 1.3.0
Firestats 1.0.3
Notification 1.0.3
Rearrange 1.0.9
Search 1.0.8

Graphics Toolkits:
ImageMagick 1.1.5 (disabled)
Ffmpeg 1.0.13
Gd 1.1.5
NetPBM 1.1.4

Blocks:
Album Select 1.0.11
Image Block 1.1.9

Commerce:
Shutterfly 1.0.14 (disabled)

Display:
Keyword Albums 1.0.6 (disabled)
Slideshow 2.0.0 (disabled)
Colour Packs 1.0.7
Formatted URLs 0.9.5
Icons 1.1.5
Imageframe 1.0.7
Password Protected Albums 1.0.9
Random Highlight 1.0.9
Square Thumbnails 1.0.9
Watermark 1.1.7

Extra Data:
Comments 1.1.14
EXIF/IPTC 1.2.5
Tags 1.4

Import:
Add Items 1.0.8
Archive Upload 1.0.9

Themes:
Ajaxian 1.0.4
Debaser 0.9.1
Matrix 1.1.6
NZDI 1.2.2
Simplified 1.0.1
X_Treme 1.0.6

Within Wordpress I've got:

Akismet 2.2.6
Broken Link Checker 0.5.4
Collapsing links 0.3.2
Extended Comment Options 2.5
Last.FM info 1.4
URL Cache 1.3
Wassup 1.7.1
Wordpress.com Stats 1.5
wp-cache 2.1.2
WP-FLV 0.2
WPG2 3.0.7
Yet Another Related Posts Plugin 3.0.7

 
MattWPBS

Joined: 2009-07-21
Posts: 6
Posted: Wed, 2009-07-22 21:33

Ok, bit more info from creating a test user.

Administrator or Editor roles - the user can get to the gallery.
Author, Contributor or not logged in - get the 404 in the blog.

 
MattWPBS

Joined: 2009-07-21
Posts: 6
Posted: Wed, 2009-07-22 21:42

Granting admin rights to G2 to an author or contributor does not allow them to get to the gallery.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-07-23 00:42

I have not set up WPG2 for some time so all I can think of is the 'page' that WPG2 generates is not working right.
login to WP
Dashboard -> pages
you should see a 'page' for your WP that you can change the name of I think the default is photos but can't remember.

One thing you have to do I only configure the gallery rewrite module from the embedded not standalone portion of G2.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
MattWPBS

Joined: 2009-07-21
Posts: 6
Posted: Thu, 2009-07-23 08:36

YES! I bloody love you.

I'd got that sitting at draft, as I didn't want it displaying. That makes perfect sense with the admin/editor being able to get past it as well - they could see the draft, so they had no problems. Thanks a million!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-07-23 12:50

No need for love just beer is fine or a donation to the project.
Glad it is sorted out.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
MattWPBS

Joined: 2009-07-21
Posts: 6
Posted: Thu, 2009-07-23 12:54
floridave wrote:
No need for love just beer is fine or a donation to the project.
Glad it is sorted out.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Done and dusted. Saving me tearing my hair out's worth a few dollars.