[TYPO3] cooluri - strange behaviour on multidomain site
Florian Schupp
florian.schupp at former03.de
Sat May 17 15:05:12 CEST 2008
Hi Steffen,
thanks for the reply.
the strange thing is, that 90% of the links with "?id=INTEGER&L=LANG"
translate borrectly, but some of the just mess up ...
i tried it again now:
1. I switched redirectOldLinksToNew = 1
2. I visited the page
http://www.enocean-alliance.org/?id=595&L=1
3. I'm redirected to
http://www.enocean-alliance.org/de/alliance_erfolge/
it works for now, like last time...
I'll take a look at it tomorry if iot still works.
i suspect that the links will be re-generated tomorrow, causing a wrong
entry in "old_links", might that be the problem? on the other hand i
must admit that i did not clean the "link_oldlinks" table last time.
cheers Florian
Steffen Gebert schrieb:
>> but bad news i guess. it only worked for a short time fro me.
>> the i realized that i again got URLs in my LinkManager without domain
>> prefixes.
>
> Strange.. We also have many index.php?id=XX links on
> http://www.fw-bayern.de/fw-vor-ort/ which caused problems before the patch
> and now work perfect.
>
> I just remember a problem with requests to http://fw-bayern.de/ (without
> www.) which also caused a problem for some time (don't remember good
> enough).
> Do you have the following two domain records:
> * www.mydomain.com
> * mydomain.com, redirected to http://www.mydomain.com/, [X] Transfer
> parameters to Redirect URL, Status Code 301 (fields provided by ext
> jb_status_code).
>
>
> @Jan
> I found the problem for the failed sql queries. In fact $id is not alway
> numeric, e.g. if requested URI is
> "index.php?id=ht__://phonefamily._c_h_a_t_._r_u_/images?" (_ added by me.
> Don't want to advertise for them ;-).
> But furthermore there are also "good" requests where id is the alias of a
> page, e.g. http://www.fw-bayern.de/index.php?id=schrobenhausen . This also
> causes an error in log, but works because cooluri isn't needed for this.
>
> So I'd prefer to patch the line in class.tx_cooluri.php:getDomain()
> while ($max>0 && $id) {
> to
> while ($max>0 && is_numeric($id)) {
>
> I will have a look if there further occur sql errors, but I think this
> should help.
>
> Steffen
>
More information about the TYPO3-english
mailing list