Got this error today. The problem is patch 5.0.4 removed the GetMaxDailyQuests() API function (because there are no longer restrictions on how many daily quests you can complete). Temporary fix was to just comment out lines 7495-7497 and add in a value for the daS1 variable (added below).