{"id":2336,"date":"2007-05-22T18:11:06","date_gmt":"2007-05-22T12:41:06","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/2007\/05\/got-unusual-wordpress-bugs-check-wp-files-on-server\/"},"modified":"2020-05-24T09:58:27","modified_gmt":"2020-05-24T04:28:27","slug":"got-unusual-wordpress-bugs-check-wp-files-on-server","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2007\/05\/got-unusual-wordpress-bugs-check-wp-files-on-server\/","title":{"rendered":"Got Unusual WordPress Bugs : Check WP Files on Server"},"content":{"rendered":"<p>I recently upgraded to WordPress 2.2, a <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/05\/wordpress-22-is-mandatory-security-upgrade\/#comment-296476\">recommended security upgrade<\/a> for all bloggers. Everything went fine on installation (and database upgrade) as per official upgrade instructions. And then a <strong>wordpress bug<\/strong> strikes my post editor! I tried to figure out the problem and realized it was not a bug after all&#8230;<\/p>\n<h3>Is it a wordpress bug?<\/h3>\n<p>In my post editor screen, when I switched from &#8220;visual&#8221; to &#8220;code&#8221;, all formatting buttons disappeared (even the <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/02\/hidden-formatting-buttons-in-wordpress-21-post-editor\/\">hidden formatting buttons<\/a>) and I could not switch back to Visual editor. Things were fine after &#8220;save and continue editing&#8221; the post, just to recur again on switching to &#8220;Code&#8221; view. Sometimes Firefox acts funny, but the problem was reproducible on IE7 too.<\/p>\n<h3>Seeking wordpress support<\/h3>\n<p>I shouted out on WordPress Trac and WordPress support forums about the issue, but no one else seemed to be affected. Some advised the standard &#8220;clear cache and restart browser&#8221;, others advised other complex <strong>php code editing<\/strong> which was too tricky to do (and understand and risk!). None seemed to help.<\/p>\n<h3>Fixing WordPress Bugs<\/h3>\n<p>It seemed to affect only me so I decided to <strong>recheck the wordpress installation<\/strong> and database (which was without any problems!). I used my trusted <a href=\"http:\/\/filezilla.sourceforge.net\/\" rel=\"noopener\">Filezilla<\/a> FTP software to check out the files and folders.<\/p>\n<p>First I checked the number of all files and the <strong>total files on server correctly matched<\/strong> the original WordPress number. So all the WP files had been installed. Great. Then I carefully proceeded to check the total file sizes of these files for every folder and one folder size was not matching.<\/p>\n<p>One javascript file deep inside <em>wp-includes<\/em> showed that the file was installed, but its <strong>size was zero<\/strong>. I simply overwrite the file from the original, and the post editor was back to normal. I really don&#8217;t know why this should have happened at all, but the file installed as an empty file (maybe you can comment why).<\/p>\n<h3>WordPress Lesson Learnt<\/h3>\n<p>This incident highlights the fact that the <strong>problem could be specific to your installation<\/strong>. Double check your installation, if you feel the problem is specific to you. After so many upgrades, This is the first time I needed to recheck my wordpress installation files one by one for size, even after the total number of files matched. But now I know that if an unusual wordpress bug strikes, the problem could have been during FTP. I am glad I tried this out.<\/p>\n<p>Yet if you cannot figure out the problem, seek <a href=\"https:\/\/wordpress.org\/support\/\" rel=\"noopener\">wordpress support<\/a> from the community. Always back up your blog. You never know&#8230; its your blog, take care of it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently upgraded to WordPress 2.2, a recommended security upgrade for all bloggers. Everything went fine on installation (and database&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[17],"class_list":["post-2336","post","type-post","status-publish","format-standard","hentry","category-blogging","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/2336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=2336"}],"version-history":[{"count":0,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/2336\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=2336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=2336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=2336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}