Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: "&" causing validation failures  (Read 2808 times)

0 Members and 1 Guest are viewing this topic.

spikeyhair

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • www.phoenixhospitalradio.com
"&" causing validation failures
« on: February 10, 2010, 01:08:34 am »

Hi,

I have a successfully running coopermine gallery 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.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: "&" causing validation failures
« Reply #1 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.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: "&" causing validation failures
« Reply #2 on: February 10, 2010, 03:06:35 am »

Oops almost forgot.
Please upgrade to 1.4.26.
cpg1.4.26 Security release - upgrade mandatory!
« Last Edit: February 10, 2010, 04:12:38 am by Jeff Bailey »
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

spikeyhair

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • www.phoenixhospitalradio.com
Re: "&" causing validation failures
« Reply #3 on: February 10, 2010, 02:40:07 pm »

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.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: "&" causing validation failures
« Reply #4 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.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.