Forum Replies Created

Viewing 15 replies - 1 through 15 (of 34 total)
  • There’s a resizeable text box extension for Firefox. That should let you stretch the width, although it wouldn’t be a persistent setting.

    Thread Starter bdjohns1

    (@bdjohns1)

    Ok, I’ve got the workaround – you just need to do the following to make /archives/year/month/post_id permalinks work:

    1) Allow WP to generate a .htaccess.
    2) In that .htaccess file, remove the rewrite rules that take /year/month/day, /year/month/day/feed, /year/month/day/paged. There should be 4 of these rules altogether.
    3) There should be 5 rules left now before the /IfModule tag. In those rules, you should remove one of the paired instances of ([0-9]{1,2})/, then remove &day=$3, and renumber the remaining parameters accordingly.

    You’ll end up with the following:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=35]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /blog/index.php?s=$1 [QSA,L]
    RewriteRule ^archives/category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/category/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^archives/category/(.+)/?$ /blog/index.php?category_name=$1 [QSA,L]
    RewriteRule ^archives/author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/author/([^/]+)/page/?([0-9]{1,})/?$ /blog/index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^archives/author/([^/]+)/?$ /blog/index.php?author_name=$1 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/?$ /blog/index.php?year=$1 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&feed=$4 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&feed=$4 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]+)/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&paged=$4 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]+)/?([0-9]+)?/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&page=$4 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]+)/trackback/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&tb=1 [QSA,L]
    </IfModule>

    Year/month/day permalinks will not work as a result of this change.

    Thread Starter bdjohns1

    (@bdjohns1)

    mda,

    Yep, that appears to be the problem – manually turning a 2-digit post ID into a 3-digit one is working. However, the automatically generated permalinks (ie, the dynamically generated links in post titles in WP itself) are still spitting out 2-digit post IDs. I think this is tripping up some of the rules in .htaccess.

    I just did a little playing around, and I think I can call this a bona-fide bug. WordPress apparently provides default permalinks that are /archives/year/monthnum/day/. This conflicts with my permalink structure, which is /archives/year/monthnum/post_id/ (which is a valid link, as it unambiguously resolves to a single post). WP isn’t catching this and the default htaccess rules are overriding mine.

    Looks like I’m going to have to go in and edit the permalink rules that reference ‘day’ everywhere, or else hack the code to force post IDs to be 3-digit numbers.

    Damn you, WP, for stomping on my link structure! 🙂

    Also, I ran into some 1.2 problems when I tried to upload the ZIP file and unzip it using CPanel’s built in file manager. Something got messed up in there. Unzip the files locally, then mput* the whole enchilada over to your site.

    Thread Starter bdjohns1

    (@bdjohns1)

    Podz,
    Thanks for the recommendation. I wiped the directory and uploaded all of the files via FTP instead of just the ZIP file and opening it in CPanel. At the moment, everything seems to be working OK. I’ve still got to re-install all of my plugins and hacks, but this looks like it helped.
    I think the problem is (like I mentioned) due to DOS-style line endings (CRLF) vs Unix-style (LF) – that caused all the blank lines you saw in the source, and it gets exacerbated when you use the built-in text file editor and/or file uploading utilities built into CPanel. Doesn’t exactly speak well to the robustness of the code (whether it’s WP, CPanel, or even just PHP, I don’t know)…but at least now we know what the solution to the problem is – straight FTP is the way to go.

    Thread Starter bdjohns1

    (@bdjohns1)

    Beats me as to how the whitepsace got there. I just put the ZIP file up onto the server and used CPanel’s built-in file manager to uncompress everything. Wonder if that causes problems with CRLF vs LF line endings?
    I’ve got a busy day of yardwork ahead, so I’ll try uploading everything manually and let you know how that works if I have a free hour later on tonight. I did see someone had success with a 1.2-mingus version of the wp-login.php file in a separate thread, so I’ll try that as well.

    Thread Starter bdjohns1

    (@bdjohns1)

    Bumping this up – this is a critical bug.

    Thread Starter bdjohns1

    (@bdjohns1)

    Oh, and if you’d like to try it yourself, I created a level-1 user:
    Ben’s weblog wp-login.php
    username: testuser
    password: testuser

    Thread Starter bdjohns1

    (@bdjohns1)

    Already done. Like I said, I’ve searched the site extensively and tried pretty much everything previously suggested.

    2fargon,
    Actually, solutions are not provided in here. I’ve searched several times, and none of the solutions are working. Try searching for “blank”, “blank post.php”, “blank login”, etc. and tell me if *you* find anything helpful aside from a bunch of unanswered posts and what I’ve tried below.
    Here’s the situation:
    Installed 1.3-CVS into a fresh directory (/wordpress, 1.2 is installed in /blog). Made a copy of my old 1.2 DB to use for the upgrade. Upgrade script ran successfully last night, blog views correctly, was able to access the site from home.
    This morning, I’m at the office, decide to login. “Site Admin” link just dumps me into /wordpress/wp-admin/. Manually trying to reach post.php is doing the same thing. I took a look in my Cookies folder, and it doesn’t look like a cookie is even being set. Just to be safe, I nuked all cookies, but still, no dice. I’ve also tried manually going into the database and turning off/on gzip, since that was mentioned in one place.

    Forum: Plugins
    In reply to: WordPress Wap

    Can someone else post a fresh link to a zip file of wpwap_v2.zip? I’m trying to download it from Ana’s site and it appears to be corrupted. 7-zip and the WinXP-builtin can’t handle it.

    Well, I’ve got a Sony Ericsson T616 (just another version of the T610, really), and I’ve been pretty happy with it. The camera’s sub-par like most phone cameras, but that’s why I’ve got my Casio Exlim Z3, which is the size of an Altoids tin, roughly 🙂
    RF performance is decent, although I tend to lose a GSM1900 signal rather easily indoors, especially in buildings with foil barrier insulation. 800/900 signals tend to penetrate better.
    The one gripe I have is that you have to have a little adapter to use a conventional headset, as SE doesn’t use the standard 3/32″ jack. Bluetooth does work pretty well with it, too, so you don’t have to go hard-wired.

    I just tried those and got 404 errors…

    David,
    I’d be interested in seeing the code. I’ve actually updated my own version as well to use $wpdb, but I’d be interested in incorporating any of your improvements. I’ve only been seeing a few referer spams lately, so that section of code hasn’t gotten a lot of work.
    What might be a more efficient thing to do is white-list certain “good” referers without doing a check-back. Sites like the major search engines, and sites you know generate links (like in my case, wp, ipodlounge, head-fi, etc) to you. Then, use the “load-and-check” function already in the code for other sites.

    Forum: Themes and Templates
    In reply to: wp Zen Garden!

    I’m not disputing the value of using the default template. I just think we should include designs which touch index.php as well. Showing an example of a plug-in/hack is nice, but showing how a collection of them can come together in a different (not to say better or worse) type of layout not possible with the content blocks available in the stock index is IMO a great demonstration of what WP can do.

Viewing 15 replies - 1 through 15 (of 34 total)