update and errors

chevy01xtreme

Joined: 2004-01-15
Posts: 80
Posted: Sat, 2009-11-21 04:04

Gallery version (not just "2.3"):

i went to upgrade and got errors

http://www.s10owners.com/gallery2/main.php

it doesnt take me to the upgrader.. any ideas

 
chevy01xtreme

Joined: 2004-01-15
Posts: 80
Posted: Sat, 2009-11-21 15:18

any help on this.....

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-11-21 16:22

The upgrade directory doesn't exist, so Gallery can't upgrade.

FAQ: How to upgrade Gallery2?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-11-21 16:23

Btw, you'll need a bit more patience :) I was asleep when you first posted and, well still asleep when you bumped this thread :)

The few support people we have here do this in our spare time, unpaid. The same can be said about the few programmers doing the actual work on the code.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
chevy01xtreme

Joined: 2004-01-15
Posts: 80
Posted: Sat, 2009-11-21 17:35
nivekiam wrote:
Btw, you'll need a bit more patience :) I was asleep when you first posted and, well still asleep when you bumped this thread :)

The few support people we have here do this in our spare time, unpaid. The same can be said about the few programmers doing the actual work on the code.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

sorry but its there i can see it

this is teh error i am getting. i tried reinstalling and still get this error

Warning: include(/home/gsxrforu/public_html/s10owners/gallery2/bootstrap.inc) [function.include]: failed to open stream: No such file or directory in /home/gsxrforu/public_html/s10owners/gallery2/main.php on line 26

Warning: include() [function.include]: Failed opening '/home/gsxrforu/public_html/s10owners/gallery2/bootstrap.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gsxrforu/public_html/s10owners/gallery2/main.php on line 26

 
chevy01xtreme

Joined: 2004-01-15
Posts: 80
Posted: Sat, 2009-11-21 17:50

alright i got to reinstall it now how do i get it to redirect to http://www.s10owners.com/gallery2/main.php if i try and go to http://www.s10owners.com i get a directory which i dont want. and if i go to http://www.s10owners.com/gallery2 i get errors

i tried a redirect buts its not working or i am doing it wrong

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-11-21 18:02

edit config.php and at the bottom is a setting for baseUri, make sure that's not set to anything.

like so:
$gallery->setConfig('baseUri', '');
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
chevy01xtreme

Joined: 2004-01-15
Posts: 80
Posted: Sat, 2009-11-21 18:13
nivekiam wrote:
edit config.php and at the bottom is a setting for baseUri, make sure that's not set to anything.

like so:
$gallery->setConfig('baseUri', '');
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

this is what it says

* This setting can be used to override Gallery's auto-detection of the domain-name,
* protocol (http/https), URL path, and of the file & query string.
* Most users can leave this empty. If the server is misconfigured or for very special
* setups, this setting can be quite handy.
* Examples (the positions of the slashes ('/') are important):
* override the path: $gallery->setConfig('baseUri', '/another/path/');
* override the host + path: $gallery->setConfig('baseUri', 'example.com/gallery2/');
* override the protocol + host + path + file:
* $gallery->setConfig('baseUri', 'https://example.com:8080/gallery2/index.php');
*/
$gallery->setConfig('baseUri', 'http://www.s10owners.com/gallery2/main.php');
?>

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-11-21 18:38

Do you have an .htaccess file under s10owners.com or s10owners.com/gallery2 and do either of them have redirects to anything? If so, get rid of them.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
chevy01xtreme

Joined: 2004-01-15
Posts: 80
Posted: Sat, 2009-11-21 18:49
nivekiam wrote:
Do you have an .htaccess file under s10owners.com or s10owners.com/gallery2 and do either of them have redirects to anything? If so, get rid of them.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

i dont have any htaccess files in any of those folders. i have it on other folders but not this site..

i even tried this in the index.php to redirect it
<?php
header( 'Location: http://www.s10owners.com/gallery2/' ) ;
?>

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Sat, 2009-11-21 19:03
Quote:
if i try and go to http://www.s10owners.com i get a directory which I don't want

You need to do some work on the .htaccess file for that directory. I think it's "Options -indexes" for Apache.

The best way to get gallery to open without the /gallery2/ in the url is to move it into the webroot. See FAQ: How can I move my gallery installation from one folder to another?

Either that, or use mod_rewrite and some custom rules in the .htaccess.