Why does my river change itself into a big, flat (with some bumps) square when i use the ocean modifier? I already tried to apply the scale, but unfortunately nothing's changed. How can i fix this problem?
By default, the Ocean modifier is set to generate its own geometry and discard whatever you're applying it on.

To have it use your existing geometry, just Generate to Displace: