Worpdess 2.6 + WPG2 3.07 = wpg2 page returns a 404

pelrol

Joined: 2007-07-26
Posts: 5
Posted: Mon, 2008-07-21 08:17

Hi,
I've just upgraded my wordpress blog form 2.5 to 2.6 and I can't get anymore my embedded gallery to work : the page just return a 404.
I tried to disable/enable the wpg2 plugin but it does not work.
The other WPG2 features are correctly working (side bar widgets, wpg2 image tags, etc...)

Can someone help me to debug this issue ?
http://www.famillepellegrin.fr/blog/index.php/wpg2-2

Thanks.

 
OzDamian

Joined: 2008-04-30
Posts: 35
Posted: Mon, 2008-07-21 09:56

Your Photos tab is linking to
http://www.famillepellegrin.fr/blog/index.php/wpg2-2
if I remove "index.php/" from the permalink your wpg2 page displays correctly

Try logging into your Admin, click "Manage" then "Pages" tabs, click Photos to edit the WPG2-2 page, them click "edit" to the right of the Permalink (located one line under title) remove "index.php/" and save.

Let us know if this fixes the problem ?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-07-21 11:22
pelrol wrote:
Hi,
I've just upgraded my wordpress blog form 2.5 to 2.6 and I can't get anymore my embedded gallery to work : the page just return a 404.
I tried to disable/enable the wpg2 plugin but it does not work.
The other WPG2 features are correctly working (side bar widgets, wpg2 image tags, etc...)

Can someone help me to debug this issue ?
http://www.famillepellegrin.fr/blog/index.php/wpg2-2

Thanks.

You have a very odd permalink structure, I never seen WP add index.php into the URL structure before.. Verify the WPG2 page still exists, and it is not marked as private..

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

 
pelrol

Joined: 2007-07-26
Posts: 5
Posted: Mon, 2008-07-21 11:47
OzDamian wrote:
Your Photos tab is linking to
http://www.famillepellegrin.fr/blog/index.php/wpg2-2
if I remove "index.php/" from the permalink your wpg2 page displays correctly

Try logging into your Admin, click "Manage" then "Pages" tabs, click Photos to edit the WPG2-2 page, them click "edit" to the right of the Permalink (located one line under title) remove "index.php/" and save.

Let us know if this fixes the problem ?

Thanks for the info, I tried to link on http://www.famillepellegrin.fr/blog/wpg2-2 but this page has my blog content, not the gallery one.

This is probably because of my .htaccess file, here is its content.

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /blog/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/blog/wpg2-2$
    RewriteRule .   -   [L]

    RewriteCond %{THE_REQUEST} /blog/v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/blog/wpg2-2$
    RewriteRule .   /blog/wpg2-2?g2_path=%1   [QSA,L]
</IfModule>

# END Url Rewrite section


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

# END WordPress
 
pelrol

Joined: 2007-07-26
Posts: 5
Posted: Mon, 2008-07-21 11:52
ozgreg wrote:
pelrol wrote:
Hi,
I've just upgraded my wordpress blog form 2.5 to 2.6 and I can't get anymore my embedded gallery to work : the page just return a 404.
I tried to disable/enable the wpg2 plugin but it does not work.
The other WPG2 features are correctly working (side bar widgets, wpg2 image tags, etc...)

Can someone help me to debug this issue ?
http://www.famillepellegrin.fr/blog/index.php/wpg2-2

Thanks.

You have a very odd permalink structure, I never seen WP add index.php into the URL structure before.. Verify the WPG2 page still exists, and it is not marked as private..

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

Thanks ozreg, the issue was in my wordpress permalinks options which was set to "/index.php/%year%/%monthnum%/%day%/%postname%".

I restored it to the default date/post title option, and it does work.

Thanks a lot for your help.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-07-21 22:27

Glad you got it working..

The permalink structure /%year%/%monthnum%/%day%/%postname% would also work. I think throwing index.php into the structure was isolating the WPG2 Page from being loaded.

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