G3 inconsistent issues

kylboy06

Joined: 2009-06-08
Posts: 4
Posted: Mon, 2009-06-08 16:47

I installed G3 beta on my site, and it is having some issues, but they seem to be very inconsistent. If I go to gallery, it will load just fine sometimes, but other times, it will only bring up a page that says Dang there is a problem, contact your administrator. When gallery does load, it looks normal, but every time I click on a link, it loads the same page, and it is always a text only, non-themed page with basic option, like login, view Albums, etc. Whenever I click any of these links, it only reloads this same page. Anyone have any ideas what might be going on? If it helps, I am using GoDaddy hosting.

 
mask007

Joined: 2009-06-08
Posts: 2
Posted: Tue, 2009-06-09 01:55

I had similar issues with Gallery 3 Beta1 on GoDaddy hosting. Basically, I could only install gallery, and nothing else worked. I installed the latest source zip from last night and it works fine now. Hope this helps!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-09 04:36

What's in your error logs? (see my sig)
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest zip: http://github.com/gallery/gallery3/zipball/master
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
kylboy06

Joined: 2009-06-08
Posts: 4
Posted: Sun, 2009-06-14 02:43

<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-06-07 19:31:03 -07:00 --- error: Missing i18n entry request.unknown_method for language en_US
2009-06-07 19:31:03 -07:00 --- error: Uncaught Kohana_Exception: Unknown Exception: request.unknown_method in file system/helpers/request.php on line 87

<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-06-08 09:28:05 -07:00 --- error: Uncaught Kohana_Database_Exception: There was an SQL error: Duplicate entry '1f3a7cda5cfbb3d0be6ef3ad0554463b' for key 1 - INSERT INTO `gl_sessions` (`session_id`, `last_activity`, `data`) VALUES ('1f3a7cda5cfbb3d0be6ef3ad0554463b', 1244478485, '<elided>') in file system/libraries/drivers/Database/Mysqli.php on line 142

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-14 14:50

@kylboy06: please try the latest version of the code (see the link below) and let me know if the problem is still happening.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
kylboy06

Joined: 2009-06-08
Posts: 4
Posted: Tue, 2009-06-16 06:32

I used the latest code, and I get the Dang, something went wrong, and it gives me this:

So here's the error:
Unknown Exception: request.unknown_method

File: system/helpers/request.php, line: 87
And here's how we got there:

* modules/gallery/helpers/rest.php [62]:

request_Core::method( )

* modules/gallery/controllers/rest.php [79]:

rest_Core::request_method( )

*

REST_Controller->__call( 1 )

* system/core/Kohana.php [291]:

ReflectionMethod->invokeArgs( Albums_Controller Object
(
[resource_type:protected] => item
[uri] => URI Object
(
)

[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] => 71.2.108.228
)

)
, Array
(
[0] => 1
[1] => Array
(
)

)
)

*

Kohana::instance( )

* system/core/Event.php [209]:

call_user_func( Array
(
[0] => Kohana
[1] => instance
)
)

* system/core/Bootstrap.php [55]:

Event::run( system.execute )

* index.php [82]:

require( system/core/Bootstrap.php )

 
kylboy06

Joined: 2009-06-08
Posts: 4
Posted: Tue, 2009-06-16 06:44

Sorry, it kind of works now. After I refreshed the page, it seems to work most of the time now. Every once in awhjile I get the "Dang Something Went Wrong" message, and if i refresh, then it is fine.

 
jeffmmiller

Joined: 2007-03-01
Posts: 71
Posted: Tue, 2009-06-16 12:46

godaddy hosting without a dedicated or virtual server does not support:- Web server: Apache 2.2 and newer. I recently changed to godaddy just to install G3, so this sucks for me.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-16 20:18

@kylboy06: it looks like your $_SERVER["REQUEST_METHOD"] is something really odd, causing Kohana to be unable to deal with it. Try editing system/helpers/request.php and change the method() function to:

        public static function method()
        {
                $method = strtolower($_SERVER['REQUEST_METHOD']);
                Kohana::log("alert", "method: $method");

                if ( ! in_array($method, request::$http_methods))
                        throw new Kohana_Exception('request.unknown_method', $method);

                return $method;
         }

(I only added one line in there). Then when the problem occurs we can check the logs to see what's actually getting through.

@jeffmmiller: sorry to hear that. What version of Apache do they have?

---
Problems: Check gallery3/var/logs first!
file a bug or feature request | upgrade to the latest code | use git