Page 1 of 1

Comment Submission Goes to Broken Link

Posted: Wed Nov 24, 2010 9:44 pm
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?

Re: Comment Submission Goes to Broken Link

Posted: Wed Nov 24, 2010 10:14 pm
by garvinhicking
Hi!

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

Regards,
Garvin

Re: Comment Submission Goes to Broken Link

Posted: Thu Nov 25, 2010 2:14 am
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?

Re: Comment Submission Goes to Broken Link

Posted: Thu Nov 25, 2010 2:23 am
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.

Re: Comment Submission Goes to Broken Link

Posted: Thu Nov 25, 2010 10:44 am
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

Re: Comment Submission Goes to Broken Link

Posted: Thu Nov 25, 2010 2:22 pm
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

Re: Comment Submission Goes to Broken Link

Posted: Fri Nov 26, 2010 7:57 pm
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