RSS Feed - White Page

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Jens*
Posts: 56
Joined: Fri 18. Jun 2004, 18:53

RSS Feed - White Page

Post by Jens* »

My problem is, as soon as i integrate an RSS Feed on a page, the complete page ist white. The Source Code is blank, too.
I don't know were the problem is.

I use the latest CVS Version ..

Jens
http://www.study-board.de :: Das Studenten Portal
Die Kompetenzseite für alle Fragen rund um die BWL/VWL
und das wirtschaftswissenschaftliche Studium
Jens*
Posts: 56
Joined: Fri 18. Jun 2004, 18:53

Post by Jens* »

Allways the same problem:

with Error Reporting E_ALL...

Notice: Undefined property: MagpieRSS::$source_encoding in /var/www/vhosts/httpdocs/include/inc_front/content/cnt22.article.inc.php on line 69

Any Idea?

Using php 5.1.2

thx, jens
http://www.study-board.de :: Das Studenten Portal
Die Kompetenzseite für alle Fragen rund um die BWL/VWL
und das wirtschaftswissenschaftliche Studium
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

I just had that problem recently and it was caused by a mistake I made in the default.html page for the rss script.
Jens*
Posts: 56
Joined: Fri 18. Jun 2004, 18:53

Post by Jens* »

ok, i know where the problem is.. I use the Skript to login into my board software (wbb 2.3.4). {php:logboard.php}

Code: Select all

<?php
@error_reporting( E_ALL );
if(!is_readable('./includes/configfile.php')) die("Keine Konfigfile vorhanden");
require('./includes/configfile.php'); 


$login = true;

?>



<?php

if($_COOKIE[COOKIEPREF . 'cookiehash'] OR ($_COOKIE[COOKIEPREF . 'userid'] AND $_COOKIE[COOKIEPREF . 'userpassword'])) {
 if(!$mysql = @mysql_connect($server, $user, $pass)) die ("Konnte MySQL-Server nicht erreichen.");
 if(!@mysql_select_db($dbaseforum, $mysql)) die ("Konnte die Datenbank nicht aufrufen.");

 unset($pass,
       $user);

 if(isset($_COOKIE[COOKIEPREF . 'cookiehash'])) {
  $select = @mysql_query("SELECT * FROM bb". BOARDNR ."_sessions WHERE sessionhash = '".$_COOKIE[COOKIEPREF . 'cookiehash']."' AND ipaddress = '".addslashes(getIpAddress())."' AND useragent = '".addslashes(substr($_SERVER['HTTP_USER_AGENT'], 0, 100))."'");

  if(@mysql_num_rows($select) > 0) {
   $sessiondata = @mysql_fetch_array($select);
   if($sessiondata['sessionhash'] !== '') {
    $userid = $sessiondata['userid'];
    if($userid > 0) {
     $login = false;
    }
   }
  }
  @mysql_free_result($select);
 }

 if($login === false) {

  $select = @mysql_query("SELECT *
   FROM bb" . BOARDNR . "_users
   WHERE 
   userid = '" . intval($_COOKIE[COOKIEPREF . 'userid']) . "' AND password = '" . addslashes($_COOKIE[COOKIEPREF . 'userpassword']) . "'");
  
  if(@mysql_num_rows($select) > 0) {
   $user = @mysql_fetch_array($select);
   if(($user['userid'] == $_COOKIE[COOKIEPREF . 'userid']) AND ($user['password'] == $_COOKIE[COOKIEPREF . 'userpassword'])) {
    $userid = $user['userid'];
   } else {
    $login = true;
   }
  }
  @mysql_free_result($select);
 }
}

if($login === true) {

?>


                     <form id="loginForm" method="post" action="<? print BOARDURL; ?>/login.php">
                     <input type="hidden" name="send" value="send" />
                    <input type="hidden" name="sid" value="" />
                    
                    <span class="smallfont">Benutzername</span><br/>

                    <span class="smallfont"><input type="text" name="l_username" maxlength="50" size="20" class="inputborder" value="<?php print $l_username; ?>" onfocus="if (this.value == 'Username') this.value = '';" tabindex="1" /></span><br/>
                    <span class="smallfont">Passwort</span><br/>
                    <span class="smallfont"><input type="password" name="l_password" maxlength="30" size="20" class="inputborder" tabindex="2" /></span>

                    <div style="padding-top:6px;"></div>
	            
                    <div style="text-align:right;"><input type="submit" value="Anmelden" class="sidebarinput" tabindex="4" /></div>
                    <input type="hidden" name="send" value="send" />
		<input type="hidden" name="url" value="<?php print LOGINURL; ?>/index.php?" />
                    </form>
                    <br/>
	    <a href="?op=resetPasswordForm">Haben Sie Ihr Kennwort vergessen?</a>	
                   
                     </div>




<?php
} else {

?>
<div style="padding-top:6px;"></div>
Willkommen <?php print htmlspecialchars($user['username']); ?>!
<br />
<?php if($user['pmnewcount'] > 0) {
	print "<a href=\"".BOARDURL."/pms.php\">Private Nachrichten:</a>: ";
}else {
    print "Private Nachrichten: ";
}
	?>

<?php print $user['pmnewcount'];?> |
<?php print $user['pmunreadcount']; ?> |
<?php print $user['pminboxcount']; ?>
<br /><br />

<a href="<?php print BOARDURL; ?>/logout.php" title="Forum">Abmelden</a>
</div>
<?php
}
?>
Any idea why this won't work together?
http://www.study-board.de :: Das Studenten Portal
Die Kompetenzseite für alle Fragen rund um die BWL/VWL
und das wirtschaftswissenschaftliche Studium
Post Reply