Still having problems after upgrading new options-permalinks.php this morning.
The errror:
[Tue Mar 9 09:29:06 2004] [alert] [client xx.xxx] /public_html/wordpress/.htaccess: Invalid command 'RewriteRule^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?([0-9]+)?/?$/wordpress/index.php?year=$1&monthnum=$2&day=$3&name=$4&p=$5&page=$6', perhaps mis-spelled or defined by a module not included in the server configuration
That line has no spaces in it, so it looks like one big long invalid command. It should look like this:
RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?([0-9]+)?/?$ /wordpress/index.php?year=$1&monthnum=$2&day=$3&name=$4&p=$5&page=$6
Note the space after RewriteRule and after the first dollar sign.
Those spaces are present in the actual file.
Well, Apache is seeing one unbroken line for some reason. RewriteRule is a valid command, but RewriteRule^archives... is not. Perhaps you could edit the file, put in some extra padding, and see what goes down.
Nah, still not working. I've posted to my host about it, in case there's a problem on their end, but he claims it's not (and he's good about admitting problems, etc, and fixing them.) So, it's a mystery.
harpshot
Member
Posted 8 years ago #
You folks have lost me with all that rewrite stuff, but in regard to the original post (about error with the calendar), I could offer this, though I gotta think somebody else has already fixed it:
template-functions-general.php line 343 reads:
$thismonth = ''.zeroise(intval(substr($m, 4, 2), 2));
but probably should be:
$thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2);
Moving that paren two places to the left worked for me.
Thanks harpshot. Fix committed.