
k.rudnik at gmail
Jun 20, 2010, 3:43 PM
Post #3 of 7
(715 views)
Permalink
|
Sorry, I've made a mistake: the problem concerns status_msg /not send_msg/ I have TeX action (based on DTDValidate) It uses an external module TeXJob which compiles the stories. It sometimes calls status_msg to show what is going on. Everything was OK until today: messages were sending to a browser while previewing and to logs (bric_queque.log) while publishing. Today I've modified my templates by adding cover_blazer.mc which calls blaze_another for various cover stories and started getting strange error messages: I have storyA and a cover storyB which depends on storyA I can publish storyA without any problems: storyB gets published as well. Messages sent by status_msg during publishing storyA and storyB are written to bric_queue.log Preview makes problems. When I preview storyA then TeX action on storyA goes cleanly but TeX action on storyB fails with an error: Can't locate object method "apache_req" via package "HTML::Mason::Request" at /usr/local/bric.delta.pl/lib/Bric/App/Util.pm line 660, <GEN7> line 188. I tried to simplify the problem and modified cover_blazer.mc <%init> use Bric::App::Util qw(:browser); status_msg('TEST'); </%init> and I get exactly the same error. When I remove status_msg('TEST'); then previewing goes cleanly - I can see in my browser messages sent by status_msg from TeX action. I can understand nothing!!! Krzysztof Krzysztof On Sun, Jun 20, 2010 at 8:23 PM, David E. Wheeler <david [at] kineticode> wrote: > bric_queued does not run under mod_perl, so you can't use any functions that use mod_perl. Everything is ok when I preview and publish stories unless preview_another is called. [.when publish another is called in both cases (publish/preview) nothing wrong happens: messages are written to logs] when preview > > Best, > > David > > On Jun 20, 2010, at 5:00 AM, Krzysztof Rudnik wrote: > >> Hi, >> >> Sometimes I call send_msg from my templates (when texing is preformed >> down there) >> I get messages in my browser while previewing and in a log file while >> publishing (->bric_queue) - this is perfect. >> >> >> But when preview_another is called I get an error: >> >> Can't locate object method "apache_req" via package >> "HTML::Mason::Request" at >> /usr/local/bric.delta.pl/lib/Bric/App/Util.pm line 660, <GEN9> chunk >> 434. >> >> # line 660 (sub _send_msg) in Bric/App/Util.pm: >> >> my $r = $m->apache_req; >> >> What is going on? >> [ publish_another does't give an error ] >> >> Krzysztof > >
|