Mailing List Archive

Error with bric_media_upload
Hi,
I'm running a bric 2.0.1 system and want to uplpad some pictures with bric_media_upload.
Running it I get the error:
Error create media we_001.jpg: Call to Bric::SOAP::Media->create failed:

Field "resolution" cannot be deleted. There must be at least 1 fields of this type.

In my error log I have:

[Sat Apr 09 19:53:32 2011] [error] SOAP::Serializer::envelope: Server Application error Field "resolution" cannot be deleted. There must be at least 1 fields of this type.\n[/usr/local/bricolage/lib/Bric/Biz/Element/Container.pm:1595]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:546]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:417]\n[/usr/local/bricolage/lib/Bric/SOAP/Media.pm:962]\n[/usr/local/bricolage/lib/Bric/SOAP/Asset.pm:245]\n[/usr/share/perl5/SOAP/Lite.pm:2569]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:327]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:621]\n[/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]\n[-e:0]
[/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:255]
[/usr/share/perl5/SOAP/Lite.pm:2649]
[/usr/share/perl5/SOAP/Lite.pm:1505]
[/usr/share/perl5/SOAP/Lite.pm:761]
[/usr/share/perl5/SOAP/Lite.pm:2624]
[/usr/share/perl5/SOAP/Transport/HTTP.pm:338]
[/usr/share/perl5/SOAP/Lite.pm:2617]
[/usr/share/perl5/SOAP/Transport/HTTP.pm:327]
[/usr/share/perl5/SOAP/Transport/HTTP.pm:621]
[/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]
[-e:0]


Does somebody know whats going wrong here ?

Rolf Schaufelberger
Re: Error with bric_media_upload [ In reply to ]
Do you have a "resolution" field in your XML?

Best,

David

On Apr 9, 2011, at 1:02 PM, Rolf Schaufelberger wrote:

> Hi,
> I'm running a bric 2.0.1 system and want to uplpad some pictures with bric_media_upload.
> Running it I get the error:
> Error create media we_001.jpg: Call to Bric::SOAP::Media->create failed:
>
> Field "resolution" cannot be deleted. There must be at least 1 fields of this type.
>
> In my error log I have:
>
> [Sat Apr 09 19:53:32 2011] [error] SOAP::Serializer::envelope: Server Application error Field "resolution" cannot be deleted. There must be at least 1 fields of this type.\n[/usr/local/bricolage/lib/Bric/Biz/Element/Container.pm:1595]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:546]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:417]\n[/usr/local/bricolage/lib/Bric/SOAP/Media.pm:962]\n[/usr/local/bricolage/lib/Bric/SOAP/Asset.pm:245]\n[/usr/share/perl5/SOAP/Lite.pm:2569]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:327]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:621]\n[/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]\n[-e:0]
> [/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:255]
> [/usr/share/perl5/SOAP/Lite.pm:2649]
> [/usr/share/perl5/SOAP/Lite.pm:1505]
> [/usr/share/perl5/SOAP/Lite.pm:761]
> [/usr/share/perl5/SOAP/Lite.pm:2624]
> [/usr/share/perl5/SOAP/Transport/HTTP.pm:338]
> [/usr/share/perl5/SOAP/Lite.pm:2617]
> [/usr/share/perl5/SOAP/Transport/HTTP.pm:327]
> [/usr/share/perl5/SOAP/Transport/HTTP.pm:621]
> [/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]
> [-e:0]
>
>
> Does somebody know whats going wrong here ?
>
> Rolf Schaufelberger
>
>
>
>
>
Re: Error with bric_media_upload [ In reply to ]
Do you have a "resolution" field in your XML?

Best,

David

On Apr 9, 2011, at 1:02 PM, Rolf Schaufelberger wrote:

> Hi,
> I'm running a bric 2.0.1 system and want to uplpad some pictures with bric_media_upload.
> Running it I get the error:
> Error create media we_001.jpg: Call to Bric::SOAP::Media->create failed:
>
> Field "resolution" cannot be deleted. There must be at least 1 fields of this type.
>
> In my error log I have:
>
> [Sat Apr 09 19:53:32 2011] [error] SOAP::Serializer::envelope: Server Application error Field "resolution" cannot be deleted. There must be at least 1 fields of this type.\n[/usr/local/bricolage/lib/Bric/Biz/Element/Container.pm:1595]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:546]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:417]\n[/usr/local/bricolage/lib/Bric/SOAP/Media.pm:962]\n[/usr/local/bricolage/lib/Bric/SOAP/Asset.pm:245]\n[/usr/share/perl5/SOAP/Lite.pm:2569]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:327]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:621]\n[/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]\n[-e:0]
> [/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:255]
> [/usr/share/perl5/SOAP/Lite.pm:2649]
> [/usr/share/perl5/SOAP/Lite.pm:1505]
> [/usr/share/perl5/SOAP/Lite.pm:761]
> [/usr/share/perl5/SOAP/Lite.pm:2624]
> [/usr/share/perl5/SOAP/Transport/HTTP.pm:338]
> [/usr/share/perl5/SOAP/Lite.pm:2617]
> [/usr/share/perl5/SOAP/Transport/HTTP.pm:327]
> [/usr/share/perl5/SOAP/Transport/HTTP.pm:621]
> [/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]
> [-e:0]
>
>
> Does somebody know whats going wrong here ?
>
> Rolf Schaufelberger
>
>
>
>
>
Re: Error with bric_media_upload [ In reply to ]
> Do you have a "resolution" field in your XML?
>
> Best,
>
> David
>
I call it with :

./bricolage-2.0.1/contrib/bric_media_upload/bric_media_upload --target-username myuser --target-password blahblah --media-type galleryImage --site mySite --bric_soap /usr/local/bricolage/bin/bric_soap src/galerien/ http://bric.mysite.de


The media-type galleryImage is an element-type of content-type Image

This is the resulting XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assets xmlns="http://bricolage.sourceforge.net/assets.xsd">
<media id="" element="galleryImage">
<site>Wandelt</site>
<name>we_001.jpg</name>
<description></description>
<uri>/we_001.jpg</uri>
<priority>3</priority>
<active>1</active>
<source>Internal</source>
<cover_date>2011-04-10T12:20:26Z</cover_date>
<publish_status>0</publish_status>
<category>/</category>
<contributors></contributors>
<elements></elements>
<file>
<name>we_001.jpg</name>
<size>20541</size>
<data> …</data>
</file>
</media>
</assets>



> On Apr 9, 2011, at 1:02 PM, Rolf Schaufelberger wrote:
>
>> Hi,
>> I'm running a bric 2.0.1 system and want to uplpad some pictures with bric_media_upload.
>> Running it I get the error:
>> Error create media we_001.jpg: Call to Bric::SOAP::Media->create failed:
>>
>> Field "resolution" cannot be deleted. There must be at least 1 fields of this type.
>>
>> In my error log I have:
>>
>> [Sat Apr 09 19:53:32 2011] [error] SOAP::Serializer::envelope: Server Application error Field "resolution" cannot be deleted. There must be at least 1 fields of this type.\n[/usr/local/bricolage/lib/Bric/Biz/Element/Container.pm:1595]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:546]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:417]\n[/usr/local/bricolage/lib/Bric/SOAP/Media.pm:962]\n[/usr/local/bricolage/lib/Bric/SOAP/Asset.pm:245]\n[/usr/share/perl5/SOAP/Lite.pm:2569]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:327]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:621]\n[/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]\n[-e:0]
>> [/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:255]
>> [/usr/share/perl5/SOAP/Lite.pm:2649]
>> [/usr/share/perl5/SOAP/Lite.pm:1505]
>> [/usr/share/perl5/SOAP/Lite.pm:761]
>> [/usr/share/perl5/SOAP/Lite.pm:2624]
>> [/usr/share/perl5/SOAP/Transport/HTTP.pm:338]
>> [/usr/share/perl5/SOAP/Lite.pm:2617]
>> [/usr/share/perl5/SOAP/Transport/HTTP.pm:327]
>> [/usr/share/perl5/SOAP/Transport/HTTP.pm:621]
>> [/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]
>> [-e:0]
>>
>>
>> Does somebody know whats going wrong here ?
>>
>> Rolf Schaufelberger
>>
>>
>>
>>
>>
>

Mit freundlichen Grüßen
Rolf Schaufelberger
Geschäftsführer

plusW GmbH
Vorstadtstr. 61 -67 Tel. 07181 47 47 305
73614 Schorndorf Fax. 07181 47 45 344

www.plusw.de
www.mypixler.com
www.calendrino.de
Re: Error with bric_media_upload Solved [ In reply to ]
Ok, I just had to add the --media-info option and so it worked.

Am 10.04.2011 um 12:37 schrieb Rolf Schaufelberger:

>
>> Do you have a "resolution" field in your XML?
>>
>> Best,
>>
>> David
>>
> I call it with :
>
> ./bricolage-2.0.1/contrib/bric_media_upload/bric_media_upload --target-username myuser --target-password blahblah --media-type galleryImage --site mySite --bric_soap /usr/local/bricolage/bin/bric_soap src/galerien/ http://bric.mysite.de
>
>
> The media-type galleryImage is an element-type of content-type Image
>
> This is the resulting XML:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>
> <assets xmlns="http://bricolage.sourceforge.net/assets.xsd">
> <media id="" element="galleryImage">
> <site>Wandelt</site>
> <name>we_001.jpg</name>
> <description></description>
> <uri>/we_001.jpg</uri>
> <priority>3</priority>
> <active>1</active>
> <source>Internal</source>
> <cover_date>2011-04-10T12:20:26Z</cover_date>
> <publish_status>0</publish_status>
> <category>/</category>
> <contributors></contributors>
> <elements></elements>
> <file>
> <name>we_001.jpg</name>
> <size>20541</size>
> <data> …</data>
> </file>
> </media>
> </assets>
>
>
>
>> On Apr 9, 2011, at 1:02 PM, Rolf Schaufelberger wrote:
>>
>>> Hi,
>>> I'm running a bric 2.0.1 system and want to uplpad some pictures with bric_media_upload.
>>> Running it I get the error:
>>> Error create media we_001.jpg: Call to Bric::SOAP::Media->create failed:
>>>
>>> Field "resolution" cannot be deleted. There must be at least 1 fields of this type.
>>>
>>> In my error log I have:
>>>
>>> [Sat Apr 09 19:53:32 2011] [error] SOAP::Serializer::envelope: Server Application error Field "resolution" cannot be deleted. There must be at least 1 fields of this type.\n[/usr/local/bricolage/lib/Bric/Biz/Element/Container.pm:1595]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:546]\n[/usr/local/bricolage/lib/Bric/SOAP/Util.pm:417]\n[/usr/local/bricolage/lib/Bric/SOAP/Media.pm:962]\n[/usr/local/bricolage/lib/Bric/SOAP/Asset.pm:245]\n[/usr/share/perl5/SOAP/Lite.pm:2569]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:327]\n[/usr/share/perl5/SOAP/Transport/HTTP.pm:621]\n[/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]\n[-e:0]
>>> [/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:255]
>>> [/usr/share/perl5/SOAP/Lite.pm:2649]
>>> [/usr/share/perl5/SOAP/Lite.pm:1505]
>>> [/usr/share/perl5/SOAP/Lite.pm:761]
>>> [/usr/share/perl5/SOAP/Lite.pm:2624]
>>> [/usr/share/perl5/SOAP/Transport/HTTP.pm:338]
>>> [/usr/share/perl5/SOAP/Lite.pm:2617]
>>> [/usr/share/perl5/SOAP/Transport/HTTP.pm:327]
>>> [/usr/share/perl5/SOAP/Transport/HTTP.pm:621]
>>> [/usr/local/bricolage/lib/Bric/SOAP/Handler.pm:174]
>>> [-e:0]
>>>
>>>
>>> Does somebody know whats going wrong here ?
>>>
>>> Rolf Schaufelberger
>>>
>>>
>>>
>>>
>>>
>>
>
> Mit freundlichen Grüßen
> Rolf Schaufelberger
> Geschäftsführer
>
> plusW GmbH
> Vorstadtstr. 61 -67 Tel. 07181 47 47 305
> 73614 Schorndorf Fax. 07181 47 45 344
>
> www.plusw.de
> www.mypixler.com
> www.calendrino.de
>
>
>
>
>
>

Mit freundlichen Grüßen
Rolf Schaufelberger
Geschäftsführer

plusW GmbH
Vorstadtstr. 61 -67 Tel. 07181 47 47 305
73614 Schorndorf Fax. 07181 47 45 344

www.plusw.de
www.mypixler.com
www.calendrino.de