• Resolved naniemova

    (@naniemova)


    Hi,

    I’m trying to put a zenfolio gallery in my page but it only display a “Unknown error” message. It seems that the plugin doesn’t have any response from Zenfolio. I’m trying that :
    [gallery type='zenfolio' view='photosets' photoset_type='Gallery' object_id='p214656877' password='xxx']

    When I use the Add Photonic Gallery button directly I have this message after trying to connect :
    “No data was returned for the user you provided. Please verify that the user has the content you are looking for.”

    Can anybody help me to connect my Zenfolio pages ?
    Thanks.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    What was the user name you were providing?

    Thread Starter naniemova

    (@naniemova)

    laviedenanie

    Plugin Author Sayontan Sinha

    (@sayontan)

    I think what is happening is that your password protection is blocking this. E.g. even if I access https://laviedenanie.zenfolio.com/f642239177 I see nothing, and correspondingly, when I try to run an API call (http://api.zenfolio.com/api/1.8/zfapi.asmx?op=LoadGroupHierarchy) with your loginName, laviedenanie, I get no results.

    Have you tried authentication under Photonic → Authentication → Zenfolio?

    Thread Starter naniemova

    (@naniemova)

    When I access https://laviedenanie.zenfolio.com/p214656877 I see a page which ask for my password, and I see my personnal blog, menu etc.
    I’ve tried the plugin with a gallery which has no password and the result is the same, I have the Unknown error message.

    When I try authentification in the Photonic/Authentification/Zenfolio I have the message : Failed to get challenge. I have to put the password I defined to access ma galleries right ?

    So that we can do tests I’ve modified the parameters of that gallery : https://laviedenanie.zenfolio.com/p214656877
    There is no password anymore and the error message is the same.

    Plugin Author Sayontan Sinha

    (@sayontan)

    When I try authentification in the Photonic/Authentification/Zenfolio I have the message : Failed to get challenge. I have to put the password I defined to access ma galleries right ?

    You will need to put in your login password there, not the password you use to access your galleries. Zenfolio’s authentication works differently from the other providers. Flickr and SmugMug use OAuth 1.0 and Google and Instagram use OAuth 2.0, but Zenfolio has a custom authentication protocol. For OAuth you don’t need to enter your password in a third-party app, but here you require the password the first time. The password is exchanged for a “challenge”, which then serves to do future verification.

    Thread Starter naniemova

    (@naniemova)

    I’ve tried the authentification with my admin password I have the same message : Failed to get challenge

    I have a response with the http://api.zenfolio.com/api/1.8/zfapi.asmx?op=LoadGroupHierarchy :

    <Group xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221; xmlns=”http://www.zenfolio.com/api/1.8″&gt;
    <Id>2062511319873473225</Id>
    <GroupIndex>0</GroupIndex>
    <Title>Photos</Title>
    <AccessDescriptor>
    <RealmId>2062511320942819313</RealmId>
    <AccessType>Password</AccessType>
    <IsDerived>false</IsDerived>
    <AccessMask>ProtectXXLarge</AccessMask>
    </AccessDescriptor>
    <Owner>laviedenanie</Owner>
    <HideBranding>false</HideBranding>
    <CreatedOn>2016-08-20T05:52:30.133-07:00</CreatedOn>
    <ModifiedOn>2019-01-15T13:34:29.593-08:00</ModifiedOn>
    <PageUrl>http://laviedenanie.zenfolio.com/f642239177</PageUrl&gt;
    <MailboxId>2FFQ24SM5GKQA</MailboxId>
    <TextCn>2</TextCn>
    </Group>

    I asked a friend to try it and he has a result too.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I have a response with the http://api.zenfolio.com/api/1.8/zfapi.asmx?op=LoadGroupHierarchy

    True, but the response doesn’t have any usable information – it is not showing your photosets. E.g. try out with my login, “sayontan”. You will see my photosets being displayed in the response.

    I did notice one thing: your error message says “Failed to get challenge”, which comes only when Zenfolio returns a blank authentication response. This should not be happening unless something fundamental is not working on your site.

    Do you know if cURL is allowed on your website? You might need to check with your hosting provider.

    Thread Starter naniemova

    (@naniemova)

    Sorry how can I check that ?

    • This reply was modified 7 years, 2 months ago by naniemova.
    Plugin Author Sayontan Sinha

    (@sayontan)

    Sorry how can I check that ?

    There are a few ways to do this:

    1. Open a support ticket with your hosting provider and ask them if cURL is enabled for your website. They can answer right away.
    2. If you want you can check this yourself by editing one of your theme files. You can generally put this in your footer.php file, right before the call to wp_footer();. Assume that in your footer.php file you have a line:
      wp_footer();
      Before this line, put in:
      echo '<!-- Curl: '.extension_loaded('curl').'-->';
      If you save the file and reload any page on your website, then “View Source” (Ctrl + U in Chrome), you will see a line in the footer saying <!-- Curl: followed by either nothing, or 1. If you have 1 then cURL is enabled.
    3. Instead of modifying your theme’s file it is advisable to do the above in a child theme.

    But if you are not sure, the best option is to wait for your hosting provider to respond to your ticket.

    Thread Starter naniemova

    (@naniemova)

    Ok I see <!– Curl: 1–> in the code.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Interesting – so cURL is enabled, but you are still receiving a blank response.

    I am running out of ideas at the moment, so let us try this: go to Photonic → Settings → Generic Options → Advanced →
    Turn off SSL verification in calls
    and select that option.

    Thread Starter naniemova

    (@naniemova)

    It works !! Thank you sooooo much πŸ™‚

    Plugin Author Sayontan Sinha

    (@sayontan)

    Wow … interesting. Is this a local site? It is generally advisable to NOT turn this off on a public website, hence I am curious about how your configuration is set up (for a local site it is OK).

    Thread Starter naniemova

    (@naniemova)

    Yes for now it is a local site. I will try to disable this option when it will be online and I’ll tell you if it works.

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – I am marking this resolved.

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Unknown error with Zenfolio’ is closed to new replies.