forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: spikeyhair on February 10, 2010, 01:08:34 am

Title: "&" causing validation failures
Post by: spikeyhair on February 10, 2010, 01:08:34 am
Hi,

I have a successfully running coopermine gallery http://www.phoenixhospitalradio.com/photos/ (http://www.phoenixhospitalradio.com/photos/)

However after validating it on the W3C validator it would appear to be failing due to the "&" symbol not being converted to & on the displayimage.php and thumbnails.php pages.

Is there anything I can check or change?

Cheers.

Spikey.
Title: Re: "&" causing validation failures
Post by: Jeff Bailey on February 10, 2010, 02:52:03 am
For http://www.phoenixhospitalradio.com/photos/displayimage.php?album=46&pos=5 the & symbol has something to do with the facebook button.
Code: [Select]
<a href="http://www.facebook.com/sharer.php?u=http://www.phoenixhospitalradio.com/photos/albums/userpics/normal_Elaine%20and%20John%20Topliss.JPG&" TARGET="_blank" onclick="window.open(this.href,'window','width=626,height=436,resizable') ;return false;"><img src="plugins/facebook/facebook_share_button.jpg" width=75 height=33 /></a>
Have a look at the plugin's code to fix it.

I don't see the error on http://www.phoenixhospitalradio.com/photos/thumbnails.php?album=1 can you be more specific.
Title: Re: "&" causing validation failures
Post by: Jeff Bailey on February 10, 2010, 03:06:35 am
Oops almost forgot.
Please upgrade to 1.4.26.
cpg1.4.26 Security release - upgrade mandatory! (http://forum.coppermine-gallery.net/index.php/topic,63510.0.html)
Title: Re: "&" causing validation failures
Post by: spikeyhair on February 10, 2010, 02:40:07 pm
http://www.phoenixhospitalradio.com/photos/thumbnails.php?album=lastup&cat=0&page=9 (http://www.phoenixhospitalradio.com/photos/thumbnails.php?album=lastup&cat=0&page=9) Fails because of the & symbol. I have removed the facebook plugin for now.
Title: Re: "&" causing validation failures
Post by: Jeff Bailey on February 10, 2010, 05:35:33 pm
That's odd. It has to do with your thumbnail titles, some convert to &amp; while others don't.
Unless you manually edited something, I don't know why this would happen.