I’m not sure when it happened, but the first thing I did this morning (without opening up the site first) was try to pull in a category ID on a single template.
I had:
$cat = get_the_category(); $cat = $cat[0];
then added: global $cat = $cat[0];
because the scope wasn’t working. The article page did go white due to a php error. But this category problem could have been happening before and I wouldn’t have noticed it.
Please, please help!
did you try resetting permalinks?
admin – settings – permalinks
No, that didn’t work.
I’m running these on an IIS server if this helps.
It is happening to all installations, even the older ones. Anything that references a category. I did find an error generated on one such older installation:
WordPress database error: [Can't create/write to file 'C:\WINDOWS\TEMP\#sql_724_0.MYD' (Errcode: 17)]
Looked inside that folder and it’s garbled wordpress code – no specific page. Just looked like a dump of one site’s code.
then try running a repair on the db with phpmyadmin
Figured it out. Basically, one of our editors pasted in copy from Microsoft Word – our server freaked and thought it was a virus. We removed the .myd file and all was good.
The reference I used to figure this out.
We deleted the file and have now excluded this folder from our McCaffe scan.
All entries are now categorized and all category issues have been righted instantly after deleting that file.
Thanks. Hope this helps someone some day 🙂
Excellent! Glad you came back with the resolution. Windows servers are always a handful, eh?
Unfortunately yes, if I had it my way – we would be on Apache. I miss having an .htacess file.