Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a simple custom post type setup with a few custom fields. All seems to be working ok until on the odd occasion I get the dialog box you normally see if you try to navigate away from a post/page with unsaved content. I am trying to navigate away from the page which is what triggers the dialog prompt - but I have already saved my content.

Has anyone previously come across any issue like this?

I think it's isolated to my custom post.

share|improve this question
add comment

2 Answers

Managed to solve this after I got lucky with a random search and found this. Post metadata deletes itself

There's also a decent thread on the problem here: http://stackoverflow.com/questions/2539951/wordpress-add-meta-box-weirdness

share|improve this answer
add comment

I actualy need some more information to help you out with this question. But because of stackexchange "amazing" reputation system I can't comment yet. I thus will answer this question with assuming a lot of stuff, hoping it will help you. If not we can comment on this answer.

For more information on the general message you can go here link. It talks about why, how, and where the messages comes from.

Possible problem/solution 1: The messages has been linked to the TinyMCE Advanced plugin several times. So if you have this plugin installed, please deactivate it and see if this solves your issue. This plugin produces the exact problem you are suggesting every time you navigate away from a post, even if the post has been saved or no changes were ever made.

Futhermore it is always smart to deactive all plugins, and see if this solves the issue. There might be a conflict with one of your plugins

Possible problem/solution 2: When you navigate away from the post/page edit screen, do you use the back/forward button in the explorer? This might conlfict with "save" in wordpress.

share|improve this answer
    
Thanks for your reply Aleks - i've ruled out problem 2 and also tried deactivating plugins - no luck. re: problem 2 - I'm not navigating away via back buttons etc. I'm clicking links within the UI. I also note that when I choose to navigate away WordPress is actually deleting values in custom fields. What's weird is that it is not consistent behaviour. There must be a mistake in my custom post syntax somewhere I'm guessing –  Ed Bloom Jun 28 '12 at 18:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.