Here be dragons.
The problem occurs when a picture is clicked on. It should then show a pop up of a larger version of the picture. Instead the screen shows an empty frame.
I tried this on my site and looked at the error log file. I then tried a few things and got about 18 error messages a second until I broke the connection. I will tell you what I tried and why you should not do the same. There will be listings from the error logs but at the end the conclusion is that someone else will provide the solution.
The first error I saw was
[Tue Mar 01 18:31:49 2011] [error] [client 77.99.92.127] File does not exist: /home/sites/boynhillbaptist.org.uk/public_html/xxxxxxxxxx/templates/mobile_iphone/mj_iphone.css, referer: http://www.boynhillbaptist.org.uk/xxxxxxxxxx/index.php?option=com_phocagallery&view=detail&catid=1:york-stream&id=1:dscf7149web&tmpl=component&Itemid=62
I tried physically placing the code from the folder css into the place where it did not exist. This did not help.
The first error was followed by many more of these:
[Tue Mar 01 18:32:03 2011] [error] [client 77.99.92.127] PHP Warning: mysqli::real_escape_string() [<a href='mysqli.real-escape-string'>mysqli.real-escape-string</a>]: Couldn't fetch mysqli in /home/sites/boynhillbaptist.org.uk/public_html/xxxxxxxxxx/plugins/mobile/terawurfl/DatabaseConnectors/TeraWurflDatabase_MySQL5.php on line 544, referer: http://www.boynhillbaptist.org.uk/xxxxxxxxxx/index.php?option=com_phocagallery&view=detail&catid=1:york-stream&id=1:dscf7149web&tmpl=component&Itemid=62
[Tue Mar 01 18:32:03 2011] [error] [client 77.99.92.127] PHP Warning: mysqli::query() [<a href='mysqli.query'>mysqli.query</a>]: Couldn't fetch mysqli in /home/sites/boynhillbaptist.org.uk/public_html/xxxxxxxxxx/plugins/mobile/terawurfl/DatabaseConnectors/TeraWurflDatabase_MySQL5.php on line 361, referer: http://www.boynhillbaptist.org.uk/xxxxxxxxxx/index.php?option=com_phocagallery&view=detail&catid=1:york-stream&id=1:dscf7149web&tmpl=component&Itemid=62
[Tue Mar 01 18:32:03 2011] [error] [client 77.99.92.127] PHP Warning: TeraWurflDatabase_MySQL5::getDeviceFromCache() [<a href='terawurfldatabase-mysql5.getdevicefromcache'>terawurfldatabase-mysql5.getdevicefromcache</a>]: Couldn't fetch mysqli in /home/sites/boynhillbaptist.org.uk/public_html/xxxxxxxxxx/plugins/mobile/terawurfl/DatabaseConnectors/TeraWurflDatabase_MySQL5.php on line 361, referer: http://www.boynhillbaptist.org.uk/xxxxxxxxxx/index.php?option=com_phocagallery&view=detail&catid=1:york-stream&id=1:dscf7149web&tmpl=component&Itemid=62
I tried to set the site to use mysqli instead of mysql. Bad move. Do not do this.
My feeling is that the process which recognises mobile browsers is trying to identify my picture as a mobile phone browser. Or it may just be breaking because the string is so long. You can tell I'm not an expert in this
So if anyone wants to suggest things, I'll have a look tomorrow.
PS I did just try disabling the mobile terrawurfl plugin, but it still went into a loop.