This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

subscribers not logging out after posting comment
#1

I have installed ver 1.8 on my development platform that was working nicely for the first few tests. After several correct entries, the subscriber info stopped clearing on the form even though the comments were posted. Enabled error reporting and got a frontend error and a backend error.
Frontend:
[10-Apr-2012 17:04:42] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/content/31/6543031/html/zbt_dev/functions.php:1) in /home/content/31/6543031/html/zbt_dev/comments/captcha/securimage.php on line 412
Backend:
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/index.php on line 29
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/index.php on line 53
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/index.php on line 53
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/index.php on line 53
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/index.php on line 65
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/index.php on line 79
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/index.php on line 184
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/index.php on line 264
[10-Apr-2012 17:05:42] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_dev/comments/bartendercontrolcenter/includes/pages/dashboard.php on line 29

I examined the code on the referenced pages, but it's over my head. I'm wondering if I have incorrectly set a variable in the admin panel.

I would appreciate any help in solving this problem.
Thanks. Jim
Reply
#2

Hi,

Open /zbt_dev/functions.php and check for any spaces or lines at the very beginning of the file. Use this FAQ to help:
http://www.commentics.org/support/knowle...article=30

The backend errors are only notices so they are not important. I'll look into it but they shouldn't be causing any issues.

Have you completed the interview?
Reply
#3

Thanks Steven, for your reply. I'm aware of the problems that can be caused by extra spaces in php. I have checked and not found my errors. I have a basic website and two addins--a slideshow and commentics. The two addins both use templates, css files and headers. After getting everything working, I attempted to consolidate the separate header information into my single header.php file included on each of the pages. I think my errors lie here. I am going back and reinstalling everything to get it working again. Then, I will be very careful about making changes and trying to integrate the code.

Thanks.
Jim
Reply
#4

How do I do a clean install from scratch. Twice today, I deleted the comments folders and dropped the tables from the database. Yet, I still get the same errors on the backend. There are no errors reported for the front end. The problem occurs when I use example4.php instead of my own pages. Any ideas or suggestions would be most appreciated. I'm at my wits end for the night.

Thanks.
Jim
Reply
#5

I am still working on the problem of the name, email address not clearing from the form when a comment is submitted. I am woking with example4.php to get things operational. When I submit a comment, the comment is written to the database, the subscriber is written to the subscribers table, and the page appears in the pages table. The comment clears but the other information does not.

Here are the error messages when I submit a comment. They are like the previous error messages.

[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in
/home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/index.php on line 29
[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/index.php on line 53
[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/index.php on line 53
[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/index.php on line 53
[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/index.php on line 65
[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/index.php on line 79
[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/index.php on line 184
[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/index.php on line 264
[24-Apr-2012 10:00:13] PHP Notice: Undefined index: page in /home/content/31/6543031/html/zbt_comments/comments/bartendercontrolpanel/includes/pages/dashboard.php on line 29

This is the line of code on line 29 of the index.php page in the admin folder:
if ($_GET['page'] == "log_out") {

session_destroy();

header("Location: index.php?action=logout");
}

Line 29 on dashboard.php is
<a class='page_help_text' href="http://www.commentics.org/wiki/doku.php?id=admin:<?php echo $_GET['page']; ?>"

target="_blank"><?php echo CMTX_LINK_HELP ?></a>

The other lines of code also seem to be looking for 'page'.

I am not getting any frontend errors now, only backend ones quoted above.

Thanks for any assistance with this perplexing problem.

Jim
Reply
#6

Hi,

The script is meant to remember the user's name and email address (as well as their website, town and country if entered). It uses a cookie called 'Commentics-Form' to do this. So it's expected that the name and email address do not clear. This makes it quicker and easier for them to submit another comment, as they don't have to type their details again. If you open the page in another web browser, one which you have not posted with, then the form should be clear.

Have you completed the interview?
Reply
#7

Now, I understand. Thanks for the explanation, Steven.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
29-Sep-2021, 11:41 AM
Last Post by afoster
02-Aug-2020, 10:40 PM
Last Post by Steven
10-Jan-2018, 09:58 PM
Last Post by noblues
08-Mar-2015, 05:08 PM
Last Post by 2hands
28-Dec-2013, 07:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)