• Hello,
    I am building a website for a client. He has a lot of photo albums on google photos and wants to display the albums as galleries on the site.
    At the moment the site is a local install on my home computer (Xampp). As far as I can see everything went well with the configuration of the plugin. I got the Google Client ID,the Google Client Secret and the Authentication was OK.

    When I put a short code together with the wizard every step seems to be fine and I get my short code.

    But when It comes to displaying the album gallery there is something wrong. For example:

    I have in the album 13 pictures. I choose a square grid, 5 column’s. That would mean 3 rows…2 of 5 thumbnails and 1 of 3 thumbnails.

    But in reality I get only 11 pictures in the gallery. The gallery is also cut of in 2 places with a blank space. If I go through the gallery with the arrows, the blank spaces give me an error.

    See this link: https://drive.google.com/open?id=185beKD1S0fKZtrHCupECAjaw21PJbUYe

    What can be wrong? Maybe it is the local install? I am using the Avada Theme.

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

    (@sayontan)

    Sorry, I cannot really say without a working URL.

    Thread Starter Raval

    (@raval)

    Hello Sayontan,

    I have the site semi live now. Still the same problem as mentioned above. I will give you a link to a page where I want to display an album of 42 pictures. But only 36 pictures are displayed. It doesn’t matter which layout I choose or what album..it happens always.

    https://www.cor-scorpii.nl/photonic-test/

    Thanks…Raval

    Plugin Author Sayontan Sinha

    (@sayontan)

    Hi,
    It looks like you are using a caching plugin for this page. Unfortunately Google’s URLs don’t work with caching plugins. Basically when you are making a call to Google’s API, Google is getting you a URL. That URL has a life-span of around 30 minutes. If you cache the URL, when a user visits your page after, say, 1 hour, those URLs will not be valid and you will not see any images.

    Can you try after disabling your caching plugin for this particular page?

    Thread Starter Raval

    (@raval)

    I think that is not the problem.
    I completely removed Comet Cache by following this small tutorial:

    EMERGENCY: IF ALL ELSE FAILS (HOW-TO REMOVE COMET CACHE)
    Ordinarily you can just deactivate Comet Cache from the plugins menu in WordPress. However, if you’re having a more serious issue, please follow the instructions here.

    Log into your site via FTP; perhaps using FileZilla.
    Delete this file: /wp-content/advanced-cache.php
    Delete this directory: /wp-content/plugins/comet-cache/
    Remove this line from your /wp-config.php file: define(‘WP_CACHE’, TRUE);
    Comet Cache is now completely uninstalled and you can start fresh ??

    After I look at my test page the problem only got worse. See the link below.
    Now 9 pictures are not displayed.

    https://www.cor-scorpii.nl/photonic-test/

    Thread Starter Raval

    (@raval)

    For your information…..This is the short code I use to display the photo’s from the album:

    [google_photo_gallery type=’google’ view=’photos’ album_id=’AKh1KnCignqJydCqTmAVjgTEy3NoyL2GQDpGwtNI7B86nmgxObXuIkZW6tqEeGYz2UyZReGqkYjK’ columns=’6′ media=’photos’ main_size=’1600′ tile_size=’1600′ layout=’square’ thumb_size=’150′ crop_thumb=’crop’]

    Thread Starter Raval

    (@raval)

    And now after 30 minutes there are again 6 missing pictures.

    https://www.cor-scorpii.nl/photonic-test/

    Plugin Author Sayontan Sinha

    (@sayontan)

    This is very weird – you seem to be getting invalid URLs directly from Google. When Photonic makes a call to Google, Google provides a list of URLs to it for each of your photos. In your case it appears as though the URLs Google is providing are incorrect – if you look at your site’s JavaScript console in Chrome you will see that the missing photos are due to a 404 (Not found) error.

    I would suggest starting up with another client ID and redoing the authentication with that client ID, then retrying this.

    Thread Starter Raval

    (@raval)

    Hello Sayontan,

    Thanks for your effort,

    In my first post I told you the website was hosted on my PC in an Xampp environment.I got the Google Client ID,the Google Client Secret and the Authentication was OK. At that time I had the same problem.

    After that I migrated the site to a real hosting provider. And I made a new Client ID. Also the authentication was redone. So I think starting with a another new Client ID will not solve the problem.

    Do you have any other suggestions? Can it be that my wordpress theme (Avada) is the problem?

    Plugin Author Sayontan Sinha

    (@sayontan)

    Can it be that my wordpress theme (Avada) is the problem?

    No, the theme is not the problem here; Google is.

    Here is what you can try:

    1. Go to the official documentation page on Google’s website.
    2. Click “Try this API”
    3. Fill out the details and “Execute”. You will need to provide the “albumId” parameter, and you provide the album id for whatever you are trying to fetch (you can get the album id from Photonic → Helpers)
    4. For the 6 photos that are not showing up on your site, look for those in the API response and see if you can access the “baseUrl”

    Let me know if you are able to access the baseUrl for those 6 photos. If not, you might want to open a ticket with Google (https://issuetracker.google.com/issues?q=componentid:385336).

    Thread Starter Raval

    (@raval)

    Hello Sayontan,

    I can access the baseUrl of the missing photo’s with no problem. But every few hours later, other photo’s are missing. I just tried the ones who are missing right now.

    But now it 10 minutes later and I cannot access photo 11 anymore (10 minutes before I could) and get an error:

    403. That’s an error.

    Your client does not have permission to get URL /lr/AGWb-e7WIrtYA-KlRoly_oq9BpM3-aUJfN5xv_X83H6jeFrrBFk-VVz70FHsP-GHMV4F0pQ6xvChyOIrw9dM9eikYmuOKLdWmlx_hWQoy4OE1omwUyCJwgP7gIrOywffASZgw9tZcOIy0YcS4ESVLIMYtc7GjQA-V64n41kSTEUjGc-gx4APc6HTtr0bsMyEz9n8tB-qAs7vIqt5_0G6kO8xuTNFU8SU6aL07h-dIugjgU2ovpGaKY38BmF8BozgJ0SAS823Ja87ELMbUnEYyasBCEjyX6b4qEk4Eo3OWHC1Tm8rA5-ZWanpujR9vsajM6oNY1WQu8MzaUcTL8V_l47ELfgCbzaTdnPEeVij2C9_Nhc2QDhVpei3KTUig9jz1DfPROLmeVrA8IgTLuX7wWNV0A2Gs_7TIxm35nRunxmMPbFVCqQwujAOVuKhlXF2G0CG6XcMKyYpvXwD-GHTfqRYjfVVBnGbD_UsZW4Nem2UYTRSph0WHZdcplGXF8RFf_dFYdnb1YMpFMUZox4SioHa0snlMm5_PLXnjL_1EKkAsNcNTqg_-8mk5d_m8Ti6w7XCY7LXmx9CMQJ8xXzwDrEB9FYy6J84cL4W_jkMebt6gWqgPgrXZq6dYzDFXAQCGSN8PP-l_I_a1al1VBDgpWr8rMQJF6OHTvcx6kr706yIfAwK9LiM8nR_bmKFCoVzeKqgzE54OytsOnbg7hE785Yi7ZChyxGXucPkiwtcyH8q0l5dIExSUCVcp50BogvGW0hFGNxQ4DvNSHp106WBRpync5WqNCloZsNN0xy0vsg4xfIYTo1V from this server. (Client IP address: 82.74.194.165)

    Forbidden That’s all we know.

    Thread Starter Raval

    (@raval)

    Could it be the problem that I got the credentials with the cache plugin still working?

    Or…That some baseUrl’s expire at the same moment as the pictures are downloading?

    • This reply was modified 5 years, 3 months ago by Raval.
    • This reply was modified 5 years, 3 months ago by Raval.
    Plugin Author Sayontan Sinha

    (@sayontan)

    The URLs expire after around 30 minutes (I think the exact figure is 35 minutes), and you can access it as many times as you need. But, as you have seen, in your case some URLs are expiring before the others. My guess is, that is what is happening via Photonic as well.

    I would say this is a Google bug. Basically Photonic does not do anything to the BaseUrl – it simply appends a size to it and the photo shows up correctly. I would suggest logging a defect with Google, because there isn’t much I can do to help you with.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Photonic with google photos album galleries not compleet’ is closed to new replies.