Problem solved. require_once needs a path, not an URL.
Josh
As I said, I checked the URL. The output is the same, with or without the extra slash. Anyway, as the codex says plugins_url() returns the URL with a trailing slash, I’ll consider that and change my code accordingly.
However, the error is still there.