Mailing List Archive

Error on bric_soap media export
Hi,
I'm trying to move a bric site from 1.11.1 to a new server running with bricolage 2.0.0
Now, when I try to export my media I get the following error:

$ bric_soap media export 1096
Call to Bric::SOAP::Media->export failed:

Can't call method "get_name" on an undefined value at /usr/local/share/perl/5.8.8/Bric/SOAP/Media.pm line 1113, <GEN13> line 20.


Check the Apache error log for more detail.
(yet there is not much more information there)

Looking in my database I get

select m.id as mediaid,m.publish_status, mi.id as instance_id, mi.name,mi.version, mt.name from media_instance mi left outer join media_type mt on mt.id = mi.media_type__id join media m on m.id = mi.media__id where m.id = 1096 and m.active='1';
mediaid | publish_status | instance_id | name | version | name
---------+----------------+-------------+-----------------+---------+-----------
1096 | f | 1170 | motifs_template | 1 | image/png
1096 | f | 1183 | motifs_template | 2 | image/png

So, media_type is present and has a name.

Calling it with --without-file works.

Whats wrong ?

Do I need the <file> element when moving to another server ?


P.S. : The installations is bric 1.11.1, yet due to other problems with story export I installed the 2.0.0 libs and binaries.
The 1.11.1 version has the same error.

Regards
Rolf Schaufelberger
Re: Error on bric_soap media export [ In reply to ]
On Oct 24, 2010, at 11:27 AM, Rolf Schaufelberger wrote:

> $ bric_soap media export 1096
> Call to Bric::SOAP::Media->export failed:
>
> Can't call method "get_name" on an undefined value at /usr/local/share/perl/5.8.8/Bric/SOAP/Media.pm line 1113, <GEN13> line 20.

Sounds like a bug. Can you send the stack trace from the error log, please?

Best,

David
Re: Error on bric_soap media export [ In reply to ]
Hi David,

Am 25.10.2010 um 20:03 schrieb David E. Wheeler:

> On Oct 24, 2010, at 11:27 AM, Rolf Schaufelberger wrote:
>
>> $ bric_soap media export 1096
>> Call to Bric::SOAP::Media->export failed:
>>
>> Can't call method "get_name" on an undefined value at /usr/local/share/perl/5.8.8/Bric/SOAP/Media.pm line 1113, <GEN13> line 20.
>
> Sounds like a bug. Can you send the stack trace from the error log, please?
>

don't know if this helps you:


[Sun Oct 24 20:58:06 2010] [error] SOAP::Serializer::envelope: Server Can't call method "get_name" on an undefined value at /usr/local/share/perl/5.8.8/Bric/SOAP/Media.pm line 1113, <GEN21> line 20.
[/usr/local/share/perl/5.8.8/Bric/SOAP/Handler.pm:255]
[/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2838]
[/usr/local/share/perl/5.8.8/SOAP/Lite.pm:1550]
[/usr/local/share/perl/5.8.8/SOAP/Lite.pm:746]
[/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2802]
[/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:406]
[/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2789]
[/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:394]
[/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:717]
[/usr/local/share/perl/5.8.8/Bric/SOAP/Handler.pm:174]
[-e:0]

Rolf Schaufelberger
Re: Error on bric_soap media export [ In reply to ]
On Oct 25, 2010, at 11:12 AM, Rolf Schaufelberger wrote:

> don't know if this helps you:
>
>
> [Sun Oct 24 20:58:06 2010] [error] SOAP::Serializer::envelope: Server Can't call method "get_name" on an undefined value at /usr/local/share/perl/5.8.8/Bric/SOAP/Media.pm line 1113, <GEN21> line 20.
> [/usr/local/share/perl/5.8.8/Bric/SOAP/Handler.pm:255]
> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2838]
> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:1550]
> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:746]
> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2802]
> [/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:406]
> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2789]
> [/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:394]
> [/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:717]
> [/usr/local/share/perl/5.8.8/Bric/SOAP/Handler.pm:174]

No, it doesn't. :-/

David
Re: Error on bric_soap media export [ In reply to ]
Am 25.10.2010 um 22:17 schrieb David E. Wheeler:

> On Oct 25, 2010, at 11:12 AM, Rolf Schaufelberger wrote:
>
>> don't know if this helps you:
>>
>>
>> [Sun Oct 24 20:58:06 2010] [error] SOAP::Serializer::envelope: Server Can't call method "get_name" on an undefined value at /usr/local/share/perl/5.8.8/Bric/SOAP/Media.pm line 1113, <GEN21> line 20.
>> [/usr/local/share/perl/5.8.8/Bric/SOAP/Handler.pm:255]
>> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2838]
>> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:1550]
>> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:746]
>> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2802]
>> [/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:406]
>> [/usr/local/share/perl/5.8.8/SOAP/Lite.pm:2789]
>> [/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:394]
>> [/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm:717]
>> [/usr/local/share/perl/5.8.8/Bric/SOAP/Handler.pm:174]
>
> No, it doesn't. :-/
>
> David
>

Well, meanwhile I've just replaced the get_name method call with a string 'image/jpg' to export my media.
On the new machine with version 2.0.0 the export works, so I think the installation on the old machine has some problems and we forget the problem :-)

Rolf
Re: Error on bric_soap media export [ In reply to ]
On 25/10/2010 23:00, Rolf Schaufelberger wrote:

> Well, meanwhile I've just replaced the get_name method call with a string 'image/jpg' to export my media.
> On the new machine with version 2.0.0 the export works, so I think the installation on the old machine has some problems and we forget the problem :-)

I seem to recall a similar problem in an old version of Bricolage, what
version are you using ?

regards,

Paul
Re: Error on bric_soap media export [ In reply to ]
Am 26.10.2010 um 10:45 schrieb Paul Orrock:

> On 25/10/2010 23:00, Rolf Schaufelberger wrote:
>
>> Well, meanwhile I've just replaced the get_name method call with a string 'image/jpg' to export my media.
>> On the new machine with version 2.0.0 the export works, so I think the installation on the old machine has some problems and we forget the problem :-)
>
> I seem to recall a similar problem in an old version of Bricolage, what version are you using ?
>

The error occurred on 1.11.1 Version,
it doesn't appear on 2.0.0.


> regards,
>
> Paul

rolf
Re: Error on bric_soap media export [ In reply to ]
Hi,

I may report a similar thing:
Can't call method "get_name" on an undefined value at /usr/local/lib/perl5/site_perl/5.8.8/Bric/Biz/Asset/Business.pm line 1254.
Not only it couldn't been exported, I couldn't even check it out.

It happened on 1.10.4. This error survived upgrade to 2.1 until I removed the
associated workflow, completely. Since then I couldn't replay this error. Also the media in
question is deleted.

Rolf, what is your case about checking out media?
Regards, Zdravko


David E. Wheeler wrote:
> On Oct 24, 2010, at 11:27 AM, Rolf Schaufelberger wrote:
>
>> $ bric_soap media export 1096
>> Call to Bric::SOAP::Media->export failed:
>>
>> Can't call method "get_name" on an undefined value at /usr/local/share/perl/5.8.8/Bric/SOAP/Media.pm line 1113, <GEN13> line 20.
>
> Sounds like a bug. Can you send the stack trace from the error log, please?
>
> Best,
>
> David
>
>
Re: Error on bric_soap media export [ In reply to ]
Sorry,
it's me again:
not workflow! Removing Associated Desk cleaned up this error!

Zdravko Balorda wrote:
>
> Hi,
>
> I may report a similar thing:
> Can't call method "get_name" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.8.8/Bric/Biz/Asset/Business.pm line 1254.
> Not only it couldn't been exported, I couldn't even check it out.
>
> It happened on 1.10.4. This error survived upgrade to 2.1 until I
> removed the
> associated workflow, completely. Since then I couldn't replay this
> error. Also the media in
> question is deleted.
>
> Rolf, what is your case about checking out media?
> Regards, Zdravko
>
>
> David E. Wheeler wrote:
>> On Oct 24, 2010, at 11:27 AM, Rolf Schaufelberger wrote:
>>
>>> $ bric_soap media export 1096
>>> Call to Bric::SOAP::Media->export failed:
>>>
>>> Can't call method "get_name" on an undefined value at
>>> /usr/local/share/perl/5.8.8/Bric/SOAP/Media.pm line 1113, <GEN13>
>>> line 20.
>>
>> Sounds like a bug. Can you send the stack trace from the error log,
>> please?
>>
>> Best,
>>
>> David
>>
>>
>
>