Mailing List Archive

[Bricolage-General] Error Handling Callbacks, and general newbieness
Hello,

I am brand new to Bricolage, so forgive me if I am asking the obvious.
I have successfully installed bricolage answering on a virtual host, and
gone through the ElementAdmin guide, following it step by step. So far
so good.

I am running into a snag, though, when I try to publish a page with an
associated media asset, or even trying to publish the media asset by
itself. The error in the log:

Error handling callbacks.: Can't locate object method "get_title" via
package "HTML::Mason::Request::ApacheHandler" (perhaps you forgot to
load "HTML::Mason::Request::ApacheHandler"?) at
/var/www/bricolage/data/obj/BRIC_UI/widgets/publish/callback.mc line 98,
<GEN1049> line 1431.


Before I assume that my configuration is wrong, does this error ring a
bell for anyone?


I have the ultimate goal of porting a rather large site (currently
stored as XML and rendered to html through a series of scripts) to
Bricolage, so I want to be sure that I have my head as fully around it
as possible before starting the heavy lifting.


Thanks in advance for any assistance,

John Greene <jumpingGrendel@sbcglobal.net>



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Bricolage-General mailing list
Bricolage-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-general
Re: [Bricolage-General] Error Handling Callbacks, and general newbieness [ In reply to ]
John,

Quick thought, you might have a too recent install of Mason. The 1.1
family is not compatible.

You can find out the version easily by typing

perl -MHTML::Mason -e 'print "$HTML::Mason::VERSION\n";'

You might have to download and install version 1.05
http://search.cpan.org/CPAN/authors/id/J/JS/JSWARTZ/HTML-Mason-
1.05.tar.gz

Mike



On Tuesday, November 19, 2002, at 07:52 PM, John Greene wrote:

> Hello,
>
> I am brand new to Bricolage, so forgive me if I am asking the obvious.
> I have successfully installed bricolage answering on a virtual host,
> and
> gone through the ElementAdmin guide, following it step by step. So far
> so good.
>
> I am running into a snag, though, when I try to publish a page with an
> associated media asset, or even trying to publish the media asset by
> itself. The error in the log:
>
> Error handling callbacks.: Can't locate object method "get_title" via
> package "HTML::Mason::Request::ApacheHandler" (perhaps you forgot to
> load "HTML::Mason::Request::ApacheHandler"?) at
> /var/www/bricolage/data/obj/BRIC_UI/widgets/publish/callback.mc line
> 98,
> <GEN1049> line 1431.
>
>
> Before I assume that my configuration is wrong, does this error ring a
> bell for anyone?
>
>
> I have the ultimate goal of porting a rather large site (currently
> stored as XML and rendered to html through a series of scripts) to
> Bricolage, so I want to be sure that I have my head as fully around it
> as possible before starting the heavy lifting.
>
>
> Thanks in advance for any assistance,
>
> John Greene <jumpingGrendel@sbcglobal.net>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing
> your web site with SSL, click here to get a FREE TRIAL of a Thawte
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> Bricolage-General mailing list
> Bricolage-General@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bricolage-general
>



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Bricolage-General mailing list
Bricolage-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-general
Re: [Bricolage-General] Error Handling Callbacks, and general newbieness [ In reply to ]
On Tuesday, November 19, 2002, at 04:52 PM, John Greene wrote:

> Before I assume that my configuration is wrong, does this error ring a
> bell for anyone?

Yep, this is a bug. I've fixed it and will commit the change, but in
the meantime, you can apply this patch to
comp/widgets/publish/callback.mc to fix it.

--- callback.mc.~1.15.2.3.~ Sat Nov 9 21:47:46 2002
+++ callback.mc Wed Nov 20 08:35:59 2002
@@ -48,16 +48,16 @@
}

# Get all the related media to be previewed as well
- foreach my $r ($s->get_related_objects) {
- next if (ref $r eq 'Bric::Biz::Asset::Business::Story');
+ foreach my $rel ($s->get_related_objects) {
+ next if (ref $rel eq 'Bric::Biz::Asset::Business::Story');

# Make sure this media object isn't checked out.
- if ($r->get_checked_out) {
+ if ($rel->get_checked_out) {
add_msg('Cannot auto-publish related media &quot;'.
- $r->get_title.'&quot; because it is checked out');
+ $rel->get_title.'&quot; because it is checked out');
next;
}
- $b->preview($r, 'media', get_user_id(), $m, $oc_id);
+ $b->preview($rel, 'media', get_user_id(), $m, $oc_id);
}
# Move out the story and then redirect to preview.
my $url = $b->preview($s, 'story', get_user_id(), $m, $oc_id);

HTH,

David

--
David Wheeler AIM: dwTheory
david@wheeler.net ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: Theory@jabber.org



-------------------------------------------------------
This sf.net email is sponsored by:
Battle your brains against the best in the Thawte Crypto
Challenge. Be the first to crack the code - register now:
http://www.gothawte.com/rd521.html
_______________________________________________
Bricolage-General mailing list
Bricolage-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-general