The glitch that blocked entry from Friendly Competitions in Pokémon Sun and Moon has been resolved. When a player scanned a QR code for a Friendly Competition before the competition actually started, the issue in question sometimes removed players from eligibility to enter the competition and prevented them from playing when the competition began. However, players can rest assured that they should no longer encounter this problem going forward.
Source: Serebii