[TYPO3-english] Betr: Re: Betr: Re: Betr: Re: CoolURI URL cannot exceed 45 chars. Bug or configuration?

Roy van Lamoen mailinglists at telfort.nl
Fri Sep 4 22:44:00 CEST 2009


Hi Jan,

As I don't know if my previous mail has been placed correctly in the thread,
I'll send it again ;-)

I've done some debugging and pinned the error down to class.tx_cooluri.php,
function cool2params.

I've installed extension file dev_log and inserted some calls to
t3lib_div::devlog.
The following is a fragment of debug.log (l.xx stands for line number in
source):
----------
09-09-04 12:48:55 INFO     l.58 class.tx_cooluri.php In cool2params
09-09-04 12:48:55 INFO     l.61 class.tx_cooluri.php
REQUEST_URI:/links/categorie/algemeen/nhb/50/showlink/
09-09-04 12:48:55 INFO     l.67 class.tx_cooluri.php In else
09-09-04 12:48:55 INFO     l.69 class.tx_cooluri.php paramsinurl:
/links/categorie/algemeen/nhb/50/showlink/

09-09-04 12:49:05 INFO     l.58 class.tx_cooluri.php In cool2params
09-09-04 12:49:05 INFO     l.61 class.tx_cooluri.php
REQUEST_URI:/links/categorie/algemeen/3d-schieten/50/showlink/
09-09-04 12:49:05 INFO     l.63 class.tx_cooluri.php In if
09-09-04 12:49:05 INFO     l.64 class.tx_cooluri.php siteScript: ink/
09-09-04 12:49:05 INFO     l.69 class.tx_cooluri.php paramsinurl: /ink/
-------------------

I've followed 2 links:
/links/categorie/algemeen/nhb/50/showlink/ (works correct)
/links/categorie/algemeen/3d-schieten/50/showlink/ (doesn't work)

As you can see, when the link <= 45 chars, siteScript appears to be empty
and $paramsinurl = t3lib_div::getIndpEnv('REQUEST_URI');

If link >= 45 chars, siteScript isn't empty but the value is (as far as I
know) not according expectation. $paramsinurl becomes no more the "/ink/"

Now, I can't seem to find where siteScript comes from, or what it's function
is. I'm not that familiar with the Typo3 code, so I don't know why
siteScript is set to this value. But it seems to me that this is a bug?

BTW, talking about version 1.0.16 here :-)

Rgds,
Roy

-----Oorspronkelijk bericht-----
Van: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Namens Jan Bednarik
Verzonden: donderdag 3 september 2009 16:06
Aan: typo3-english at lists.netfielders.de
Onderwerp: Re: [TYPO3-english] Betr: Re: Betr: Re: Betr: Re: CoolURI URL
cannot exceed 45 chars. Bug or configuration?

Hi,

> The query does return 1 record (and it is the correct record). Just a
quick
> question: why 2 identical where clauses in the query.

there is a difference in trailing slash.

So if the query is OK, then I'm lost :). You need to do some debugging 
in the PHP code. You can start with link.Translate.php, Line 115.

-- 
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list