Hello Jan,
First of all, thanks for developing such great Joomla components and for being so pro-active supporting them!
I might have found a bug in Phoca Gallery, maybe this has been reported before but i could not found any thread about it!
Some background: i'm using a fresh Jommla v1.5.3 installation with only the Phoca Gallery v1.8.0a component installed, template is the default 'rhuk_milkyway'.
When you use the '#' symbol in your category's alternative name, and you try to open a thumbnail you get a Joomla page with the Phoca Gallery's No Thumbnail image ("phoca_thumb_l_no_image.gif"). This is completely browser, popup mode and template independent (tested!).
I thought the problem could be in the thumbnail's url (some url encoding not happening, probably...), so to test this possibility i created a new category with the '&' symbol in the category's alternative name, and the result was event worse: the popup shows the error message "Illegal variable _files or _env or _get or _post or _cookie or _server or _session or globals passed to script."
I'm new in Joomla so i can't say for sure if this is a Phoca Gallery or a Joomla core problem, but i think a note about this could be put in the Phoca Gallery's user manual, so new users like me (especially new users with no previous web developing skills) don't run into this problem and get stuck...
Once again, thanks for all your great work!!!
Bug?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Hi, there should not
Hi, there should not be used symbols like # or & in ALIAS (use e.g. - instead of them)
Phoca Gallery has one function which remove the bad characters from ALIAS but this function uses ICONV (php function) which is not ready on all servers... so if it doesn't work for you, don't use bad characters for ALIAS - ALIAS is the URL friendly name for Category name ...
Phoca Gallery has one function which remove the bad characters from ALIAS but this function uses ICONV (php function) which is not ready on all servers... so if it doesn't work for you, don't use bad characters for ALIAS - ALIAS is the URL friendly name for Category name ...
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 06 May 2008, 11:22
- Location: Portugal
Thanks for the quick
Thanks for the quick reply!
I presented this specific scenario because sometimes i create album categories with names like "Album #[1..n]", and i have the nasty habit of copying the album's name to the the album's alias, don't know if this is a common practice...
All in all, the problem is solved and that's what matters!
Cheers,
I presented this specific scenario because sometimes i create album categories with names like "Album #[1..n]", and i have the nasty habit of copying the album's name to the the album's alias, don't know if this is a common practice...
All in all, the problem is solved and that's what matters!
Cheers,
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
I know, this can hap
I know, this can happens... I wanted to prevent from this with the function which remove this characters... but as I wrote it doesn't work on all servers ...
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 06 May 2008, 11:22
- Location: Portugal
Could this be solved
Could this be solved by using htmlentities() along with iconv()? Could you point me a file or function name where i could edit this?
Cheers,
Cheers,
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
administrator\co
administrator\components\com_phocagallery\helpers\phocagallery.php
getAliasName method
getAliasName method
If you find Phoca extensions useful, please support the project