From about 2003 until today, I kept my photos in a variety of places. Most of my photos were on my old website’s photo gallery which ran the excellent Gallery2 software. For a number of reasons, I decided to move all my photos to my Flickr account. (I wanted to make use of the community features on flickr, I was failing to keep my Gallery2 install updated and my Android phone makes it really easy to upload photos direct to Flickr). Moving the photos is pretty easy using the Gallery2Flickr plug-in for Gallery2. Transferring photos mostly went smoothly but occasionally it failed with the following error:

Catchable fatal error:
Object of class GalleryStatus could not be converted to string in modules/Gallery2Flickr/classes/phpFlickr/phpFlickr.php on line 214

After some tinkering, this was fixed by setting the parameter

$storeConfig['type'] = 'mysql';

in config.php (it was set as 'mysqli'). This is a bit of a dirty hack but it works.