• Resolved warped1

    (@warped1)


    I’ve installed this plugin on a local 4.9.5 WordPress installation and I was able to add Flickr photos (using Embed Media) to a gallery. When I try this on the live site (WordPress 4.9.4) I’m getting an error:

    Error please enter FLICKR correct single media URL

    I’ve tried it on Firefox, IE and Chrome with the urls:

    https://www.flickr.com/photos/openluchttheater-valkenburg/38773626925/in/album-72157691508148924/
    https://www.flickr.com/photos/openluchttheater-valkenburg/27892289849/in/album-72157691508148924/
    • This topic was modified 6 years, 10 months ago by warped1.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter warped1

    (@warped1)

    It happens with Youtube video’s as well (errormessage has YOUTUBE instead of FLICKR), and I’ve found clues that indicate an issue with my hosting provider, so I’ve reported an incident with them.

    Plugin Contributor Photo Gallery Support

    (@photogallerysupport)

    Hi,

    The links that you have provided, are working properly. So, please keep us updated after contacting your hosting provider.

    Thank you! Have a nice day!

    Thread Starter warped1

    (@warped1)

    Update: my hosting provider tested this using a Flickr script and that works. It’s using the Flickr API though, how does your plugin retrieve Flickr data?
    If I use a page to link to the Flickr site directly it works as well. Is there a way I can get more logging from your plugin on what fails?

    I’ll add the php code of the test script below:

    <?php
    function attr($s, $attrname)
    { // return html attribute
        preg_match_all('#\s*(' . $attrname . ')\s*=\s*["|\']([^"\']*)["|\']\s*#i', $s, $x);
        if (count($x) >= 3) return $x[2][0]; else return "";
    }
    
    // id = id of the feed
    // n = number of thumbs
    function parseFlickrFeed($id, $n)
    {
        $url = "https://api.flickr.com/services/feeds/photos_public.gne?id={$id}&lang=it-it&format=rss_200";
        $s = file_get_contents($url);
        preg_match_all('#<item>(.*)</item>#Us', $s, $items);
        $out = "";
        for ($i = 0; $i < count($items[1]); $i++) {
            if ($i >= $n) return $out;
            $item = $items[1][$i];
            preg_match_all('#<link>(.*)</link>#Us', $item, $temp);
            $link = $temp[1][0];
            preg_match_all('#<title>(.*)</title>#Us', $item, $temp);
            $title = $temp[1][0];
            preg_match_all('#<media:thumbnail([^>]*)>#Us', $item, $temp);
            $thumb = attr($temp[0][0], "url");
            $out .= "<a href='$link' target='_blank' title=\"" . str_replace('"', '', $title) . "\"><img src='$thumb'/></a>";
        }
      return $out;
    
     }
     ?>
    <div>
        <ul style="list-style-type: none;">
              <li><?php echo parseFlickrFeed("51126072@N04", 9); ?> </li>
              <li><?php echo parseFlickrFeed("59471898@N04", 20); ?> </li>
        </ul>
    </div>
    Thread Starter warped1

    (@warped1)

    I’ve also tried the Photonic Gallery plugin and it functions flawlessly with Flickr. It just doesn’t display Flickr photo’s and Youtube video’s simultaneously, though.

    So what can I do to get your plugin to work?

    Plugin Contributor Photo Gallery Support

    (@photogallerysupport)

    Hi,

    We need to have a closer look at the described issue.

    Please contact our support team using the following email address:[email protected]
    Also, mention the URL of this forum topic in your message. We will provide a solution as soon as possible and share it here as well.

    Thanks, have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error please enter FLICKR correct single media URL’ is closed to new replies.