[dev] ansel dont stores images in subgallery

Ben Chavet ben at chavet.net
Thu Mar 25 12:14:22 PST 2004


Ok,

I can see two possibilities that $this->_data['full'] would not get set.

   1. createView() at Gallery.php:602 returns a PEAR_Error

   2. _vfs->read() at Gallery.php:620 returns a PEAR_Error

Please check the values of $result and $data at these two places to 
narrow this
down.

--Ben

Quoting Ben Chavet <ben at chavet.net>:

> The more I look at this, the more it doesn't make sense. $this->load($view)
> should set $this->_data[$view].  I'll keep looking at it.
>
> --Ben
>
> Quoting Ben Chavet <ben at chavet.net>:
>
>> Committed, thanks
>>
>> --Ben
>>
>> Quoting duck <duck at obala.net>:
>>
>>> today I started to test Ansel (cvs snap from 25.3.) and found that on
>>> our Win server don't stores images in subgalleries, but on my home Linux
>>> does. Strange, but later I find that on Win produce a warning that the
>>> index "full" is not set in lib/Gallery.php:796. So I added a check if
>>> requested index exists.
>>>
>>> --- from to  ---
>>> return $this->_image->toFile($this->_dirty) ? false : $this->_data[$view]);
>>> ---- to ----
>>> return $this->_image->toFile($this->_dirty ||
>>> !isset($this->_data[$view]) ? false : $this->_data[$view]);
>>>
>>> and it works
>>>
>>> Duck
>>> --
>>> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>>
>>
>> --
>> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>
>
> --
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org




More information about the dev mailing list