Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#2645 Flickr not working

Posted in ‘Event Gallery - General’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by southdevils on Monday, 10 April 2017 16:18 UTC

southdevils
 Hello,
I tried to use the new Flickr feature but my albums are not shown anywhere.

When i enter the Album ID, the correct amout of pictures is shown, but no thumbnails or pictures.

I've opened the prewiev in a seperate Tab and got this error message:

Not Found

The requested URL /<br /><b>Warning</b>: Division by zero in <b>/www/htdocs/v109593/janni/components/com_eventgallery/library/file/flickr.php</b> on line <b>152</b><br /><br /><b>Warning</b>: Division by zero in <b>/www/htdocs/v109593/janni/components/com_eventgallery/library/file/flickr.php</b> on line <b>155</b><br />https://farm4.staticflickr.com/3734/33678512386_e1f62dd62f_t.jpg was not found on this server.


In der Datei ist das an dieser Stelle:
$ratio = $this->getWidth() / $this->getHeight();

   private function getFlickrSizeCode($width, $height) {

        $longSideSize = $width;
        $originalLongSideSize = $this->getWidth();

        if ($height>$width) {
            $longSideSize = $height;
            $originalLongSideSize = $this->getHeight();
        }

        if ($height == $width) {
            $ratio = $this->getWidth() / $this->getHeight();
            if ($ratio < 1) {
                // landscape
                $longSideSize = $width / $ratio;
            } else {
                //portait
                $longSideSize = $width * $ratio;
            }
        }


seems like the height could not fetched correctly and causes a Div by 0 error.

Hope that helps.

Thank you for your help.

sbluege
Are the images you're using "downloadable"? If they are not, Flick won't tell the image size so Event Gallery can't perform any kind of calculation.

southdevils
Yes, they are downloadable for public. 4000x2119px

https://www.flickr.com/photos/136481946@N05/albums/72157681680727456

I've tried with different albums.

southdevils
I deleted the event and created again. Now it's working.
I close it now.