• Resolved Jordi

    (@kukat)


    Hi!
    I’m the admin of the Centre Cultural Castellut cultural association website.

    We have a problem with the Photonic plugin.

    I put this code “[gallery type='google' view='photos' filter='AF1QipNzcI738vCCSmO23bdQPJniJOnjqT3OGUjAtt7F71-IK2b0lYuMhYPXKr_5tsyStQ' photo_count="11" main_size='1600' layout='masonry']”

    But I get only 6 photos (the half?).

    If I try to add a photo gallery with the button “Add/Edit Photonic Gallery” , I get this PHP error “Fatal error: Can’t use function return value in write context in /usr/home/centreculturalcastellut.cat/web/wp-content/plugins/photonic/admin/flow/Photonic_Flow_Manager.php on line 860” .

    What could be the problem?
    Thanks!!!

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

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

    (@sayontan)

    The count issue is internal to Google. I reported a bug with them back in July, but it hasn’t been resolved.

    The other issue seems to be related to your PHP version. According to the documentation:

    Note: Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.

    I do happen to be using empty(trim(...)) function in line 860.

    Which version of PHP are you on? Can you upgrade to the latest version?

    Thread Starter Jordi

    (@kukat)

    Thanks a lot for the answer!

    The version is “php 5.4.45-0+deb7u9 “. I contact with the hosting company to upgrade to a newer version.

    If I find the solution, I will tell you later!

    Thread Starter Jordi

    (@kukat)

    Hi!!!
    Now, works nice!
    The hosting company migrate the website to a new server with PHP 7.2
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Google Photos “count” parameter doesn’t work correctly’ is closed to new replies.