• Photonic is just what I needed to display galleries on a site for a local school which uses SmugMug. However, when trying to embed selected older galleries, we cannot search or load beyond the first one hundred albums. I get a never-ending “working” (blue dots) notification.

    While it shouldn’t be needed for our intended use, I have tried setting up API access and have successfully authenticated.

    I would be happy to give temporary login access to the author if desired.

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

    (@sayontan)

    Do you mean this is happening in the “Gallery builder wizard” in the back-end, which helps you construct the gallery?

    If so, this would fall under a back-end plugin conflict, which is generally harder for me to troubleshoot since the forum rules here forbid exchange of login credentials. So, we have to work this out the long way.

    Let’s start with the following questions:
    – Are you using the Gutenberg block for Photonic, or are you using the “Add / Edit Photonic Gallery” button?
    – Which type of gallery are you trying to create – “Multiple Albums”, or “Photos from an Album”?
    – Are you able to see your albums under Photonic → Helpers → SmugMug by passing your user id?
    – Can you see the listing of your albums if you replace my user name (sayontan) with yours in this URL: https://api.smugmug.com/api/v2/user/sayontan!albums ?

    Thread Starter David Mitchell

    (@david-mitchell)

    I didn’t realize giving you access is forbidden. Thanks for your help!

    – I’m using the Gutenberg block.
    – I’m trying to display “photos from an album.”
    – I am NOT able to see albums with the helper. I get this error: “cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received”
    – I can see at least the first 50 albums with the API link: https://api.smugmug.com/api/v2/user/hargrave!albums

    Plugin Author Sayontan Sinha

    (@sayontan)

    – I am NOT able to see albums with the helper. I get this error: “cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received”

    This is illustrative. Please go to Photonic → Settings → Generic Options → Advanced and set the option “Increase cURL timeout” to something like 60. See if this helps you pull the albums. If it does, it might resolve the issue even on the wizard. If it doesn’t, I will offer an alternative suggestion.

    Thread Starter David Mitchell

    (@david-mitchell)

    OK, this is mystifying: I have tried values ranging from 30 to 120 for the cURL timeout, but with every other value I’ve put in, I don’t get a message back at all, only the blue “working” dots.

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – try deleting your authentication credentials (basically the access token and access token secret), keep the cURL value at around 60 and then reattempt.

    Thread Starter David Mitchell

    (@david-mitchell)

    That’s helping! It started working for me, but my assistant is still having trouble. I’ve pushed the cURL timeout to 80 and will ask her to try again. FYI, the SmugMug helper loaded, but only once. To be fair, there are hundreds of albums in the entire account.

    EDIT: Right after posting, I tried another one and had it hang at the loading point in the wizard. (Yes, I am giving it 80+ seconds to load.)

    Plugin Author Sayontan Sinha

    (@sayontan)

    The helper gives me trouble because you have more than 2000 albums, so that is something for me to look into for a future release.

    I did discover that at some point over the past few months the “Load More” button ceased working for SmugMug (I know for a fact that it used to work as I have had multiple users use it in the past).

    Unfortunately this makes things a bit tricky, but let me see if we can work something out. I would have suggested using the SmugMug API URL for this, but you have too many albums for this to work easily.

    Firstly, I dumped out all your albums along with their names and their album IDs here: https://pastebin.com/mg46ysGE. You can paste this out into a spreadsheet – the first column is your album’s thumbnail, the second is the name of the album along with a photo count and the third is the id of the album. You can paste this out into a spreadsheet for easier processing – the content should paste over properly without having to do any manipulation.

    The current situation makes it harder to use the Photonic block for Gutenberg, but given your abnormally high number of albums, I would have anyway not recommended using Gutenberg for you – the workflow gets extremely tedious if you have to create multiple galleries. Instead I would suggest using a vanilla shortcode in the shortcode block.

    To do this (and to make it all Gutenberg-proof), go to Photonic → Settings → Generic Options → Generic Settings → Custom Shortcode, and put in something like photonic for that.

    Then, in a shortcode block, put in:
    [photonic type='smugmug' view='images' album='xyz']
    … replacing xyz with the id for your album as per the PasteBin file I have provided above.

    This will display your album. Depending on what type of layout you require I can help you with additional parameters.

    The advantage with this approach is that you can pretty much copy-paste this shortcode and replace the album id to show a different album – this is very helpful for cases where you have a large number of albums to navigate.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can only browse first 100 SmugMug albums’ is closed to new replies.