 |
 |
 |
 |
 |
| Author |
Message |
spyce
Joined: 15 Jul 2007 Posts: 14
|
|
Protected posts- error |
|
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: 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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Make sure that you include head.php on your page above everything else.
|
|
| Wed Jul 18, 2007 5:00 pm |
|
 |
spyce
Joined: 15 Jul 2007 Posts: 14
|
|
|
|
I tried that... currently my code is as follows:
 |  | <?php include('cms/head.php'); ?>
<html>
<head>
<title>\\ && \\ ++ 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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
I don't know then. Sorry.
|
|
| Wed Jul 18, 2007 6:22 pm |
|
 |
spyce
Joined: 15 Jul 2007 Posts: 14
|
|
|
|
I got somebody else to help me- he had an alternative way of calling up the header:
 |  | ?>
<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 |
|
 |
spyce
Joined: 15 Jul 2007 Posts: 14
|
|
|
|
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 |
|
 |
|
|
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
|
|
 |
 |
 |
|