Comment Submission Goes to Broken Link

Having trouble installing serendipity?
Post Reply
Chrouglas
Posts: 4
Joined: Wed Nov 24, 2010 9:37 pm

Comment Submission Goes to Broken Link

Post by Chrouglas »

http://www.allpointsystems.com/pointtalk/

I have made minor changes to CSS but nothing too crazy. When I add a comment and hit submit it comes up as 'page not found'. If I hit the browsers reload/refresh button it loads the page properly (without any edit to the url). The comment posts properly but I can't expect users to know to hit the refresh button. I have limited experience with this so please be patient with me. The blog is hosted on Yahoo Small Business... I heard that may cause problems.

Any thoughts?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comment Submission Goes to Broken Link

Post by garvinhicking »

Hi!

That's really odd. How does your .htaccess file look like currently?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Chrouglas
Posts: 4
Joined: Wed Nov 24, 2010 9:37 pm

Re: Comment Submission Goes to Broken Link

Post by Chrouglas »

got me. i googled this 20 times and one thing i did find out is that yahoo doesn't allow upload or access to the .htaccess file. I do get messages that say attempts to write to .htaccess were successful but I have no access to edit it myself.

I tried setting some of the 'path' configurations but that only seemed to mess up the formatting etc. what file is it supposed to be redirecting to? is there an include that is getting left off? its weird to me that hitting refresh of the same URL loads the redirect page just fine.

Did you try posting a comment to see?
Chrouglas
Posts: 4
Joined: Wed Nov 24, 2010 9:37 pm

Re: Comment Submission Goes to Broken Link

Post by Chrouglas »

another clue... the standard link in the admin area on the weblog page ("open administration") to the admin page doesn't seem to work either...

http://www.allpointsystems.com/pointtal ... php?/admin

any reason why this wouldn't hit the correct page? I am not familiar with how a url with a format lke that works (?/admin at the end) so i can't be sure how it should behave.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comment Submission Goes to Broken Link

Post by garvinhicking »

Hi!

I tried to post a comment, but refreshing the URL does *not* work for me, I always get the 404 error.

You might want to create a file like "showhtaccess.php":

Code: Select all

<?php
echo file_get_contents('.htaccess');
that might show you the contents of the file through the PHP script...

You definitely need to say in the s9y configuration to Disable URL Rewriting. The ?/admin URL should actually always work, s9y's index.php should detect that as long as the PHP variable $_SERVER['REQUEST_URI'] is set. PHP can parse that and detect "ah, there's ?/admin int eh URL, so go to"...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Chrouglas
Posts: 4
Joined: Wed Nov 24, 2010 9:37 pm

Re: Comment Submission Goes to Broken Link

Post by Chrouglas »

here;s the source of the .htaccess file using that php script you gave me...


# BEGIN s9y
DirectoryIndex /pointtalk/index.php

<Files *.tpl.php>
deny from all
</Files>

<Files *.tpl>
deny from all
</Files>

<Files *.sql>
deny from all
</Files>

<Files *.inc.php>
deny from all
</Files>

<Files *.db>
deny from all
</Files>

# END s9y
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comment Submission Goes to Broken Link

Post by garvinhicking »

Hi!

Hm, that file really looks completely unproblematic.

Is there a way to ask google hosting for the CGI/PHP error log? That way we would know which 500 Error happens exactly. Other than that I don'T really understand it...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply