inetis-ch / oc-GooglePhotos-plugin

Display public Google Photos albums into OctoberCMS
https://octobercms.com/plugin/inetis-googlephotos
MIT License
9 stars 1 forks source link

Error on single album component #7

Closed bjlatta closed 6 years ago

bjlatta commented 6 years ago

Getting the following error on the admin page when I click on the component. I cannot add the album ID, because of the error. "Cannot use object of type Inetis\GooglePhotos\PicasaWebData\Elements\Album as array" on line 101 /var/www/**/public_html/plugins/inetis/googlephotos/components/GooglePhotosAlbum.php . "***" is my website folder, hidden here because I do not want to make it public. The gallery page is working showing my albums.

Fl0Cri commented 6 years ago

Thanks for reporting this. I've made a PR to fix the issue, we will make a release after the week-end.

So if you want to get fixed right now you can just replace line 101 of this file https://github.com/inetis-ch/oc-GooglePhotos-plugin/blob/master/components/GooglePhotosAlbum.php#L101 by this:

return ['id:' . $item->albumId => $item->albumTitle];
Fl0Cri commented 6 years ago

Fixed in release 1.2.2