I gained 22 enchanting levels in the wilderness. When I went back to the town (by using /home at the wild spawn) I lost them all. Returning to the Wilderness did not bring back these levels. Is this glitch common?
This is just a display issue. As soon as you gain any more Xp (from killing a mob or cooking something in a furnace) it will return to normal. Don't worry, it is normal..
Have you tried relogging? There is sometimes a glitch that causes the client to say you have 0 xp but if you pick up another orb or relog the xp comes back.. <,<