I just finished tracking down the very curious bug reported by
phpAdam, producing a strange Invalid Page message on the blog recipe.
To make a long story short, a couple recent fixes to BoltWire combined
to introduce a new problem, but only in a very specific situation. I
think I have it fixed now...

Here's what happened:

In the action.blog page there is this line (actually two, that
triggered the same problem):

[session log_2 "'--{=time_2} - [[~.{id}|{member}]]<br>
[[{=target}|+]]--' flags='top trim=5'
target='site.public.blog.posts'"]

Because of how ' and " are handled now, BoltWire saw a ' and ' at the
beginning and end, and deleted them (normally a very good thing), but
in this situation resulting in a malformed string being sent to the
log engine. A mess. To fix, you simply change it to:

[session log_2 "content='--{=time_2} - [[~.{id}|{member}]]<br>
[[{=target}|+]]--' flags='top trim=5'
target='site.public.blog.posts'"]

I added a hack to the core log function so when BoltWire sees this
kind of thing, it tries to determine if you are using ' or " and then
adds the content= for you automatically, and properly add the quotes.
It's probably not foolproof, but it should catch most cases a user is
likely to try. Just the same, when you are using these inline
parameters like this (which is quite cool) it's probably a really good
idea to make sure all parameters are labeled and have quote marks.
While I checked other commands likely to do this, I couldn't see any
that work exactly the same to cause this.  Still, I wouldn't be
surprized if someone couldn't find another command that could generate
this kind of error.

Just uploaded the revised zip for 2.36 and it all seems to be working.
But I notice the blog comments are not working perfectly. And they
still need to be converted over to use the info vars. I may have some
time this afternoon to fix up these last details, but we're getting
close.  I'll also try and post an outline for the blog tutorial.
Thanks for your patience. If I can't get to it today, it will likely
have to wait till Monday.

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to