Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Protected posts- error

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
Protected posts- error
Author Message
spyce



Joined: 15 Jul 2007
Posts: 14

Post Protected posts- error Reply with quote
I set up a test version of my blog with a protected post, and when I tried to access the post, I received this error:


Warning: Cannot modify header information - headers already sent by (output started at /home/spyce/public_html/files/localhost/blog/index.php:Cool in /home/spyce/public_html/files/localhost/blog/cms/plugins/protected-posts.php on line 78


Any idea what this means?
Tue Jul 17, 2007 6:50 pm View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
Make sure that you include head.php on your page above everything else.
Wed Jul 18, 2007 5:00 pm View user's profile Send private message
spyce



Joined: 15 Jul 2007
Posts: 14

Post Reply with quote
I tried that... currently my code is as follows:

Code:
<?php include('cms/head.php'); ?>

<html>
<head>
<title>\\ && \\&nbsp;&nbsp;&nbsp;&nbsp;++&nbsp;&nbsp;&nbsp;&nbsp;vanilla-chai [dot] nu</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body background="images/bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="mainDiv"></div>
<div id="newsDiv"><?php
$page = $_GET['page'];
if ($page) {
$page = $page . '.php';
include($page);
}
else {
$template = 'General';
include $cutepath.'/show_news.php';
}
?></div>
<!-- NAV -->
<div id="nav"><img src="images/nav.gif" usemap="#nav" border="0">
<map name="nav">
<area shape="rect" coords="14,34,57,46" href="index.php?page=about">
<area shape="rect" coords="14,47,57,59" href="/artfolio">
<!-- <area shape="rect" coords="14,60,57,72" href="index.php?page=network"> -->
<area shape="rect" coords="14,74,57,86" href="/blog">
<!-- <area shape="rect" coords="14,87,57,99" href="index.php?page=hosting"> -->
<!-- <area shape="rect" coords="14,100,57,112" href="index.php?page=forum"> -->
<!-- <area shape="rect" coords="14,113,57,125" href="index.php?page=extra"> -->
<area shape="rect" coords="14,126,57,138" href="index.php">
</map></div>
<!-- /NAV -->
</body>
</html>


I'm receiving the same error.
Wed Jul 18, 2007 5:42 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
I don't know then. Sorry.
Wed Jul 18, 2007 6:22 pm View user's profile Send private message
spyce



Joined: 15 Jul 2007
Posts: 14

Post Reply with quote
I got somebody else to help me- he had an alternative way of calling up the header:

Code:
?>
<script> location="<?php echo $_SERVER['REQUEST_URI']; ?>"; </script>
<?php


I don't know if there's a way to implement that into the script, as an alternate way of access; just in case somebody else runs into an issue like mine. But I thought I'd let you know about it.

Anyway, the script is working now for the most part. I just now- when I log into my protected post, I am brought back to my main page... to see an example of what I'm talking about:

http://www.vanilla-chai.nu/files/localhost/blog/

The password for that first entry is jinxycat and the article text just reads dsfsdfzdf. What should I be looking for in the protected-posts.php to fix?
Thu Jul 19, 2007 3:24 am View user's profile Send private message
spyce



Joined: 15 Jul 2007
Posts: 14

Post Reply with quote
Sorry.... I don't mean to be a pest. But if I could please get some help- I was able to fix my original problems..... I'm just now having issues accessing a password protected entry using the protected-posts.php script. When I enter the password (jinxycat) in the field (@ http://www.vanilla-chai.nu/files/localhost/blog) I get returned to the same page. Go ahead and give this a try if you please, to see what I mean. The entry text simply reads dsfsdfzdf.

Any idea what I can do to try and fix this?
Sat Jul 21, 2007 10:09 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.