I encountered the same issue after upgrade to 5.2 , the solution was to remove deprecated lines related to sefparams in the MenuRules.php