Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I came across the problem and eventually (after a great deal of poking around) found the error was being caused by the debian package for wordpress, in combination with php4. Debian uses a separately packaged copy of phpmailer, which is called if you have your wordpress set to email you when new comments are posted. The current version of phpmailer (2.1-1) in debian is no longer php4-compatible. Unfortunately without hard-coding extra error output, this happens totally silently, as the phpmailer require_once gives a parse error.

    Basically there are two workarounds – either switch to using php5 (probably best if you can – php4’s dead, baby, php4’s dead), or replace the debian symlinked class-phpmailer.php and class-smtp.php files with ones from a vanilla wordpress package.

    If you’re not using debian and php4, then I have no idea.

    Matthew

    Bump. I have the following custom addition to my .htaccess to allow for short links, as well as my regular permalinks…

    RewriteRule ^post/([0-9]+)?/?([0-9]+)?/?$ /wp/index.php?p=$1&page=$2 [QSA,L]

    now, if i visit:

    https://carroll.org.uk/?p=68

    the page is displayed correctly, but if I go to

    https://carroll.org.uk/post/68

    the correct post is shown, but the view is like the front page of the site (without comments). any ideas why? anyone?

    Confirmed, I just spent a couple of hours trying to work out why my ‘short link’ secondary rewrite rule that previously let me send short links to my pages using site.tld/post/123 stopped working:

    RewriteRule ^post/([0-9]+)?/?([0-9]+)?/?$ /index.php?p=$1&page=$2 [QSA]

    After reading this, I just removed the 404.php from the template, and now the pages display, although not correctly. It doesn’t correctly show the single page view, but appears like a truncated version of the front-page. I think I’ll take a hike over to trac.

    if you can still get into the admin interface go to options – permalinks set the structure you want, and click ‘update’ – that should sort it out

    for wordpress, the .htaccess lives in the same directory as your blog homepage. you might not be able to see it using ftp, as it’s a hidden file. you’re right, though, it’s probably best to wipe the old one. if you can wipe it from within the admin panel, then wordpress can succesfully write to the file and it and should be able to set up the new permalink settings for you automatically under ‘permalinks’. (you don’t have to cut and paste like 1.2.) hope that helps.

Viewing 5 replies - 1 through 5 (of 5 total)