Then you need to heed the wise words of Brother Wingerman:
Had three service calls in the last two weeks on overflow/leak of detergent dispenser on front loader washing machines. Customers are putting capsules in dispenser rather than the tub. This causes, in some cases, incomplete desolving of capsule which leads to blockages and overflow. LG has a note/bulletin on the issue. Remains to be seen how the long-term "proper" use of these will effect sensors in the motor.
To learn more about your washer or to order parts, click here.
Source: Capsule Detergent FYI