What’s causing this error? “Warning: Invalid argument”

This is most likely caused by a plugin. Deactivate them all, and reactivate one by one.