Mlix / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

NextGEN Individual image pages turn to 404 pages #468

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. No idea. For some reason my individual image pages turn to 404 pages. If I 
re-save the Permalink Settings it fixes it but only temporarily.

http://mma-fighter.com/ufc-67-weigh-in-photos/287/ <- works fine
http://mma-fighter.com/ufc-67-weigh-in-photos/287/mma-photos/image/ufc_67_17/ 
<- Breaks

Using code: [nggallery id=23 template=carousel]

What is the expected output? What do you see instead?

Individual image from gallery. Get 404 page instead.

What version of the product are you using? On what operating system?

WP 3.3.1
NextGEN Gallery Version 1.9.2
Thesis 1.8.2
Yoast WordPress SEO Version 1.1.5

Using windows 7/chrome/firefox

Please provide any additional information below.
I have added posts and it still works. Then turns back into 404 pages for some 
reason.

Original issue reported on code.google.com by brad...@gmail.com on 4 Feb 2012 at 1:27

GoogleCodeExporter commented 9 years ago
Checked the links , but see no 404

Original comment by alex.cologne on 18 Feb 2012 at 9:53

GoogleCodeExporter commented 9 years ago
Well I can fix it by updating the Permalink Settings but then a few hours to a 
few days later it breaks again see now. Should I just leave it broken so you 
guys can see?

Original comment by brad...@gmail.com on 23 Feb 2012 at 12:20

GoogleCodeExporter commented 9 years ago
Well I can fix it by updating the Permalink Settings but then a few hours
to a few days later it breaks again see
now<http://mma-fighter.com/ufc-67-weigh-in-photos/287/mma-photos/image/ufc_67_17
/>.
Should I just leave it broken so you guys can see?

http://mma-fighter.com/ufc-67-weigh-in-photos/287/mma-photos/image/ufc_67_17/<-
Broken

Brad

Original comment by brad...@gmail.com on 23 Feb 2012 at 12:24

GoogleCodeExporter commented 9 years ago
Issue 476 has been merged into this issue.

Original comment by alex.cologne on 26 Feb 2012 at 10:08

GoogleCodeExporter commented 9 years ago
Brad,

I don't think it makes sense to see the 404, should be an issue which is 
related to your blog/server environment and with the carousel template.

1. Please verify your rewrite rules with 
http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer/,

2. What permalink structure do you setup in your WordPress blog

Maybe this gives us an idea what is wrong at your side 

Original comment by alex.cologne on 26 Feb 2012 at 10:18

GoogleCodeExporter commented 9 years ago
1. Ran the Rewrite analyzer Test URL: 
http://mma-fighter.com/ufc-67-weigh-in-photos/287/mma-photos/image/ufc_67_17/

Got these results 
([^/]+)/([0-9]+)/mma-photos/image/([^/]+)/?$    

           name: ufc-67-weigh-in-photos
              p: 287
            pid: ufc_67_17
(^^^ results were mustard color)
------------------------------------
([^/]+)/([0-9]+)/mma-photos/([^/]+)/([^/]+)/?$  
           name: ufc-67-weigh-in-photos
              p: 287
          album: image
        gallery: ufc_67_17
------------------------------------------
(.?.+?)(/[0-9]+)?/?$    
       pagename: ufc-67-weigh-in-photos/287/mma-photos/image/ufc_67_17
           page: 
--------------------------------------------------
========================================
2.  .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Permalink Settings
Custom Structure /%postname%/%post_id%/
Also using Yoast SEO to remove categories/

Just installed the newest version of NextGEN. I'll let you know if it breaks.

Noticed this using Rewrite analyzer.
(contact)/mma-photos/([^/]+)/page-([0-9]+)/?$
 pagename: (contact)
          album: ([^/]+)
        nggpage: ([0-9]+)

Does it for all my "Pages" is this correct?

Original comment by brad...@gmail.com on 27 Feb 2012 at 8:29

GoogleCodeExporter commented 9 years ago
Looks that it currently still work, can you confirm ?

Original comment by alex.cologne on 29 Feb 2012 at 10:25

GoogleCodeExporter commented 9 years ago
Yes it's working today. Can I give it 24 more hours and try again. Sometimes it 
would work for a few days then break.

Original comment by brad...@gmail.com on 1 Mar 2012 at 12:30