ERROR: CLASS ‘WP_SESSION_TOKENS’ NOT FOUND
I use a childtheme based on twentyfourteen.
I got two javascript errors:
=====
in file preveter-index.php, line 177

var e = document.getElementsByTagName(‘body’)[0];
e.setAttribute(‘unselectable’,’on’);
This yields error: e is undefined.
I replaced it with:

(function($) {
$(“body”).prop(“unselectable”, “on”);
})(jQuery);
======
in preventer-index.php, line 128:
$(document).keydown(function(event) {
yield error: $ is not a function.
I replaced it with:
jQuery(document).keydown(function(event) {
========
Now it’s fault free

Post a Comment

Previous Post Next Post