Whenever I get an
org-preserve-local-variables error (usually when refiling an item, and usually after a spacemacs update), this is the way to solve it:
cd ~/.emacs.d/elpa find org*/*.elc -print0 | xargs -0 rm
NOTE: where the elpa directory might be in a different location depending which version/branch you’re on. e.g.
And then run
Basically it's removing all of the compiled org files and then compiling them again.