Author |
Message |
Susann
Moderator
![](modules/Forums/images/avatars/4e3210db4efb891870d79.gif)
Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Sun Dec 18, 2005 8:01 am |
|
I´ve checked the backend.php but whenever I click on the backend.php I get a XML error.
The result from: http://feedvalidator.org
This feed does not validate.
line 23, column 321: Undefined named entity: auml (9 occurrences).
This means I have a problem with the German ä,ü,ö. I ´don´t like to write ae instead of ä or ue for ü.Is there any other solution for this problem ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Sun Dec 18, 2005 10:24 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 18, 2005 10:42 am |
|
I was only wondering that I´ve never had this problem before with my backend.php in Nuke 6.5.
But very interested links. Thanks Hitwalker. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 18, 2005 11:17 am |
|
well i asume you checked your backend before...so maybe something has changed from your side... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Dec 19, 2005 8:50 am |
|
I did´t check the backend.php after install. So I don´t know exactly since when this problem exist. But I´m using the original backend.php however have checked some other validators after I changed the ä and the ß and indeed I´ve got some other results. Was something like this RSS feed validates !" or "This Page Is Valid -//Netscape Communications//DTD RSS 0.91//EN!
XML
Used Charset:
US-ASCII
Source:
Fallback
http://www.validome.org is now my favorite, because my feed is valid there !
http://validator.w3.org/ I´ve got:
"missing "charset" attribute for "text/xml" document.
The HTTP Content-Type header (text/xml) sent by your web server (Apache/1.3.27 (Linux/SuSE) did not contain a "charset" parameter, but the Content-Type was one of the XML text/* sub-types.
The relevant specification (RFC 3023) specifies a strong default of "us-ascii" for such documents so we will use this value regardless of any encoding you may have indicated elsewhere.
If you would like to use a different encoding, you should arrange to have your server send this new encoding information."
Ok, I `added the charset into the line:
header("Content-Type: text/xml;charset=iso-8859-1");
But couldn´t solve my ä,ü,ö,ß problem. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Dec 19, 2005 8:58 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Dec 19, 2005 9:38 am |
|
Thanks for the link.It´s a very helpful address. I´ve spent yesterday a lot of time with your links above and I have read about different RSS problems and enties at http://de.php.net/htmlentities
But you can read and don´t understand anything, you know that´s the problem. Well, I hope I can fix this after christmas. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FireATST
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/1890b00a421a4615ecd23.jpg)
Joined: Jun 12, 2004
Posts: 654
Location: Ohio
|
Posted:
Mon Dec 19, 2005 10:52 am |
|
hitwalker wrote: | well i asume you checked your backend before... |
Now hitman, that line got my attention.....lol.... ![killing me](modules/Forums/images/smiles/killingme.gif) |
|
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Dec 19, 2005 6:41 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
cacat
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Nov 23, 2005
Posts: 43
|
Posted:
Wed Dec 21, 2005 2:11 am |
|
i have even a simpler solution, just download phpnuke 7.8 and replace you have wih the one from the new distribution.
works like acharm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 21, 2005 5:53 am |
|
Well, it´s my GT testsite and it´s only a question of time to find out why the backend.php doesn´t work with ä,ü,ß. I´m not interested in higher Nuke versions. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
cacat
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 21, 2005 9:50 am |
|
what i meant to said is download 7.8 and use the file backend.php from there and ONLY that file. nothing else. give it a try, it worked for my site (we use a lot of ø)
i am using ravens 7.6 with the backend.php from 7.8 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Dec 21, 2005 10:14 am |
|
Susann, if you can verify that cacat's suggestion works for you, I will modify the next release to include the v7.8 backend.php file. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 21, 2005 4:50 pm |
|
Really, I don´t believe it! How is this possible ? I´ve deinstalled my GT completly.Checked the original backend.php from the distro and the new 7.8 backend.php from a German site but always with the same errors.
Ok, now the surprise I have just downloaded the 7.8 from nuke.org and it works perfect.Cacat you are the hero of the day ! Thanks a lot.
![Cheers](modules/Forums/images/smiles/cheers.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
cacat
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 21, 2005 5:18 pm |
|
LOL, thank you
![Wave](modules/Forums/images/smiles/mexicanwave.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 21, 2005 9:12 pm |
|
I just ran a compare and I see that htmlentities() and htmlspecialchars() have been swapped in the 3.1 patches. That's my guess as to the problem right there. But, there are other safety issues in 7.8 that you do need, so don't just throw the baby out with the bath water. Here is a Unix diff report.
16d15
< include("includes/ipban.php");
19,22c18,21
< $cat = intval($cat);
< if ($catid == "") {
< $catid = $db->sql_fetchrow($db->sql_query("SELECT catid FROM ".$prefix."_stories_cat WHERE title LIKE '%$cat%' LIMIT 1"));
< if ($cat != "") {
---
> if (isset($cat) && !empty($cat)) {
> $cat = htmlentities($cat);
> list($catid) = $db->sql_fetchrow($db->sql_query("SELECT catid FROM ".$prefix."_stories_cat WHERE title LIKE '%$cat%' LIMIT 1"));
> if (empty($catid)) {
37c36
< echo "<title>".htmlspecialchars($sitename)."</title>\n";
---
> echo "<title>".htmlentities($sitename)."</title>\n";
39c38
< echo "<description>".htmlspecialchars($backend_title)."</description>\n";
---
> echo "<description>".htmlentities($backend_title)."</description>\n";
42,43c41,42
< while ($row = $db->sql_fetchrow($result)) {
< $rsid = intval($row['sid']);
---
> while (list($rsid, $rtitle, $rtext) = $db->sql_fetchrow($result)) {
> $rsid = intval($rsid);
44,45d42
< $rtitle = $row['title'];
< $rtext = $row['hometext'];
47c44
< echo "<title>".htmlspecialchars($rtitle)."</title>\n";
---
> echo "<title>".htmlentities($rtitle)."</title>\n";
49c46
< echo "<description>".htmlspecialchars($rtext)."</description>\n";
---
> echo "<description>".htmlentities($rtext)."</description>\n"; |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Dec 22, 2005 4:53 pm |
|
This is a valid RSS feed ! My problem is fixed. Thank you ! But why should I use the line: include("includes/ipban.php"); ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|