Picture page is not W3C valid! How to fix this?

Phoca Gallery - image gallery extension
corinne
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 17 Apr 2008, 13:06

Hi all, first want t

Post by corinne »

Hi all, first want to say this is a very nice gallery. I try to build my websites as clean as possible and when I run the album page through the W3C validator it dit not pass. The page with the categories is fine, but when you click on the category you'll get to the pictures page and that one is not valid. It has for example the following error:

"cannot generate system identifier for general entity "view"."

> this comes from the URL generated by the gallery:

"index.php?option=com_phocagallery&view=category&id=1&Itemid=57" method="po....."

Is there a way to fix this?

Thanks a lot!!!

Corinne
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, it should work,

Post by Jan »

Hi, it should work, the & should by replaced by & while using JRoute method in Joomla ... but maybe there is some problem... I take a look at it... but I think, this (& instead of &) you get everywhere, in e.g. articles too..

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

The problem seems to

Post by Jan »

The problem seems to be this method used in form tags:

$uri->toString()

Jan
If you find Phoca extensions useful, please support the project
Floddy
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Oct 2008, 13:13

Re: Picture page is not W3C valid! How to fix this?

Post by Floddy »

Hi,

I noticed today that the w3 xhtml verifier didn't like the gallery html, because of the "&"

Same thing in Phoca Guestbook, by the way.

Is this being changed, or should I perhaps go with a home-made template override?

Thanks,
Floddy
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Picture page is not W3C valid! How to fix this?

Post by Jan »

Hi, please let me know the exact place of "&" ... if this is the link, then I cannot do anything because link are created by JRoute method :-(
If you find Phoca extensions useful, please support the project
Floddy
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Oct 2008, 13:13

Re: Picture page is not W3C valid! How to fix this?

Post by Floddy »

Hi,

It's in the action URL in the form tags.

Thanks,
Floddy
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Picture page is not W3C valid! How to fix this?

Post by Jan »

so there is a problem because changing this, it will cause problems on sites with SEF enabled :( I will take a look at it
If you find Phoca extensions useful, please support the project
Floddy
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Oct 2008, 13:13

Re: Picture page is not W3C valid! How to fix this?

Post by Floddy »

My first thought was to run it through htmlspecialchars() or str_replace(), but I'm not completely sure that it would't mess something else up, especially with SEF URLs.

I understand that the whole thing gets trickier, when it's supposed to work in all kinds of configurations!

Thanks,
Floddy
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Picture page is not W3C valid! How to fix this?

Post by Jan »

maybe there can be some custom edit like str_replace -> & -> & but don't know what will SEF do with some link ?
If you find Phoca extensions useful, please support the project
st3n
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 27 Jan 2009, 13:28

Re: Picture page is not W3C valid! How to fix this?

Post by st3n »

fow what is the "form" there?
Post Reply