Forum Replies Created

Viewing 15 replies - 61 through 75 (of 95 total)
  • Here’s a much better way to accomplish this:
    http://comox.textdrive.com/pipermail/wp-hackers/2007-November/016104.html

    If you’re using a static page for your front page, then you need to figure out the ID of that static page – let’s say it’s 23 – and use this:

    if (is_page(’23’)) { … }

    This works fine in WP 2.3.1

    Forum: Fixing WordPress
    In reply to: Category feeds

    get_category_rss_link() is not documented in the codex, as far as I can tell.

    Does anyone know if it’s possible to have get_category_rss_link() render a link starting with “feed:” rather than “http:” ?

    Thanks.

    Thread Starter shacker

    (@shacker)

    Oops, looks like I didn’t search the right places. Thanks for that – tons of helpful stuff there. Thanks!

    Thread Starter shacker

    (@shacker)

    Interesting – Thanks for that. So is there an is_tag() conditional I can use for template routing? I don’t see any mention of it in the codex.

    Forum: Fixing WordPress
    In reply to: What is this hack?
    Thread Starter shacker

    (@shacker)

    Yes, you are.

    I don’t believe that – this was clearly a well-executed exploit of some known issue. I may be the only person looking at this thread having this experience, but definitely not the only person. This hack was too well-crafted.

    And nobody can look at your code for you. If the functionality exists, then it exists on the site.

    I don’t expect anyone to look at my code! I’m just looking for tips on where else to look, since I’ve tried all of the obvious things. That’s what communities are for.

    OK, an update: Since I had grepped everything every which way to Sunday, I dropped all Akismet spam, did a mysqldump, and searched that for the terms in question. I found them in a VERY long INSERT INTO wp_options statement, connected with Magpie RSS. The blog in question is using the RSS module for sidebar widgets, so I’m wondering whether there could have been an exploit in that. Anyway, that gave me a clue, so I found every row in the table that mentioned Magpie and deleted them. Was sure that would fix it, but nope – the problem persisted.

    Then I thought there must be an RSS cache somewhere, but could not find one.

    Finally I backed up the DB, did an XML export, moved the install out of the way, dropped the db, and started over. After importing the XML into a fresh copy of WP, the problem went away. This means one of two things: A) The problem was in a file that the 2.3 upgrade didn’t touch (and that was grep resistant) or B) the problem data was still in the database, but obfuscated so as to not be searchable. And it must have been some data that the XML exporter didn’t export.

    So now the blog is clean again. I’ve changed the mysql password, and am not using the RSS sidebar widgets until I find out more. But I’m having trouble finding out more – just can’t find a reference to this problem anywhere. Very weird.

    Scot

    Forum: Fixing WordPress
    In reply to: What is this hack?
    Thread Starter shacker

    (@shacker)

    Upgraded to 2.3 – the hack persists. Deactivated all plugins – the hack persists.

    This is a serious, and very mysterious hack. Am I really the only person experiencing this?

    Forum: Fixing WordPress
    In reply to: What is this hack?
    Thread Starter shacker

    (@shacker)

    Otto – .htaccess was the first place I looked, and it’s pristine. No redirection going on there. And there are no other .htaccess files up the file tree to the docroot. I’ve also grepped the httpd.conf files for “pills” but there’s no trace.

    Doesn’t WP also have its own built-in redirection mechanism? I’m wondering whether that’s in play here (as I can’t think of any other way for redirection to occur). Anywhere else you can think of in a WP install that might handle or manage redirection?

    Thanks.

    racerman – So far so good – no more issues that I’ve encountered.

    stml – You’re right – the Preview Theme plugin is broken with WP 2.1. I found an updated version that does work with 2.1:

    http://themey.com/preview-theme-plugin/

    Surprised Ryan Boren hasn’t updated his. But the other one does work.

    racerman: As above:

    I just upgraded PHP from 5.2.1 to 5.2.2

    Interesting read. However, I have not experienced the “blank page” or “corrupted cache” phenomenon described in various places. In my case, I simply wasn’t getting pages cached. Or rather, cached pages were showing up the cache directory, but viewing source at the end of the page (after reloading) often did not show “Served from cache” – it was simply failing to load the cached version of the file most of the time. The PHP upgrade fixed that.

    Separately, this caching business is not just a convenience – it’s a critical piece of functionality for a lot of sites. The fact that the WP-Cache developer has shut the project is very bad news. Any word on movement from automattic to incorporate this kind of genuine caching into core? If WP 2.3 or whatever breaks WP-Cache, a lot of high-traffic / high-vis sites are going to be royally screwed.

    Ooh – I just upgraded PHP from 5.2.1 to 5.2.2 and the problem went away. I see from the changelog that they addressed some issues with output buffering in 5.2.2 and that seems (seems) to have fixed this issue. Crossing fingers that this is it.

    maciekkus –

    I’m having very weird issues with WP-Cache, using PHP 5.2.1 on OS X Server. The behavior seems intermittent. On some days, I found that the cache dir is populated and the WP-Cache admin shows the files cached, but live pages are not actually be served from cache. On other days (today) I find that the cache dir is populated, but no pages show as cached on the WP-Cache back-end and no pages are served from cache. Yesterday everything was happily working, but today it’s broken again. Very weird.

    I’ve made the changes you recommend, but no dice – just can’t get it working today. Further suggestions very welcome. Any word on whether Automattic might pick up and integrate this code? This is a critical component, which I feel should be in core.

    Here’s a similar poll that doesn’t require registration to vote:

    http://birdhouse.org/blog/2007/06/26/links-or-bookmarks/

Viewing 15 replies - 61 through 75 (of 95 total)