Click here to show or hide the menubar.

Radio2 without its own domain


I'm trying out Radio2 on my fresh server without giving it its own domain.

The question is -- can I use it through the "natural" url.

http://1867.mediahackers.org/radio2/

When I tried to post I got the error everyone gets. "Can't evaluate the expression because the name "postargs" hasn't been defined." Debugged it, and the problem is in radio2suite.main. Why postArgs would ever be defined is a mystery to me, but it's clear what it should contain.

There is code in radio2website.index to set it up, but it's commented out, with no note explaining why it's commented.

Tried adding code to radio2suite.main to set it up if it's not defined.

I believe I know what's going on. When we come in through our own name, we go through mainresponder.respond, but when we come in through /radio2/ we come in through the website framework. The former knows how to deal with multipart forms, the latter does not. We must have switched over to mainresponder at some point, that's when I had to comment out the postArgs stuff in index.

I'm going to try replicating a bit of mainresponder.respond code in radio2suite.main to handle multipart forms if postargs is not defined.

Bing! That did it. I can now post using the "natural" URL. I'll have to poke around and see if anything else breaks.


Posted on Friday, April 13, 2012 at 1:39 PM by Dave Winer.