Tue, 21 Aug 2007 19:53:00 GMT

Why my Typo is still busted

It seems that the reason my Typo install has been busted for so long on DH here, is that during some database migration in the past DH's ruthless ruby killer decided that I shouldn't be taking so long in updating my database and killed the process, but somehow upped the migration number. When I went through the database by hand and checked all the tables it became clear very quickly that this had been the case. My tables were severely out of date. Several had multiple fields missing or mis-sized. Once I added/modified these tables everything seems to be running smoother. This brings up another problem.


Here's an exercise for the reader: Why the heck doesn't Rails/Typo report such an error? (Missing fields in the database)


Update: Well, I said it's more stable, but what does it do as soon as I tried to post? Crash! 500! I'm posting this from the phpMyAdmin interface now. Where did Web 2.0 go wrong?

arg.


Update: After running a manual sweep of the tmp/cache directory (DH would kill any rake task trying to do so), my blog became again, more responsive. I'll have to add a cronjob to clean it out manually every night.


Update: Here's my new nightly regiment:

rake tmp:clear
rake tmp:create
rake sweep_cache
rake db:sessions:clear
rake log:clear


Thu, 21 Jun 2007 19:14:00 GMT

Typo 4.1.1 Sidebar is busted

I've been chronicling my mid-adventures in trying to edit my Sidebar (the column you see to the right of this text) over at the Typo Forums for posterity's sake. It would seem that any "stable" release would not have this issue. I'm beginning to think that there's some sort of hidden gem version number dependency that no one mentioned on Typo's site. In the end, it is perfectly possible to hand edit the MySQL data to add back my Sidebar items.

Update: I've found that I can get to a semi-stable point by doing the following:
cd $YOUR_TYPO_DIR
rake -f Rakefile sweep_cache
rake -f Rakefile tmp:clear
killall -USR1 /usr/bin/ruby1.8
killall -USR1 /usr/bin/ruby
Then goto your admin/sidebar interface and add/delete/modify your entry. Hit "Publish" and it should work. However, if you change something and hit it again, it will fail. You'll have to reload the page so that the "Changes Published" (i.e. the flash) is empty.