I have a strange situation. I using the code below in a Java Script file and referencing it from CEWP. For some reason, I can't do Page or Site Action Edit anymore, it does not do nothing. However, if i delete the file or delete the reference from cewp then the page becomes editable. (btw, it's happening regardless of jquery location)
<script src="_layouts/jquery/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="_layouts/jquery/jquery-ui-1.10.4/jquery-ui.min.js" type="text/javascript"></script>
<script src="_layouts/jquery/jquery.SPServices-2014.01.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="_layouts/jquery/jquery-ui-themes-1.10.4/themes/smoothness/jquery-ui.css" />
I added following code but Edit Page still throws an error and does not let edit the page.
$(document).ready(function(){
ExecuteOrDelayUntilScriptLoaded(PostLoad,'SP.js');
});
Here is the error from developer console
SCRIPT5007: Unable to get property 'PageState' of undefined or null reference
sp.ribbon.js, line 2 character 79472