various bugfix for saving posts
Fix notice
Change error log code.
Remove css