WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
There was an uncatched exceptionmalformed document createdin line (67) of (/modules/output_filter/filters/filterCssToHead.php):
$sql='SELECT `value` FROM `'.TABLE_PREFIX.'mod_'.$mod_name.'_item_fields` ' . 'WHERE `field_id` = '.(int)$iDescID.' ' . 'AND `item_id` = '.(int)$item['item_id'].' '; $sDescriptionField = $database->get_one($sql); $description = (!$iDescID ? stripslashes($item['description']) : $sDescriptionField);
<description><![CDATA[<?php echo $description; ?></description>
Warning: require(../../index.php): failed to open stream: No such file or directory in \html\reserviert02\august-von-der-basis.php on line 7Fatal error: require(): Failed opening required '../../index.php' (include_path='.;\PHP\PEAR;\PHP') in \html\reserviert02\august-von-der-basis.php on line 7
<?php$page_id = 6;$section_id = 96;$item_id = 1;$item_sid = 96;define("ITEM_ID", $item_id);require("../../index.php");?>
Woher weiß die obige Abfrage, dass es FIELD_2 nehmen soll?
Wahrscheinlich ist deine rss.php URL hinten mit &desc_id=2 oder weiter oben im Script ist $iDescID = 2; definiert.
Diese Abfrage holt genau 1 Ergebnis wegen $database->get_one($sql). Soll es mehr holen brauchts wieder eine Schleife um alles auszugeben. Oder so.
$iDescID = (isset($_GET['desc_id']) AND is_numeric($_GET['desc_id'])) ? $_GET['desc_id'] : ''; $iDateID = (isset($_GET['date_id']) AND is_numeric($_GET['date_id'])) ? $_GET['date_id'] : '';
$sql='SELECT `value` FROM `'.TABLE_PREFIX.'mod_'.$mod_name.'_item_fields` ' . 'WHERE `field_id` = '.(int)$iDateID.'' . 'AND `item_id` = '.(int)$item['item_id'].' '; $sDateField = $database->get_one($sql); $date = (!$iDateID ? stripslashes($item['date']) : $sDateField);
$description = OutputFilterApi('WbLink|ReplaceSysvar', $description);
$date = OutputFilterApi('WbLink|ReplaceSysvar', $date);
<description><![CDATA[<?php echo $description; ?> (<?php echo $date; ?>)]]></description>
//Generating the news items while ($item = $result->fetchRow( MYSQLI_ASSOC )) {
while ($item = $result->fetchRow( MYSQLI_ASSOC )) { // switch between group description and field description $sql='SELECT `value` FROM `'.TABLE_PREFIX.'mod_'.$mod_name.'_item_fields` ' . 'WHERE `field_id` = '.(int)$iDescID.' ' . 'AND `item_id` = '.(int)$item['item_id'].' '; $sql4='SELECT `value` FROM `'.TABLE_PREFIX.'mod_'.$mod_name.'_item_fields` ' . 'WHERE `field_id` = '.(int)$iDateID.'' . 'AND `item_id` = '.(int)$item['item_id'].' '; $sDescriptionField = $database->get_one($sql); $description = (!$iDescID ? stripslashes($item['description']) : $sDescriptionField); $sDateField = $database->get_one($sql4); $date = (!$iDateID ? stripslashes($item['date']) : $sDateField);
Parse error: syntax error, unexpected ''); ' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in /...../rss-dbs2.php on line 51
Könntest auch mal deine rss anhängen, sieht für mich so aus als ob du was anderes hast als ich.
require($inc_path.'/convert.php');
XML-Verarbeitungsfehler: Kein Wurzel-Element gefundenAdresse: http://.../rss-dbs2.phpZeile Nr. 16, Spalte 1:^
This page contains the following errors:error on line 15 at column 50: Extra content at the end of the documentBelow is a rendering of the page up to the first error.PAGE_TITLE - ... PAGE_DESCRIPTION ... WebsiteBaker CMS There was an uncatched exception Call to a member function numRows() on null in line (90) of (/modules/rss/include.php):
XML-Interpretation fehlgeschlagen: Syntaxfehler (Zeile: 16, Zeichen: 0)Dokument als HTML neu analysieren.Fehler:unexpected end-of-fileSpezifikation:http://www.w3.org/TR/REC-xml/ 13: There was an uncatched exception<br /> 14: Call to a member function numRows() on null<br /> 15: in line (90) of (/modules/rss/include.php):<br />
// Function to display featured events of the events module (invoke function from template or code page)if (!function_exists('oneforall_anyitems')) { function oneforall_anyitems(...
// Function to display featured events of the events module (invoke function from template or code page)if (!function_exists('rss')) { function rss($section_id, $num_of_items = 100, $order = true) {
if ($query_fields->numRows() > 0) {
<link rel="alternate" type="application/rss+xml" title="OFA_RSS-Feed Test" href="<?php echo WB_URL; ?>/modules/oneforall/ofa_rss.php" />
<?php // Item loop ofa_rss($section_id, $num_of_items=5, $order = 'ASC', $template = 'anderes_templates-statt-rss');