Access Forbidden

modemmike

Joined: 2011-08-05
Posts: 16
Posted: Sat, 2011-10-15 02:20

I've been chasing this bug all day. First, I could NOT login, figured out away around that using the x.php someone else posted here awhile back. I still can login the proper way but at least I got to the admin screens. Now, I can not save anything. If it's AJAX there is simply no response (click and nothing), if I try to update/save anywhere else in the admin menu I get

gallery/helpers/access.php(425): access_Core::forbidden()

Kohana_Exception [ kohana/core.errors.403 ]:
@todo FORBIDDEN

MODPATH/gallery/helpers/access.php[ 202 ]

197
198 /**
199 * Terminate immediately with an HTTP 403 Forbidden response.
200 */
201 static function forbidden() {
202 throw new Kohana_Exception("@todo FORBIDDEN", null, 403);
203 }
204
205 /**
206 * Internal method to set a permission
207 *

420 * Verify our Cross Site Request Forgery token is valid, else throw an exception.
421 */
422 static function verify_csrf() {
423 $input = Input::instance();
424 if ($input->post("csrf", $input->get("csrf", null)) !== Session::instance()->get("csrf")) {
425 access::forbidden();
426 }
427 }
428
429 /**
430 * Get the Cross Site Request Forgery token for this session.

I already checked with HostGator and after a quick few minutes they responded that this has nothing to do with their servers. This entire problem seemingly came from nowhere. I think I have only made matters worse by removing modules. Anyone have any advice?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-10-15 03:52
 
modemmike

Joined: 2011-08-05
Posts: 16
Posted: Sat, 2011-10-15 04:38

Dang it, I knew it, I looked at that a billion times. HostGator only took about 5 minutes to respond and say it's code. Undoing my htaccess back to stock fixes the issue which stinks because all I was trying to accomplish was redirecting non-www to the www. Thanks for pointing me in the right direction again.