• Resolved wilco464

    (@wilco464)


    I’ve implemented the plugin (version 2.4.2) in my WordPress site (version 4.9.8) and it works good when I fill in the variables under Settings -> Flickr Slideshow.
    API key and username is correct.
    I also fill in a default Flickr photosetid

    But when I add the [fshow photosetid=….] tag in my posts I end up with an iframe where the code is loaded but the data is not received from Flickr.

    I end up on founding a problem in the code:
    file: mobile-friendly-flickr-slideshow.php , function url_handler(). Here the $_GET variable is used to retrieve the params from the url. But when I dump and exit the $_GET variable is empty/ it doesn’t exists. WordPress security?
    Hence it falls back on the default settings.

    When the default Flickr photosetid is ‘0’ or an invalid id, the plugin displays an empty slider (black page)

    My url looks good and has all the params (and are correct) and tested with default photosetid, which gives back the album and displays it:

    [site url]/fshow_orbit_5bb4bd91513e3?photosetid=[my photosetid]&user_id=[my user id]&username=[my username]&gallery_url=[gallery url]

    Also:
    In orbit.php after the bottom-bar div. There is a script closing tag. But the opening tag is missing. Maybe a typo?

    • This topic was modified 6 years, 5 months ago by wilco464.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Robert Peake

    (@robertpeake)

    If the $_GET variable is empty for a valid URL on your website, this is likely a configuration issue with the site. WordPress should not be modifying $_GET. See here fore more details: https://stackoverflow.com/questions/1018935/get-and-wordpress

    And if you have found a bug, we would welcome a diff/patch or .zipped version of the plugin with the change incorporated (sorry, not GitHub for this one yet).

    Thread Starter wilco464

    (@wilco464)

    I found the problem. I’m running WP on a Nginx installation. At the end, the config wasn’t correctly handling the query string.
    I got distracted by the get_query_var() function in WP_Query class. Thought this should also be implemented here.

    Anyway, its working now!
    thanks anyway for your fast response.

    Plugin Author Robert Peake

    (@robertpeake)

    Great, glad to hear. And thanks for reporting that errant </script> tag, which I’ll remove in a subsequent release. I’ll also move to using get_query_var as it’s a little more WP-friendly. New release coming shortly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to use $_GET params , gives black slider’ is closed to new replies.