WordPress.org

Forums

No Comments - Been Working on This For 3 Days (26 posts)

  1. l1ght3mup
    Member
    Posted 7 years ago #

    Good Day... I would REALLY appreciate any help here. My comments are not posting.. I can see them in administration side of the wordpress application but they will not appear on my pages under 'comments' - IT IS DRIVING ME NUTS! :)

    I have been working on this for three days strait and can not resolve it...

    PLEASE HELP ME!

    <?php
    if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Access denied.');
    if (!empty($post->post_password))
    {
    	if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { ?>
    
    		<p class="nocomments"><?php _e('Enter your password to view comments.'); ?></p>
    
    	<?php
    		return;
    	}
    }
    ?>
    <h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?></h2>
    <?php if ($comments) : ?>
    	<ol class="commentlist">
    		<?php foreach ($comments as $comment) : ?>
    			<li id="comment-<?php comment_ID() ?>">
    				<big><?php comment_author_link() ?></big>
    				<?php if ($comment->comment_approved == '0') : ?>
    					<span class="await_mod">Await Moderation</span>
    				<?php endif; ?>
    				<span class="comment_data"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F j, Y') ?> @ <?php comment_time() ?></a></span>
    				<?php comment_text() ?>
    			</li>
    		<?php endforeach; ?>
    	</ol>
    <?php endif; ?>
  2. l1ght3mup
    Member
    Posted 7 years ago #

  3. l1ght3mup
    Member
    Posted 7 years ago #

    I will not that this is only happening to one theme... It works FINE with the rest!!!

    Here is my single.php:

    <?php get_header(); ?>
    	<?php if (have_posts()) : ?>
    		<div id="sidebarB">
    			<?php comments_template(); ?>
    		</div>
    		<div id="content">
    			<?php while (have_posts()) : the_post(); $loop2counter++; ?>
    				<div class="post" id="post-<?php the_ID(); ?>">
    					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    					<p class="details_small">
    						<?php the_category(', ') ?>
    						<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    					</p>
    					<?php the_content("<em>Continue on page " . $post->ID . "</em>"); ?>
    					<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    					<p class="date"><?php the_author(); ?> @ <?php the_time('F j, Y') ?></p>
    				</div>
    			<?php endwhile; ?>
    			<?php if ('open' == $post-> comment_status) : ?>
    				<h2 id="respond"><?php _e("Leave a comment"); ?></h2>
    				<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    					<p><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">Login</a></p>
    				<?php else : ?>
    					<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    						<?php if ( $user_ID ) : ?>
    							<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout</a></p>
    						<?php else : ?>
    							<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
    							<label for="author"><small>Name: <?php if ($req) _e('(required)'); ?></small></label></p>
    							<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
    							<label for="email"><small>Email: (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p>
    							<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    							<label for="url"><small>Web site</small></label></p>
    						<?php endif; ?>
    						<p class="allowed-tags"><small><strong>XHTML:</strong>  <?php _e('You can use these tags:'); ?> <?php echo allowed_tags(); ?></small></p>
    					<form>	<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
    						<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e("Leave a comment"); ?>"/>
    						<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>"></p>
    						<?php do_action('comment_form', $post->ID); ?>
    					</form>
    				<?php endif; ?>
    			<?php else : ?>
    				<p class="nocomments"><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
    			<?php endif; ?>
    			<div class="navigation">
    				<h2>More articles</h2>
    				<div><?php previous_post_link('Previous: %link') ?></div>
    				<div><?php next_post_link('Next: %link') ?></div>
    			</div>
    		</div>
    	<?php else : ?>
    		<div id="sidebarB">
    
    	<?php endif; ?>
    <?php get_footer(); ?>
  4. l1ght3mup
    Member
    Posted 7 years ago #

    made a typo above, i meant 'note.'

    Please help me!

  5. l1ght3mup
    Member
    Posted 7 years ago #

    please note... i have switched out my single.php with one from a different theme... in this one, the comments show up but the comment box input field does not.

  6. l1ght3mup
    Member
    Posted 7 years ago #

    Anyone at all? Where are the WP Guru's? :)

  7. l1ght3mup
    Member
    Posted 7 years ago #

    Hi,

    I'm still working to resolve this... I'm begging here..

  8. l1ght3mup
    Member
    Posted 7 years ago #

    Still desperate. PLEASE PLEASE PLEASE HELP ME!

  9. Try adding something like vardump($comments); to your comments.php, and make sure that it dumps all the comment stuff. This will tell you if the problem is in the single.php or in your comments code.

  10. l1ght3mup
    Member
    Posted 7 years ago #

    Hey Otto42, trying that now..

  11. l1ght3mup
    Member
    Posted 7 years ago #

    That didn't do anything. Nothing different about anything.

    Only info I have is that there may be an extra semi colon on line 20, column 50 (or there abouts). I have deleted every stinkin' semi colon once and tried it... Still no comments... Driving me nuts!

  12. l1ght3mup
    Member
    Posted 7 years ago #

    the semi colon is supposed to be in single.php btw.

  13. l1ght3mup
    Member
    Posted 7 years ago #

    i'm not goint to stop bumping this until i get help.

  14. moshu
    Member
    Posted 7 years ago #

    You will never get help with comments until there is a login requirement.
    Nobody is going to register to your blog just to help you. Be reasonable and remove that register requirement. (Options > General : Membership)

  15. whooami
    Member
    Posted 7 years ago #

    i'm not goint to stop bumping this until i get help.

    thats the spirit -- badgering ppl into helping you is a sure fire way to get friends.

    Did you miss the part where your threads can just be locked, or deleted?

  16. Something else is really wrong with your site, you've got a second <HEAD> <TITLE> and such in the code. I'd say that your theme is just big time broken, frankly.

    The short of it is that nobody can tell you what's wrong from you posting tiny little snippets of code here and there. Your theme is borked in some major way, and you're going to have to give it to somebody else who can fix it, if you can't figure it out yourself.

  17. mrmist
    Forum Janitor
    Posted 7 years ago #

    Also make sure you try it once with no plugins active so that you can confirm it's not a plugin issue.

    It sounds like a theme problem, but you never know.

  18. TheWheel
    Member
    Posted 7 years ago #

    Hi There!
    I have just updated to wp-2.2.2 hoping this would solve my wp-comment-post.php not working problem... But is does not. I have activated and deactivated all plugins and changed to different themes but non of them work. This looks like a serieus problem in WP...
    It would be verry nice if someone would come up with a real (working) sulution...

    Just looked at my WP with IE and it say's (after submitting a comment:
    ---------:
    The page you are looking for cannot be displayed because the address is incorrect.

    Please try the following:

    If you typed the page address in the Address bar, check that it is entered correctly.

    Open the matthijs.aandewiel.nl home page and then look for links to the information you want.
    Click Search to look for information on the Internet.

    HTTP 405 - Resource not allowed
    Internet Explorer
    --------------:

    Normaly I use FireFox but FF only return with a blank page...

  19. Chris_K
    Member
    Posted 7 years ago #

    TheWheel - instead of hijacking a barely related thread, you might have MUCH more success starting your own.

  20. l1ght3mup
    Member
    Posted 7 years ago #

    That you moshu... I have changed the register requirement...

    Thanks to anyone that can help, it's been such a pain in the ass... I am to the point that i'm willing to pay someone but i can't find anyone that knows wordpress...

    i have shut off all widgets...

    i can not find the darn post in the forums, but everyone else with this theme was able to fix their problem, i have even emailed them but no reply... the code i posted was the code that there was supposed to be a flaw in..

    thanks for any help guy/gals..

    [moderated]

  21. l1ght3mup
    Member
    Posted 7 years ago #

    i am still in need of help.

  22. dennisplucinik
    Member
    Posted 6 years ago #

    I am having the same exact problems here and every time I find a post about it NOBODY has any ideas... has anyone figured this out yet?

  23. dennisplucinik
    Member
    Posted 6 years ago #

    I just isolated the problem to be that I was trying to 'embed' the WP install into an application which makes heavy use of session, authentication, and database calls.

    I am at the point where I know the file which is causing the conflict however it is basically the controller which initiates my database connection object so... I don't know what to do now but I pretty much have to figure it out soon.

  24. whooami
    Member
    Posted 6 years ago #

    clearly 3 posts about the same topic will help, especially when the last includes bumping something thats 10 months old.

  25. dennisplucinik
    Member
    Posted 6 years ago #

    I found the answer:

    http://www.webmasterworld.com/forum88/5485.htm

    Simply - I did not include the 4th parameter in the mysql_connect() function which is a boolean '1' which allows multiple database connections (like mine + WP's)

    This solved my problem completely, hope this helps.

  26. llworldtour
    Member
    Posted 6 years ago #

    Hi Dennis-
    Can you walk me through this a bit more? I'm new to self-hosting and don't quite understand what to change?
    I would really appreciate the help!!
    THanks-
    Lisa

Topic Closed

This topic has been closed to new replies.

About this Topic