Wordpress acting weird
Apr 6th, 2007 by Karen
Ever since I upgraded to Wordpress 2.1 (I’m on version 2.1.3 now) the post page in Wordpress has been acting weird. Often when I click the “Save and Continue” or the “Save” button I get a page that says “Are you sure you want to edit this post?”. This happens at random intervals that I can’t explain. However, when it occurs, no matter what I click in the subsequent page I lose my entire post, which is very annoying. I’m not sure if it is a problem with Wordpress or my browser, but is is driving me mad. Others seem to have also experienced this problem and some have attributed it to certain themes using the Prototype javascript library. As far as I can tell the theme I’m using doesn’t use this library. So I don’t think this is the issue. I’m wondering if one of my plugins is messing things up but will need to troubleshoot further to figure it out.


As a data point, I’m running 2.1.3, and have no problem with Firefox or Safari posting on my MacBook.
Hi:
I know what you are talking about, exactly, since I have the same problem, and haven’t been able to fix it. I wish I could give you a solution… Beverly
Yes, this is a problem with the theme you’re using having a prototype.js at the same time as wordpress is using a prototype.js script. What I did was find the prototype.js in my theme files (/your/web/host/yourblog/wp-content/themes/yourtheme/)
and change it’s name to pt.js. I then entered the pt.js file and changed all instances of Prototype or prototype to Pt or pt. I then edited functions.php to reference pt.js instead of prototype.js and everything was happy again. I had this problem with the Tarski theme, but I’d imagine that the solution would work with any theme that uses prototype.js IN THE THEME.
Maybe this will help you.
I have been really frustrated with this problem for a while, until I found your post and this comment (above). I don’t have prototype.js in my theme, but it was in my /wordpress dir/wp-includes/js/ directory. For now, I just DELETED it off the server and I can’t find anything breaking… yet. I thought I read somewhere that this file needs to be reloaded or uploaded in a different format or something…
Anyway, thought I would toss this $0.02 in… thanks!