solved the problem: disabled all plugins one by one except QSM and checked. The culprit was wp-super-cache. It is installed by default by Dreamhost.
Now all other plugins are installed and activated including this QSM except wp-super-cache, and everything is working.