If you work with solidity and truffle and you get the following error message form web3.js :
Invalid number of arguments to Solidity function
It can be resulted because something has gone corrupted in the build folder during the last build process. So simply delete the build folder and run:
truffle migrate --reset --compile-all