Laudanum
The main problem is that opium causes addiction. This was only understood in the 19th century. Towards the end of the 19th century, there were good alternative drugs. England banished opiates from open sale in the 1920s, and Germany regulated their use in 1929.