[wp-hackers] Help needed with two issues on established WP install

Dr Deviant deviant at dr-deviant.net
Wed Aug 23 05:43:42 GMT 2006


One thing that bugs me a little abut the WP concept of  "Permalink"... is a 
permalink not a link that will always work in your blog, and therefore not 
customisable? This would be the index.php?p=1234 as this would always work.

The "nice" url structure is not the permalink is it?

----- Original Message ----- 
From: "Jamie Holly" <hovercrafter at earthlink.net>
To: <wp-hackers at lists.automattic.com>
Sent: Tuesday, August 22, 2006 8:44 PM
Subject: RE: [wp-hackers] Help needed with two issues on established WP 
install


> That is really odd. You shouldn't have to restore your database. Simply
> changing the permalink_structure back to
> "/index.php/%year%/%monthnum%/%day%/%postname%/" in /wp-admin/options.php
> should fix that. Are you checking to make sure that once you do an update 
> on
> the permalinks that your site isn't loading off of cache (ie. Checking to
> make sure the post permalink is actually changed)? It almost has to be
> something similar to that considering the following:
>
> -You are getting the wordpress 404 meaning mod_rewrite is working like it
> should.
>
> -Your .htaccess file is working properly since I loaded it on my own 
> server
> with a clean install of wp2.0.4 and it worked fine.
>
> Verify that your wordpress section of .htaccess is as follows:
>
> # BEGIN WordPress
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L]
> </IfModule>
>
> # END WordPress
>
> That will work with or without the /index.php/ (since the index.php is
> forcing the load of the file index.php and the query vars won't start 
> until
> after that)
>
>
>
>
>
>
>
> Jamie Holly
> http://www.intoxination.net
>
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Vogel, 
> Andrew
> (vogelap)
> Sent: Monday, August 21, 2006 9:49 PM
> To: wp-hackers at lists.automattic.com
> Subject: RE: [wp-hackers] Help needed with two issues on established WP
> install
>
> AH! I was opening it in an editor. I opened the file in a browser and
> found the boxes and will try what you suggested.
>
> * The category_base was empty, so I left it alone.
>
> * The permalink_structure had
> "/index.php/%year%/%monthnum%/%day%/%postname%/" (no quotes). I changed
> it to "/%year%/%monthnum%/%day%/%postname%/" (no quotes).
>
> I clicked "Update Settings" at the bottom of the options.php page to
> save my change.
>
> I tried visiting my site BEFORE I went to Options->Permalinks and got a
> WP-404 (instead of the non-WP 404 I'd been getting -- that's sorta
> progress, I guess).
>
> I went to Options->Permalinks and did NOT click "Update Permalink
> Structure" -- I just visited the page. I visited my site again after
> that and got a WP-404 (instead of the non-WP 404 I'd been getting).
>
> I went back to Options->Permalink and clicked "Update Permalink
> Structure" and visited my site. I got a WP-404 (instead of the non-WP
> 404 I'd been getting).
>
> After those errors, and waiting for the next step, I still had to EMPTY
> my WP database and RESTORE it from backup; changing the permalink back
> to "/index.php/%year%/%monthnum%/%day%/%postname%/" (no quotes) didn't
> work.
>
> -drew
> www.drewvogel.com
>
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Jamie
> Holly
> Sent: Monday, August 21, 2006 4:55 PM
> To: wp-hackers at lists.automattic.com
> Subject: RE: [wp-hackers] Help needed with two issues on established WP
> install
>
> I just did a fresh install of WP2.0.4 and they are both listed there.
> With the fresh install, both are empty, but the options are there. Are
> you sure your navigating to http://yourdomain.com/wp-admin/options.php ?
> You need to load the page in a browser and not an editor. If you are
> going to that as a URL and they aren't listed then you have a broken
> installation of Wordpress.
>
> Jamie Holly
> http://www.intoxination.net
>
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Vogel,
> Andrew
> (vogelap)
> Sent: Monday, August 21, 2006 4:42 PM
> To: wp-hackers at lists.automattic.com
> Subject: RE: [wp-hackers] Help needed with two issues on established WP
> install
>
> I downloaded and extracted WP2.04 from WordPress.ORG on my test machine
> and there is no mention of either "category_base" or
> "permalink_structure" in the options.php file located in /wp-admin/. I
> searched options.php for "category" and "permalink" as well, again with
> no matches.
>
> Perhaps it's a different file you're thinking of?
>
> -andrew vogel
> Manager of Professional Programs
> University of Cincinnati
> College of Pharmacy
>
>
>> -----Original Message-----
>> From: wp-hackers-bounces at lists.automattic.com
>> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Jamie
>> Holly
>> Sent: Monday, August 21, 2006 4:33 PM
>> To: wp-hackers at lists.automattic.com
>> Subject: RE: [wp-hackers] Help needed with two issues on established
>> WP install
>>
>> They should be there. They are base options for Wordpress that
>> actually stores the permalink structure. These are the same values
>> that are shown on your permalinks page in the Category Base and Custom
>
>> Structure fields accordingly. Even if you select one of the
>> pre-defined structures in the Wordpress options, it will still appear
>> in the Custom Structure field after you click update, as it then
>> updates that option in the database.
>>
>> Jamie Holly
>> http://www.intoxination.net
>>
>> -----Original Message-----
>> From: wp-hackers-bounces at lists.automattic.com
>> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Vogel,
>> Andrew
>> (vogelap)
>> Sent: Monday, August 21, 2006 4:14 PM
>> To: wp-hackers at lists.automattic.com
>> Subject: RE: [wp-hackers] Help needed with two issues on established
>> WP install
>>
>> I went to /wp-admin/options.php, but searching for "category_base" and
>
>> "permalink_structure" both came up with no matches... I've got several
>
>> other files in /wp-admin/ that are options-*.php -- like discussion,
>> general, head, misc, permalink, reading, and writing -- could it be in
>
>> one of those?
>>
>> -andrew vogel
>> Manager of Professional Programs
>> University of Cincinnati
>> College of Pharmacy
>>
>>
>> > -----Original Message-----
>> > From: wp-hackers-bounces at lists.automattic.com
>> > [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Jamie
>> > Holly
>> > Sent: Monday, August 21, 2006 1:47 PM
>> > To: wp-hackers at lists.automattic.com
>> > Subject: RE: [wp-hackers] Help needed with two issues on
>> established
>> > WP install
>> >
>> > Last option I can think of. Go to /wp-admin/options.php.
>> Look for the
>> > following:
>> >
>> > category_base (delete anything in this box)
>> >
>> > permalink_structure Paste the following into that box:
>> >
>> > /%year%/%monthnum%/%day%/%postname%/
>> >
>> > After that go to your options->permalinks page. You don't need to
>> > click the update button, as it will do it automatically for you.
>> >
>> > This will set you back to the standard Date and name based
>> permalinks.
>> > See if that is causing problems for you.
>> >
>> > I tried your .htaccess in one of my virtual hosts and it
>> worked fine.
>> > Of course you could have some plugin messing with things so
>> you might
>> > want to try and disable all of those and re-enable them one by one
>> > trying things out.
>> >
>> >
>> >
>> > Jamie Holly
>> > http://www.intoxination.net
>> >
>> > -----Original Message-----
>> > From: wp-hackers-bounces at lists.automattic.com
>> > [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf
>> Of Vogel,
>> > Andrew
>> > (vogelap)
>> > Sent: Monday, August 21, 2006 1:29 PM
>> > To: wp-hackers at lists.automattic.com
>> > Subject: RE: [wp-hackers] Help needed with two issues on
>> established
>> > WP install
>> >
>> > I believe the problem existed prior to the inclusion of the
>> WPGallery
>> > stuff (even under previous versions of Fedora Core and
>> WordPress, I've
>> > always had "Almost Pretty" permalinks), but I will remove
>> it and try
>> > again just to be sure...
>> >
>> > ... I removed it and got the 404 again. I don't believe it's the
>> > WPGallery stuff in .htaccess.
>> >
>> > -andrew vogel
>> > Manager of Professional Programs
>> > University of Cincinnati
>> > College of Pharmacy
>> >
>> >
>> > > -----Original Message-----
>> > > From: wp-hackers-bounces at lists.automattic.com
>> > > [mailto:wp-hackers-bounces at lists.automattic.com] On
>> Behalf Of Jamie
>> > > Holly
>> > > Sent: Monday, August 21, 2006 1:22 PM
>> > > To: wp-hackers at lists.automattic.com
>> > > Subject: RE: [wp-hackers] Help needed with two issues on
>> > established
>> > > WP install
>> > >
>> > > Whenever you go to the permalinks page it does a
>> > flush_rewrite rules,
>> > > which basically rewrites the #begin Wordpress section in
>> > .htaccess to
>> > > what you have Wordpress permalinks set at. I noticed you
>> were using
>> > > other rewrites for gallery. Just a quick question - have
>> you tired
>> > > removing that section and seeing if that corrects it? I
>> am not that
>> > > great on rewrite rules so I could be overlooking something
>> > in it that
>> > > could be causing the problem.
>> > >
>> > > Jamie Holly
>> > > http://www.intoxination.net
>> > >
>> > > -----Original Message-----
>> > > From: wp-hackers-bounces at lists.automattic.com
>> > > [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf
>> > Of Vogel,
>> > > Andrew
>> > > (vogelap)
>> > > Sent: Monday, August 21, 2006 1:07 PM
>> > > To: wp-hackers at lists.automattic.com
>> > > Subject: RE: [wp-hackers] Help needed with two issues on
>> > established
>> > > WP install
>> > >
>> > > Hrm. That didn't work. Extremely perplexing and more than
>> a little
>> > > frustrating!
>> > >
>> > > Here's what I tried:
>> > >
>> > > * backup WP database
>> > > * cd /var/www/html/
>> > > * mv .htaccess hta.org
>> > > * touch .htaccess
>> > > * chown .htaccess to webserver
>> > > * chmod 664 .htaccess
>> > > * pico /etc/httpd/conf/httpd.conf:
>> > >
>> > > [snip]
>> > > DocumentRoot "/var/www/html"
>> > > # First, we configure the "default" to be a very
>> restrictive set of
>> > > features.
>> > > #
>> > > <Directory />
>> > >     Options FollowSymLinks
>> > >     AllowOverride None
>> > > </Directory>
>> > >
>> > > # This should be changed to whatever you set DocumentRoot to.
>> > > <Directory "/var/www/html">
>> > >     Options Indexes FollowSymLinks Includes ExecCGI
>> > >     AllowOverride None <------ this is the line to be changed
>> > >     AcceptPathInfo On
>> > >     Order allow,deny
>> > >     Allow from all
>> > > </Directory>
>> > > [snip]
>> > >
>> > > ...to...
>> > >
>> > > [snip]
>> > > DocumentRoot "/var/www/html"
>> > > # First, we configure the "default" to be a very
>> restrictive set of
>> > > features.
>> > > #
>> > > <Directory />
>> > >     Options FollowSymLinks
>> > >     AllowOverride None
>> > > </Directory>
>> > >
>> > > # This should be changed to whatever you set DocumentRoot to.
>> > > <Directory "/var/www/html">
>> > >     Options Indexes FollowSymLinks Includes ExecCGI
>> > >     AllowOverride All <------ this is what I changed the line to
>> > >     AcceptPathInfo On
>> > >     Order allow,deny
>> > >     Allow from all
>> > > </Directory>
>> > > [snip]
>> > >
>> > > * service httpd restart
>> > > * pico /var/www/html/.htaccess -- verified that it had been
>> > written to
>> > > (it had)
>> > > * opened a webbrowser and pointed it to my page,
>> verifying that the
>> > > URL link of an article changed from
>> > > "http://www.drewvogel.com/index.php/2006/08/18/system-strangen
>> > ess/" to "http://www.drewvogel.com/2006/08/18/system->
>> > strangeness/" (it had).
>> > > * I clicked the link and -- KABOOM! -- non-WP 404.
>> > > * I tried to roll-back -- 'mv hta.org .htaccess', re-add
>> > "/index.php"
>> > > to the permalink line, and restart the server, but it
>> > remained broken.
>> > > Once again, simply VISITING
>> > > Options->Permalink is enough to 'break' it.
>> > >
>> > > What does WP write when Options->Permalink is displayed? Is
>> > there some
>> > > way to compare before and after database entries to see
>> > what's getting
>> > > changed? I had to empty and restore my WP database to get it back
>> > > working.
>> > >
>> > > -andrew vogel
>> > > Manager of Professional Programs
>> > > University of Cincinnati
>> > > College of Pharmacy
>> > >
>> > >
>> > > > -----Original Message-----
>> > > > From: wp-hackers-bounces at lists.automattic.com
>> > > > [mailto:wp-hackers-bounces at lists.automattic.com] On
>> > Behalf Of Jamie
>> > > > Holly
>> > > > Sent: Monday, August 21, 2006 12:05 PM
>> > > > To: wp-hackers at lists.automattic.com
>> > > > Subject: RE: [wp-hackers] Help needed with two issues on
>> > > established
>> > > > WP install
>> > > >
>> > > >
>> > > > AllowOverride All
>> > > >
>> > > > That will fix it.
>> > > >
>> > > > Jamie Holly
>> > > > http://www.intoxination.net
>> > > >
>> > > > -----Original Message-----
>> > > > From: wp-hackers-bounces at lists.automattic.com
>> > > > [mailto:wp-hackers-bounces at lists.automattic.com] On
>> > Behalf Of Handy
>> > > > Sent: Monday, August 21, 2006 12:04 PM
>> > > > To: wp-hackers at lists.automattic.com
>> > > > Subject: Re: [wp-hackers] Help needed with two issues on
>> > > established
>> > > > WP install
>> > > >
>> > > > I believe so, yes.  Unfortunately, not at a place where
>> > > it's easy to
>> > > > pop onto my server and check.
>> > > >
>> > > > On 8/21/06, Vogel, Andrew (vogelap)
>> <VOGELAP at ucmail.uc.edu> wrote:
>> > > > >
>> > > > > You may not be "Captain Obvious"...
>> > > > >
>> > > > > <Directory />
>> > > > >     Options FollowSymLinks
>> > > > >     AllowOverride None
>> > > > > </Directory>
>> > > > >
>> > > > > What SHOULD it be? "All"?
>> > > > >
>> > > > > -andrew vogel
>> > > > > Manager of Professional Programs University of Cincinnati
>> > > > > College of Pharmacy
>> > > > >
>> > > > >
>> > > > > > -----Original Message-----
>> > > > > > From: wp-hackers-bounces at lists.automattic.com
>> > > > > > [mailto:wp-hackers-bounces at lists.automattic.com] On
>> > > > Behalf Of Handy
>> > > > > > Sent: Monday, August 21, 2006 11:38 AM
>> > > > > > To: wp-hackers at lists.automattic.com
>> > > > > > Subject: Re: [wp-hackers] Help needed with two issues on
>> > > > established
>> > > > > > WP install
>> > > > > >
>> > > > > > On 8/21/06, Vogel, Andrew (vogelap)
>> > > <VOGELAP at ucmail.uc.edu> wrote:
>> > > > > > >
>> > > > > > > <snip>
>> > > > > > >
>> > > > > > > 2. I've got my Permalinks set to Custom ("Almost
>> > Pretty") and
>> > > > > > > "/index.php/%year%/%monthnum%/%day%/%postname%/". The goal
>> > > > > > is to get
>> > > > > > > rid of the "/index.php" from my permalinks to make them
>> > > > > > "Pretty". As
>> > > > > > > long as I do not visit Options->Permalinks, my site
>> > > > > > functions as expected.
>> > > > > > > However, if I VISIT Options->Permalinks, my site's
>> > > > permalinks stop
>> > > > > > > functioning unless I set them to Default (I don't
>> even have
>> > > > > > to click
>> > > > > > > "Update Permalinks Settings"; simply visiting the
>> > > > > > Options->Permalinks
>> > > > > > > page breaks permalinks), which breaks internal links in my
>> > > > > > site. This
>> > > > > > > is 100% reproducible. The .htaccess file is 664 and
>> > > > > > writable by the server.
>> > > > > > >
>> > > > > > > </snip>
>> > > > > > >
>> > > > > >
>> > > > > > I'm willing to be all wet here with the "Captain Obvious"
>> > > > > > post... but FC5 has AllowOverrides off by default in
>> > the apache
>> > > > > > configs.  Have you specifically re-enabled it?
>> > > > > > _______________________________________________
>> > > > > > wp-hackers mailing list
>> > > > > > wp-hackers at lists.automattic.com
>> > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> > > > > >
>> > > > > _______________________________________________
>> > > > > wp-hackers mailing list
>> > > > > wp-hackers at lists.automattic.com
>> > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> > > > >
>> > > > _______________________________________________
>> > > > wp-hackers mailing list
>> > > > wp-hackers at lists.automattic.com
>> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> > > >
>> > > > _______________________________________________
>> > > > wp-hackers mailing list
>> > > > wp-hackers at lists.automattic.com
>> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> > > >
>> > > _______________________________________________
>> > > wp-hackers mailing list
>> > > wp-hackers at lists.automattic.com
>> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> > >
>> > > _______________________________________________
>> > > wp-hackers mailing list
>> > > wp-hackers at lists.automattic.com
>> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> > >
>> > _______________________________________________
>> > wp-hackers mailing list
>> > wp-hackers at lists.automattic.com
>> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> >
>> > _______________________________________________
>> > wp-hackers mailing list
>> > wp-hackers at lists.automattic.com
>> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>> >
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 



More information about the wp-hackers mailing list