OK it was a server problem. I had course listing problem and courses could be found by course search but were not listed under categories. Partition of temp dir was full. Automatic script wrote things to the wrong partition. There was several other problems too!
Teemu
General developer forum
get_courses_page doesn't work always
This discussion has been locked so you can no longer reply to it.