Google Sitemap

Begonnen von smartmusic, 23 Mai 2006, 10:45:12

« vorheriges - nächstes »

0 Mitglieder und 1 Gast betrachten dieses Thema.

smartmusic

hallo,

ich bekomme bei meiner ggogle sitemap immer folgende fehler:
Ungültiger Tag-Wert (Zeile 1027)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,6" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1032)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,6" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1197)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,4" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1202)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,4" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1207)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,4" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1212)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,3" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1217)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,3" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1222)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,2" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1227)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,2" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 
Ungültiger Tag-Wert (Zeile 1232)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,2" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein. Mehr 


woran kann das liegen????

munzur

Hi,

Hast du an der "google_sitemap.php" was umgeändert?

L.g
"Debug-Mode" einschalten.
"SQL-Fehler anzeigen" einschalten
und evt. auftauchende Fehlermeldungen posten .

smartmusic

nein garnichts...hatte sie extra nochmal neu runtergeladen.


munzur

Hi,

Denke mal die Zeilen mit der Fehlermeldung beziehen sich auf die erstellte .xml Datei.
Schau mal was die Zeilen von den anderen unterscheidet.

L.g
"Debug-Mode" einschalten.
"SQL-Fehler anzeigen" einschalten
und evt. auftauchende Fehlermeldungen posten .

smartmusic

hi,

so viele zeilen hat überhaupt nicht meine google_sitemap.php

woran kann das liegen????

m-t

Zitat von: smartmusic am 23 Mai 2006, 10:45:12
hallo,
ich bekomme bei meiner ggogle sitemap immer folgende fehler:
Ungültiger Tag-Wert (Zeile 1027)  Das Tag <priority> in der Beschreibung von <url> weist den ungültigen Wert "0,6" auf. Bitte beheben Sie das Problem und reichen Sie die Daten erneut ein.

Das 0,6 sollte eigentlich 0.6 sein.

Zeig doch mal den Link zur Sitemap


m-t

Das "Komma" ist nur in den News und den Web Links, komisch..

Du hast sicher nix an der google_sitemap.php geändert

smartmusic

habe sie gerade nochmal so runtergeladen

<?php
/************************************
 pragmaMx  Content Management System
 Copyright (c) 2005 pragmaMx Dev Team - http://pragmaMx.org
 ***********************************
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 ***********************************
 $Source: /home/cvs/pragmamx/stable/google_sitemap.php,v $
 $Revision: 1.5 $
 $Author: tora60 $
 $Date: 2005/10/09 17:53:15 $
************************************/

include_once('mainfile.php');

/////////////////////  Konfiguration  ///////////////////////////////

/// Schlüsselbegriffe, die die Wertigkeit der einzelnen Links 
/// erhöhen, wenn sie im Text oder Titel vorkommen
$keywords = array('pragmamx', 'vkpMx', 'VKP', 'php', 'shiba');

/// Maximale Anzahl der Artikel/Links pro Modul
$limit = 30;

/// Module, die in der Gesamtliste der Module nicht erscheinen sollen, 
/// das betrifft nur den Link zum Modul selbst
$excludemodules = array('blank_Home', 'User_Registration', 'Userinfo', 'Avatar');

/////////////////////  Ende der Konfiguration  ///////////////////////////////


// eventuelle Ausgaben zwischenspeichern, um sie später zu verwerfen ;)
ob_start();

#error_reporting(E_ALL);
error_reporting(0);
$i = 0;
$item = array();
$keywords = implode('|', $keywords);

/// alle Module
$modules = sql_query("SELECT title FROM ".$prefix."_modules WHERE active=1 AND view=0");
while (list(
$modulename) = sql_fetch_row($modules)) {
$i++;
    
// variable zum prüfen, ob Modul aktiv
$modcheck[$modulename] = 1;
if (!in_array($modulename, $excludemodules))
$item[$i]['link'] = MX_HOME_URL."/modules.php?name=".$modulename;
}


function 
storiescat() {
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("News"))
return;
$result = sql_query("SELECT DISTINCT c.catid, c.title, MAX( UNIX_TIMESTAMP(s.time) ) AS sTime
FROM `
{$prefix}_stories_cat` AS c
LEFT JOIN 
{$prefix}_stories AS s ON ( c.catid = s.catid )
WHERE s.catid IS NOT NULL AND `time` <= now()
GROUP BY c.catid
LIMIT "
.$limit);
if ($result) {
   
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL."/modules.php?name=News&file=categories&op=newindex&catid=".$row->catid;
   
if (preg_match('#('.$keywords.')#i',$row->title)) 
$row->sTime = time();
$item[$i]['date'] = intval($row->sTime);
}
    }
}


function 
topics() {
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("News") || !google_allowed("Topics"))
return;
$result = sql_query("SELECT DISTINCT t.topicid, t.topicname, MAX( UNIX_TIMESTAMP(s.time) ) AS sTime
FROM `
{$prefix}_topics` AS t
LEFT JOIN 
{$prefix}_stories AS s ON ( t.topicid = s.topic )
WHERE s.topic IS NOT NULL AND `time` <= now()
GROUP BY t.topicid
LIMIT "
.$limit);
if ($result) {
   
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL."/modules.php?name=News&new_topic=".$row->topicid;
   
if (preg_match('#('.$keywords.')#i',$row->topicname))
$row->sTime = time();
   
$item[$i]['date'] = intval($row->sTime);
}
    }
}


function 
stories() {
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("News"))
return;
$result = sql_query("SELECT sid, title, hometext, UNIX_TIMESTAMP(time)AS date FROM ".$prefix."_stories WHERE `time` <= now() ORDER BY `time` DESC limit ".$limit);
if ($result) {
   
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL."/modules.php?name=News&file=article&sid=".$row->sid;
   
if (preg_match('#('.$keywords.')#i',$row->title.$row->hometext))
$row->date = time();
   
$item[$i]['date'] = intval($row->date);
}
    }
}


function 
content() {
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("Content"))
return;
$result = sql_query("SELECT pid, title, subtitle, page_header, text, page_footer, signature, UNIX_TIMESTAMP(date) AS date FROM ".$prefix."_pages WHERE `active` = 1 ORDER BY `date` DESC limit ".$limit);
if ($result) {
   
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL."/modules.php?name=Content&pa=showpage&pid=".$row->pid;
   
if (preg_match('#('.$keywords.')#i',$row->title.$row->subtitle.$row->page_header.$row->text.$row->page_footer.$row->signature))
$row->date = time();
   
$item[$i]['date'] = intval($row->date);
}
    }
}


function 
contentcat() {
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("News"))
return;
$result = sql_query("SELECT DISTINCT c.cid, c.title, MAX( UNIX_TIMESTAMP(p.date) ) AS pDate
FROM `
{$prefix}_pages_categories` AS c
LEFT JOIN 
{$prefix}_pages AS p ON ( c.cid = p.cid )
WHERE p.cid IS NOT NULL AND `date` <= now()
GROUP BY c.cid
LIMIT "
.$limit);
if ($result) {
   
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL."/modules.php?name=Content&pa=list_pages_categories&cid=".$row->cid;
   
if (preg_match('#('.$keywords.')#i',$row->title))
$row->pDate = time();
   
$item[$i]['date'] = intval($row->pDate);
}
    }
}


function 
links() {
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("Web_Links"))
return;
$result = sql_query("select lid, title, description, UNIX_TIMESTAMP(date) AS datum, submitter from ".$prefix."_links_links order by date DESC limit ".$limit);
if ($result) {
   
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL."/modules.php?name=Web_Links&l_op=viewlinkdetails&lid=".$row->lid."&ttitle=".urlencode(trim($row->title));
   
if (preg_match('#('.$keywords.')#i',$row->title.$row->description))
$row->datum = time();
   
$item[$i]['date'] = intval($row->datum);
}
    }
}


function 
downloads() {
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("Downloads"))
return;
$result = sql_query("select lid, title, description, UNIX_TIMESTAMP(date) AS datum, submitter from ".$prefix."_downloads_downloads order by date DESC limit ".$limit);
if ($result) {
   
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL."/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=".$row->lid."&ttitle=".urlencode(trim($row->title));
   
if (preg_match('#('.$keywords.')#i',$row->title.$row->description))
$row->datum = time();
   
$item[$i]['date'] = intval($row->datum);
}
    }
}


function 
eBoard($modname) {
global $limit, $prefix, $i, $item;
if (!google_allowed($modname))
return;
if (!@include("modules/".$modname."/settings.php"))
return;
$result = sql_query("SELECT a.tid, a.subject, a.message, a.lastpost, a.dateline, b.private, b.userlist FROM ".$table_threads." AS a LEFT JOIN ".$table_forums." AS b ON a.fid =b.fid WHERE private='' AND userlist='' ORDER BY a.lastpost DESC limit ".$limit);
if ($result) {
   
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL."/modules.php?op=modload&name=".$modname."&file=viewthread&tid=".$row->tid;
           
$item[$i]['date'] = intval(substr($row->lastpost,0,(strpos($row->lastpost, "|"))));
}
    }
}

/// SMF-Forum
function simple($modname) {
global $limit, $prefix, $i, $item;
if (!google_allowed($modname))
return;
if (!@include("modules/".$modname."/smf/Settings.php"))
return;
$result= sql_query("SELECT
m.smileysEnabled, m.posterTime, m.ID_MSG, m.subject, m.body, t.ID_TOPIC, t.ID_BOARD,
b.name AS bname, t.numReplies, m.ID_MEMBER, IFNULL(mem.realName, m.posterName) AS posterName,
mem.hideEmail, IFNULL(mem.emailAddress, m.posterEmail) AS posterEmail
FROM "
.$db_prefix."topics AS t, ".$db_prefix."messages AS m, ".$db_prefix."boards AS b
LEFT JOIN "
.$db_prefix."members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE b.ID_BOARD =  t.ID_BOARD
AND m.ID_MSG = t.ID_LAST_MSG
AND FIND_IN_SET(-1, b.memberGroups)
ORDER BY m.ID_MSG DESC
LIMIT "
.$limit);
if ($result) {
while ($row = sql_fetch_object($result)) {
$i++;
    $item[$i]['link'] = MX_HOME_URL."/modules.php?name=".$modname."&topic=".$row->ID_TOPIC.".msg".$row->ID_MSG."#msg".$row->ID_MSG;
    $item[$i]['date'] = intval($row->posterTime);
}
}
}

/// Coppermine 1.3.x
function coppermine13($modname) {
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed($modname))
return;
// Coppermine configuration file
if (!is_file('modules/'.$modname.'/blocks.inc.php'))
return;
include('modules/'.$modname.'/blocks.inc.php');
$qry = "
SELECT p.pid, p.ctime, p.url_prefix, p.filename, p.caption, p.keywords, p.title, p.aid 
FROM 
$CONFIG[TABLE_PICTURES] AS p INNER JOIN $CONFIG[TABLE_ALBUMS] AS a ON (p.aid = a.aid) 
WHERE p.approved='YES' AND "
.$vis_groups." 
ORDER BY p.pid DESC 
LIMIT 
$limit
"
;
$result = sql_query($qry);
if ($result) {
$pic = 0;
while ($row = sql_fetch_object($result)) {
$i++;
   
$item[$i]['link'] = MX_HOME_URL.'/modules.php?name='.$modname.'&file=displayimage&album=lastup&cat=0&pos=' . $pic;
   
if (preg_match('#('.$keywords.')#i',$row->filename.$row->caption.$row->keywords.$row->title))
$row->ctime = time();
   
$item[$i]['date'] = intval($row->ctime);
    $pic++;
}
    }
}



function 
google_allowed($module) {
global $modcheck;
return isset($modcheck[$module]);
}


function 
google_priority($date) {
$erg = (time() - intval($date))/60/60/24;
if ($erg>0)
$erg = round(365/$erg)*0.1;
else 
$erg = 0.1;

if ($erg<0.1)
$erg = 0.1;
else if ($erg>1)
$erg = 1;
return $erg;
}

/// die Einzelnen Abfragen für die Module ausführen
topics();
storiescat();
stories();
content();
contentcat();
downloads();
links();
simple('Forum');
eBoard('eBoard');
coppermine13('Gallery');

#mxDebugFuncVars($item);

/// Ausgabe zunächst in einem Array zwischenspeichern
$out_array = array();
foreach(
$item as $i => $url) {
$priority = (isset($url['date'])) ? google_priority($url['date']) : '0.5';
$lastmod  = (isset($url['date'])) ? $url['date'] : time();
// der Schlüssel als Dezimalstring für die spätere Sortierung
$out_array[($priority*10).'.'.(10000-$i)] = '
<url>
<loc>' 
. htmlentities($url['link']) . '</loc>
<lastmod>' 
. strftime('%Y-%m-%d', $lastmod) . '</lastmod>
<priority>'
.$priority.'</priority>
</url>'
;
#  <changefreq>always</changefreq>
}

// das Array, nach der Wertigkeit (Schlüssl) abwärts sortieren
krsort($out_array);

// das Array jetzt in den String umwandeln
$out = implode('', $out_array);


/// Ersetzen der Links in ein suchmaschinenfreundliches Format.
/// Der Ausgabepuffer wurde in mx_baseconfig explizit gestartet!
/// falls doch leer, ist nix mit mod_rewrite
if (!empty($GLOBALS['mxUseModrewrite']['anony']) && $out) {
if (is_file('.htaccess') && is_file('includes/mx_modrewrite.php')) {
@ include_once('includes/mx_modrewrite.php');
if (function_exists('mxPrepareModRewrite')) {
// den <loc> Tag gegen <link> Tag austauschen, weil den nur prepareauto() versteht
$out = preg_replace('#(</?)loc>#', '\1link>', $out);
// output mit normaler mod_rewrite Funktion umschreiben
$out = mxPrepareModRewrite($out);
// <lo> Tag wieder zurück...
$out = preg_replace('#(</?)link>#', '\1loc>', $out);
}
}
}


// eventuelle Script oder Fehlerausgaben verwerfen
while(ob_get_contents())
ob_end_clean();

// XML Header senden
header("Content-Type: text/xml");

// Ausgabe fertigstellen mit Kopf und Fuss
echo '<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
', $out, '
</urlset>';

m-t

ist identisch mit meiner, da musst wohl warten bis einer kommt der sich da besser auskennt :-)

Andi

Hi :)

komisch, irgendetwas verändert das Dezimalzeichen von Punkt zu Komma....

Welche Sprache ist bei dir als Standardsprache eingestellet?
Probier mal, ob das Phänomen auch ist, wenn du deutsch einstellst.

Wenn das nix bringt, dann kommentiere mal die einzelnen Zeilen Schrittweise von unten aus, bis der Fehler weg ist.
/// die Einzelnen Abfragen für die Module ausführen
topics();
storiescat();
stories();
content();
contentcat();
downloads();
links();
simple('Forum');
eBoard('eBoard');
coppermine13('Gallery');


also zuerst coppermine, dann eboard, usw...
Schrittweise
schön´s Grüssle, Andi

smartmusic

hi,

wo meinst du denn das mit der standardaprache?

unter einstellungen im pragma oder auf dem server?

Andi

Moin :)

diese:
Zitatunter einstellungen im pragma
schön´s Grüssle, Andi