We were having problems getting SPGetCurrentUser to work in SharePoint 2013 but it had worked in SharePoint 2010. We are using SPServices 0.6.1. We kept getting an '_spUserId is undefined' error. We discovered that _spUserId has been deprecated in SP2013 and you are supposed to use _spPageContextInfo.userId instead. We made this substitution in our SPServices library and it solved the problem.
↧