Although I've seen an issue mentioning that anonymous blogs are never allowed, I believe we (meaning me & my company) have got a few anonymous blog entries either grandfathered in from older versions (originally Drupal 4.6/4.7; we're on 5.7 right now) or somehow created that way, across several websites. I don't actually know how these entries were created anonymously, but there is nevertheless anonymous content on our websites, and while there is no such thing as user/0 (and therefore blog/0), these entries, when viewed, have in their $links a link to "'s blog" (apostrophe s, space, blog), attempting to link to blog/0.
I realize the problem is in the content. But it seems like it might be a good idea to try to catch this weird behavior and attempt to ameliorate it. Instead of using just $node->name or $account->name to fill in the user's name, is it possible to use the syntax as seen in the user module, e.g. array('@username' => $node->name ? $node->name : variable_get("anonymous", t("Anonymous")))?
This still doesn't address what to do with the attempted link, but it's a start. Hopefully others can help.
Comments
Comment #1
hackwater commentedI didn't even consider that the anonymous entries were probably created by a normal user and then were made anonymous when that user was deleted. So that explains *how* that happens, but not how it should be handled...
Comment #2
ainigma32 commented@jhereg69: can you confirm this problem still exists in the current version (i.e. 5.12) ?
- Arie
Comment #3
ainigma32 commentedLooks like jhereg69 won't be posting any feedback so I'm setting this to fixed.
Feel free to reopen if you think that is wrong.
- Arie