I found out that there was no single.php or categories.php template, so I created a single.php by copying index.php but it made no difference.
I’ve discovered that WordPress is installed in a folder called WordPress, but all the links point to the “blog” folder. Could that be the cause of the problem?