[SOLVED] gallery 3 install succeeds but can't login

omnihilo

Joined: 2003-12-06
Posts: 18
Posted: Mon, 2012-12-31 11:44

I go through the installation, enter all of the db information, and get to the "success" page, which provides me with the temp password. I hit the "Start Using Gallery" link and it gives me an HTP500 error. If I go back through the process again it still gives me the Success page, just without the temp password provided. Any ideas what could be causing this? Is there a url I can go to directly to login?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-01-01 02:08

Does http://www.EXAMPLE.com/gallery3/index.php/login/
work?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
omnihilo

Joined: 2003-12-06
Posts: 18
Posted: Tue, 2013-01-01 03:38

floridave: No, that gives the same error. I'm thinking it's something screwed up with the db, because even though I was able to create the db using my host's archaic Database Manager, it doesn't show up in phpmyadmin like gallery2's db does. I've started a support ticket with the host but they don't exactly move very quickly :/

 
omnihilo

Joined: 2003-12-06
Posts: 18
Posted: Fri, 2013-01-04 17:38

Well, I was able to get to the point where I can view the database in phpmyadmin, but that doesn't appear to have fixed the underlying problem. I'm still unable to reach the log in page. I've made sure that var's permissions are set to 777 (I made it so that all of the subdirectories are too, not sure if that was necessary/bad idea or not but was hoping it would fix the issue..it didn't).

 
omnihilo

Joined: 2003-12-06
Posts: 18
Posted: Fri, 2013-01-04 17:50

Hmm, under var/logs it does seem to be keeping a record of when I try to log in, but this is the only thing in each log.php file:

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

Joined: 2003-12-06
Posts: 18
Posted: Fri, 2013-01-04 19:04

Well, the host has been less than helpful. They don't allow access to the webserver log files and when I ask them to at least give me the error details the most they would do was verify that php was working by uploading a test file, and saying that the problem is with the code which they don't address. Just in case anyone was thinking of switching to greatvaluehost.com, I can easily say you'll probably want to spend the few bucks more a month and go anywhere else.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2013-01-05 01:36

This might help:
FAQ: How do I see debug information?
But in the end if your host can't or won't help there is not much we can do.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
omnihilo

Joined: 2003-12-06
Posts: 18
Posted: Sat, 2013-01-05 02:49

Thanks again for responding floridave. Yeah, I already posted the only thing that the logs in gallery3/var/logs has, and the host isn't cooperating on the Apache ones. I went ahead and took gallery out of production mode using the info provided in your link, but now instead of a 500 error it says

Dang... Something went wrong!

We tried really hard, but it's broken.

Talk to your Gallery administrator for help fixing this!

Which isn't exactly telling me much I didn't already know :p

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2013-01-05 03:09

more in the logs?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
omnihilo

Joined: 2003-12-06
Posts: 18
Posted: Sat, 2013-01-05 03:26

There wasn't last time I checked but there is now:

2013-01-04 22:21:21 -05:00 --- error: ErrorException [ 0 ]: call_user_func_array() expects parameter 1 to be a valid callback, class 'Router' not found
/services6/webpages/d/a/MYDOMAIN.com/public/gallery3/system/core/Event.php [ 208 ]
#0 [internal function]: gallery_error_Core::error_handler(2, 'call_user_func_...', '/services6/webp...', 208, Array)
#1 /services6/webpages/d/a/MYDOMAIN.com/public/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#2 /services6/webpages/d/a/MYDOMAIN.com/public/gallery3/application/Bootstrap.php(61): Event_Core::run('system.routing')
#3 /services6/webpages/d/a/MYDOMAIN.com/public/gallery3/index.php(113): require('/services6/webp...')
#4 {main}
 
omnihilo

Joined: 2003-12-06
Posts: 18
Posted: Sat, 2013-01-05 03:34

Here are the steps that I was given in order to add a new database under the same user. Since the gallery error keeps referencing an array is it possible that the change I had to make in the phpmyadmin config file would have screwed something up? I thought it was just specific to phpmyadmin but if gallery doesn't know to look in an array for it maybe that could be the issue?

Adding Databases with the Same Username:
 
Go into the Customers FILEMANAGER or through a FTP Client and go to
/private/phpmyadmin/
 
Open/edit the file "config.inc.php"
 
Once this is open you will need to find the line
 
$cfg['Servers'][$i]['only_db'] =
 

Here is a example how it will look like
 
"$cfg['Servers'][$i]['only_db'] = 'test\_kdurelle\_nb\_hostopia\_com';"
 

To add multiple databases you need to turn it into a Array, so all you have to do is the following.
 
$cfg['Servers'][$i]['only_db'] = array('test\_kdurelle\_nb\_hostopia\_com','test2\_kdurelle\_nb\_hostopia\_com');
 
all we did was add the word "array" and added the following comma and brackets. All you need to do is follow this template and everything should show up in PHPMyAdmin.
 
Also keep in mind you can add a single database in a array.
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2013-01-05 06:14
Quote:
2013-01-04 22:21:21 -05:00 --- error: ErrorException [ 0 ]: call_user_func_array() expects parameter 1 to be a valid callback, class 'Router' not found

Looks to me like there is some missing files. It can't find a class. Upload them all again
Ask your host if they are using Apache 2.

If you have to edit phpmyadmin to administer your db or create use the db your host is very rare in its methods. Rare == not what I would like to work with.
perhaps a new host or different photo app is in order.
Good luck!

Dave
___________________________________________
Blog & G2 || floridave - Gallery Team

 
omnihilo

Joined: 2003-12-06
Posts: 18
Posted: Sat, 2013-01-05 15:42

Well, uploading everything over and going through the installer did the trick. So there's one problem down, now to try and figure out why the importer isn't working :p I'll make a new thread for that though. Thanks for your help floridave..and yeah, every couple of years when I decide I actually want to do something with my site and go through the headache of dealing with the host's support, I promise myself I'll bite the bullet and just switch to a new host. But I never do :p

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2013-01-05 21:20
Quote:
Well, uploading everything over and going through the installer did the trick.

Great!

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team