Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
<?php require("pics/gallery.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
// Start the session
if (!headers_sent() && !session_id()) {
// Set the session.save_path if user defined in plog-config
if (defined('PLOGGER_SESSION_SAVE_PATH') && PLOGGER_SESSION_SAVE_PATH != '') {
session_save_path(PLOGGER_SESSION_SAVE_PATH);
}
session_name('Plogger');
session_start();
}
// Start the session
if (!headers_sent() && !session_id()) {
// Set the session.save_path if user defined in plog-config
if (defined('PLOGGER_SESSION_SAVE_PATH') && PLOGGER_SESSION_SAVE_PATH != '') {
session_save_path(PLOGGER_SESSION_SAVE_PATH);
}
// Set the session.cookie_domain if not already set
if (!ini_get('session.cookie_domain')) {
// To clear up any embed issues we set the cookie domain to the SERVER_NAME (if set)
if (isset($_SERVER['SERVER_NAME'])) {
$server_name = @ini_set("session.cookie_domain", $_SERVER['SERVER_NAME']);
} else {
$server_name = false;
}
// Otherwise, we just create a generic session name
if ($server_name === false) {
session_name('Plogger');
}
}
session_start();
}
// Start the session
if (!headers_sent() && !session_id()) {
// Set the session.save_path if user defined in plog-config
if (defined('PLOGGER_SESSION_SAVE_PATH') && PLOGGER_SESSION_SAVE_PATH != '') {
session_save_path(PLOGGER_SESSION_SAVE_PATH);
}
ini_set('session.cookie_domain', '.northlakesfireandrescue.org');
session_start();
}
if (isset($_POST['plogger-token']) && $_POST['plogger-token'] === $_SESSION['plogger-token']) {
} else {
// Missing form token
$errors = array(plog_tr('Spam token missing or does not match!'));
}
header('Location: '.$redirect);
header('Location: http://www.northlakesfireandrescue.org/beta/photos.php?level=picture&id='.$parent_id);
// Start the session
if (!headers_sent() && !session_id()) {
// Set the session.save_path if user defined in plog-config
if (defined('PLOGGER_SESSION_SAVE_PATH') && PLOGGER_SESSION_SAVE_PATH != '') {
session_save_path(PLOGGER_SESSION_SAVE_PATH);
}
session_name('Plogger');
session_set_cookie_params(0, '\', $_SERVER['SERVER_NAME']);
session_start();
}
<?php echo plogger_get_form_token(); ?>
from your comments.php file. You need to include this between the <form> and </form> elements if you are upgrading and using an old theme file (this is displayed if you go to your Admin -> Themes tab). This should clear things up for you.'.plogger_get_form_token().'
instead (assuming that the quotes are single quotes and not double quotes).print '<a name="comment-post"></a><h2 class="comment-heading">Post a comment:</h2>
<form action="' . $config["gallery_url"] . 'plog-comment.php" method="post" id="commentform">
<p>
<input type="text" name="author" id="author" class="textarea" value="" size="28" tabindex="1" />
<label for="author">Name</label> (required) <input type="hidden" name="comment_post_ID" value="40" />
<input type="hidden" name="parent" value="'.plogger_get_picture_id().'" />
</p>
<p>
<input type="text" name="email" id="email" value="" size="28" tabindex="2" />
<label for="email">E-mail</label> (required, but not publicly displayed)
</p>
<p>
<input type="text" name="url" id="url" value="" size="28" tabindex="3" />
<label for="url">Your Website (optional)</label>
</p>
<p>
<label for="comment">Your Comment</label>
<br /><textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
</p>
<p>
<input class="submit" name="submit" type="submit" tabindex="5" value="Post Comment!" />
</p>
'.plogger_get_form_token().'
</form>';
Posted By: sidtheduckOkay, I just tested on my server and received the same error. The only thing I can think of is that the session_start is being called from different locations on the server (the first from the root folder with photos.php and the second from plog-comment.php). I don't know why this is an issue as I swear I've used this in scripts in the past.I think I finally have a solution to this. I was running into issues within an embedded gallery, but only ON THE FIRST ATTEMPT. After I received the error, I was able to successfully post a comment.
1 to 18 of 18