Per urichar/org new, siehe Wiki und Beispiel dazu hier.
Oder ein Addon (Siehe auch viewtopic.php?t=5719&start=90#p41996).
Per urichar/org new, siehe Wiki und Beispiel dazu hier.
This error message is caused by the configuration setting "uri length". You can increase the value to 400, for example.
Thanks!cmb wrote: ↑Sun Sep 22, 2019 12:53 pmThis error message is caused by the configuration setting "uri length". You can increase the value to 400, for example.
However, 200 is already quite long, so for a page at level 4, you are supposed to have roughly 50 characters (not bytes) for each page heading. There might be a bug, though – I'll check that later.
Code: Select all
$cf['uri']['sepErator']="/"; - is it right?
$cf['uri']['word_separator']="-";
No, this is wrong. It should be 'seperator' (neither 'sepErator', nor the correctly spelled 'separator'). I don't know how that happened, but I suggest to change it, and to check whether the site still works.Korwin wrote: ↑Sun Sep 22, 2019 2:06 pmI noticed a strange variable name.Code: Select all
$cf['uri']['sepErator']="/"; - is it right?
Indeed, there is a bug. $su is taken from the QUERY_STRING, and this is not urldecoded (at least not on IIS where I'm checking, but I think it is not urldecoded on other servers as well). So if someone is requesting http://example.com/?Content/Inhalt-%5Bde%5D, $su is "Content/Inhalt-%5Bde%5D", so the $cf['uri']['length'] cut would shorten the URL more than desired, and could even split in the middle of a urlencoded character, resulting in an invalid URL. A quick-fix might be to replace this line with:
Code: Select all
$su = utf8_substr($su, 0, $cf['uri']['length'] + 2 * substr_count($su, '%'));
Sorry, it was written "seperator", I highlighted the letter "E" to make it clear what surprised me. The mistake is not in this place, at least functional, not spelling.cmb wrote: ↑Wed Sep 25, 2019 11:18 pmNo, this is wrong. It should be 'seperator' (neither 'sepErator', nor the correctly spelled 'separator'). I don't know how that happened, but I suggest to change it, and to check whether the site still works.Korwin wrote: ↑Sun Sep 22, 2019 2:06 pmI noticed a strange variable name.Code: Select all
$cf['uri']['sepErator']="/"; - is it right?
And there is. After adjusting the specified lines on a clean CMSimple_XH 1.72, everything works, after installing new files "cms.php" and "functions.php" on the site, I learned a message:cmb wrote: ↑Wed Sep 25, 2019 11:18 pmIndeed, there is a bug. $su is taken from the QUERY_STRING, and this is not urldecoded (at least not on IIS where I'm checking, but I think it is not urldecoded on other servers as well). So if someone is requesting http://example.com/?Content/Inhalt-%5Bde%5D, $su is "Content/Inhalt-%5Bde%5D", so the $cf['uri']['length'] cut would shorten the URL more than desired, and could even split in the middle of a urlencoded character, resulting in an invalid URL. A quick-fix might be to replace this line with:And to adjust this line accordingly. Not sure if that's correct for all (edge-)cases. And it doesn't look clean, anyway.Code: Select all
$su = utf8_substr($su, 0, $cf['uri']['length'] + 2 * substr_count($su, '%'));
Twocents_XH detected an unsupported CMSimple_XH version.
Uninstall Twocents_XH or upgrade to a supported CMSimple_XH version!
anscheinend hast du eine Masterversion von XH 1.7.2 installiert und nicht das Release.Korwin wrote: ↑Sun Sep 22, 2019 2:06 pmAnd there is. After adjusting the specified lines on a clean CMSimple_XH 1.72, everything works, after installing new files "cms.php" and "functions.php" on the site, I learned a message:Twocents_XH detected an unsupported CMSimple_XH version.
Uninstall Twocents_XH or upgrade to a supported CMSimple_XH version!
Bei der Masterversion wird folgendes angezeigt:CMSimple_XH 1.7.2 Released: 2017-12-21
"@CMSIMPLE_XH_VERSION@ Released: @CMSIMPLE_XH_DATE@"
Code: Select all
$su = utf8_substr($su, 0, $cf['uri']['length'] + 2 * substr_count($su, '%'));
Code: Select all
$u[] = utf8_substr($url, 0, $cf['uri']['length']) + 2 * substr_count($u, '%'));
Code: Select all
$su = utf8_substr($su, 0, $cf['uri']['length'] + 2 * substr_count($su, '%'));
Code: Select all
$u[] = utf8_substr($url, 0, $cf['uri']['length']) + 2 * substr_count($u, '%'));
Ich habe das mal mit folgendem Seitennamen und einer Unterseite lokal mit Xampp mit frisch installiertem XH 1.7.2 getestet
Code: Select all
Не хлебом единым сыт человек - Не хлебом единым сыт человек
Code: Select all
а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я
Code: Select all
$cf['uri']['seperator']="/";
$cf['uri']['word_separator']="-";
$cf['uri']['length']="600";