boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

making a comment ------> 404...

 
Post new topic   Reply to topic    boardom Forum Index -> Installation issues
View previous topic :: View next topic  
Author Message
roofdog



Joined: 25 Jul 2002
Posts: 25

PostPosted: Thu Jul 25, 2002 12:14 am    Post subject: making a comment ------> 404... Reply with quote

hi there,
i've just got b2 and i've managed to integrate it on my page with no other problems, but when anyone tries to post a comment on a blog entry, upon clicking the 'go' button, they end up with a 404 message. i'm pretty sure that b2comments.post.php is in my directory, so i'm wondering if there is a line of code within b2comments.post.php that i need to change, to perhaps send the browser back to the correct page after a comment has been made.

apart from this, b2 is working brilliantly. but has anyone got some idea of what could be going wrong?

thanks

roofdog Smile
Back to top
View user's profile Send private message Visit poster's website
nessahead



Joined: 12 Mar 2002
Posts: 312
Location: Los Angeles, CA

PostPosted: Thu Jul 25, 2002 12:15 am    Post subject: Reply with quote

Did you put b2 in a seperate directory?
_________________
raar!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
roofdog



Joined: 25 Jul 2002
Posts: 25

PostPosted: Thu Jul 25, 2002 12:25 am    Post subject: Reply with quote

well,
i originally had b2 in its own /b2 directory, but that caused a couple of problems so i started again, with all of the files in the same directory as my webpage.

i get correct "please enter a comment" and "please state your name and email address" type 'error' messages for when people dont enter comments correctly - its just that the 404 appears when a comment is entered, rather than the browser being sent back to the original page. i cant work out where exactly it's going wrong...


Back to top
View user's profile Send private message Visit poster's website
VlaD



Joined: 25 Sep 2002
Posts: 3

PostPosted: Wed Sep 25, 2002 1:28 pm    Post subject: Reply with quote

I Have the same problem ! When I post a comment, I have a 404 error Sad Can someone help me please ? Sad
Back to top
View user's profile Send private message
VlaD



Joined: 25 Sep 2002
Posts: 3

PostPosted: Wed Sep 25, 2002 1:37 pm    Post subject: Reply with quote

Ok ! I found the little bug !

The original code (b2comments.php):
Code:
<form action="<?php echo $siteurl; ?>/b2comments.post.php" method="post">
   <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
   <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS["REQUEST_URI"]); ?>" />


At the last line, you have tu change the ["REQUEST_URI"] by ["REQUEST_URL"]
Back to top
View user's profile Send private message
michel v
Site Admin


Joined: 25 Jan 2002
Posts: 799
Location: Corsica

PostPosted: Wed Sep 25, 2002 5:02 pm    Post subject: Reply with quote

Vlad, are you by any chance running a server that is not Apache ?
Because REQUEST_URI works correctly on Apache, and that's the only server I could try b2 on. If you're using another kind of server (or Apache 2 maybe ?), please tell me so I can make a per-server correction in the form. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Mellissa



Joined: 17 Nov 2002
Posts: 29
Location: Malaysia

PostPosted: Tue Nov 19, 2002 5:38 pm    Post subject: Reply with quote

Sorry to bump up this topic but this happened to me too (I have b2 in a seperate directory) and what I did was open b2comments.php and looked at this line

Quote:
<form action="<?php echo $siteurl; ?>b2comments.post.php" method="post">


I changed the URL so it goes to b2/b2comments.post.php instead and it works fine for me now. Will it affect anything else?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
macshack



Joined: 17 Jul 2002
Posts: 1204
Location: Phoenix, Az

PostPosted: Tue Nov 19, 2002 10:29 pm    Post subject: Reply with quote

Hi Mellissa,

Your change should be fine. As you might have guessed by now, b2 is designed to reside in a single directory, but you can do as you have to make it work across directories. There may be other instances where you are going to need similar changes.

michael e
Back to top
View user's profile Send private message Send e-mail
Mellissa



Joined: 17 Nov 2002
Posts: 29
Location: Malaysia

PostPosted: Thu Nov 21, 2002 5:53 am    Post subject: Reply with quote

macshack wrote:
Hi Mellissa,

Your change should be fine. As you might have guessed by now, b2 is designed to reside in a single directory, but you can do as you have to make it work across directories. There may be other instances where you are going to need similar changes.

michael e


Alright, thank you!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Installation issues 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


Powered by phpBB 2 © 2001, 2002 phpBB Group