Please fill out the following form and take a look at the linked pages. The more information you supply, the better we can help you.
- What information is required when asking for help in the forums? See:
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F
- You can copy and paste a lot of the required information from "Site Admin" -> "Maintenance" -> "System Information" if your G2 is up and running.
- Also visit http://codex.gallery2.org for: Frequently Asked Questions, Debugging Instructions, Known Issues and much more
- And try your luck with the search function of this website
my gallery is located at www.kush.ca/gallery2/ i installed it without a problem, now when i go to the site it redirects me to a weird site that has nothing to do with my site, why is that? http://members.fortunecity.com/xe1bef/w0.htm this is the site it takes me to
Gallery version 2.0.2
PHP version 5
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 4.0.11):
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 1.0):
Posts: 32509
your webserver is probably not configured correctly.
in your phpinfo, you'll see that http_host or http_x_forwarded_ ... has a wrong value.
Posts: 36
im a n00b at this, can you give me step by step instructions on how to do this please? sorry to be annoying but i know no near nothing about php
Posts: 32509
so is it your own server at home or is the website hosted on a webhserver? if at home, make sure the servername etc in your httpd.conf file is correct and restart the webserver. else talk to your webhost.
Posts: 36
no its a professional server, netfirms is hosting it, it is using the same database as my wordpress because i get only one database, is that a problem?
Posts: 32509
it has nothing to do with databases or wordpress or so.
just tell them that gallery 2 relies on a correct value for HTTP_X_FORWARDED_SERVER and if it has no value, it uses HTTP_HOST.
in G2.1 (the current nightly snapshot), you can overrride the autodetected server string in config.php
Posts: 36
thanks for replying, im a noob, so can u give me detailed instructions on how to do any of that? the more reliable the better, i dont mind opening up the config.php and editing it thanks again
Posts: 32509
as i said, either upgrade to g2.1 (current nightly snapshot) and read the instructions in config.php of g2.1 or contact your webhost with the above information.
Posts: 36
i am installing it fresh so no need for an update, and where is the config.php? ill call my host now and see if they can help
Posts: 32509
config.php in a installed and running g2 is in your gallery2/ folder. you have to download the file once g2 is installed, edit it with a texteditor and reupload it to the server.
Posts: 36
like this? $gallery->setConfig('galleryBaseUrl','http://www.kush.ca/gallery/');
still doesnt work weird
Posts: 32509
baseUrl is for multisite.
you want to set the baseUri in gallery 2.1 (not 2.0.1).
Posts: 36
ahh ok opps, thanks ill do that now
Posts: 36
ok i did that and the front page works, but then i click login and takes me to the same site! :s
this is what i set it to $gallery->setConfig('baseUri', 'http://www.kush.ca/gallery/index.php');
Posts: 32509
so from http://www.kush.ca/gallery/modules/core/module.inc i see you're using rc-1a.
from main.php i see it's working.
from index.php i see it's redirecting to a weird German page.
and the last thing is a bug. i just have committed a fix such that the index.php -> main.php or / -> main.php redirects are correct.
but if change your baseUri from http://www.kush.ca/gallery/ to http://www.kush.ca/gallery/main.php and browse to to your website, it should be fine.
get tomorrows nightly snapshot to get the index.php fix.
Posts: 36
nope, same thing btw does gallery2 create 3 folders outside the gallery folder called _vti_cnf _vti_pvt and _vti_txt?
Posts: 32509
maybe that's due to the broken index.php redirect. please get tomorrows nightly snapshot and let's talk then again.
Posts: 36
thanks thats great, am i the first person to have this problem? i just got off the phone with netfirms, and they put a request into the admins to see if they have incorrect settings, the guy sounded like he knew what type of information i was giving him, so sounds like i should have my gallery running soon, also i saw ffmpeg while installing and i know thats some sort of codec thing, does that mean i can also upload videos? and if so i read i have to configure it, is it easy to do? btw thanks for your help, btw are you the creator of gallery2?
Posts: 36
hi again, i got an email back from them telling me to do this, but i guess it was for 2.0.3 because its not exactly the same in 2.1 i hope this helps with anything, i dont really know what it would help with but incase
Hello,
Thank you for your e-mail.
For gallery2 to work, you will need to download the file located at
modules/core/classes/GalleryUrlGenerator.class and change the following:
function getCurrentDomain() {
if ($httpXForwardedServer =
GalleryUtilities::getServerVar('HTTP_X_FORWARDED_SERVER')) {
return $httpXForwardedServer;
} else {
return GalleryUtilities::getServerVar('HTTP_HOST');
}
}
To read:
function getCurrentDomain() {
if ($httpXForwardedServer = GalleryUtilities::getServerVar('HTTP_HOST')) {
return $httpXForwardedServer;
} else {
return GalleryUtilities::getServerVar('HTTP_HOST');
}
}
Posts: 36
ok i followed their instructions and got the gallery 2.0.3 to work thanks a million
Posts: 36
ok now that its installed, i can post images using the windows xp, but i tried to go to site admin and click on modules to enable the upload feature, and it gives me an internal server error, what could be the problem?
Posts: 17
Hi Thema,
I'm having the same problem with netfirms and as far as I can tell the problem is that netfirms has too little memory allocated for php. Apparently it's only 4mb where 16mb is about the min. req. for this type of app. See this thread. And I did email netfirms and asked them to increase it and they said 'No'.
http://gallery.menalto.com/node/43923?highlight=netfirms
Posts: 36
wow, thanks for the reply, well ill call them back now and let them know, and if they dont do it then i will simply change host, but i think they will because they are really nice with me, and they have been messing up a lot with me latley
Posts: 17
Ok, if your successful please let me know: here is an excerpt from their reply.
At the moment, we do not offer custom PHP settings. It has been added to our list of client requested features and may be included in a future service upgrade. Thank-you for your suggestion.
Kandor
Posts: 36
umm just called them, he escalated it HMM. god i might have to switch know of any good hosting services? that offer good bandwidth/space and price?
Posts: 17
No - but if you find one let me know and vice versa. Netfirms seems fine to me except for this one issue of memory headroom.
Posts: 36
what about load times, my site i think has a slow ping, i think it might have to do with im behind a firewall in a dorm, but it was similarly slow on other connections
Posts: 6
I have the same host, and had the same problem. I changed the file and continued past that step. Did you have any issue connecting to a database? I am getting this error:
I manually installed wordpress since I didn't like where they kept installing it and didn't have any issues connecting to the DB or with permissions so I'm not really sure if I'm missing something...
Posts: 36
nope never got that one i also installed wordpress manually but had no problems there
Posts: 6
did you use the same DB or a seperate one?
Posts: 17
I used seperate db's for all my apps - drupal, gallery and 2 others. I never thought of using the same db for fear of overwrites etc. I wonder if this affects the memory issue. I ran the phplimit script again today and this time netfirms responds with:
allocated 0 Mega Bytes...and rising
allocated 1 Mega Bytes...and rising
allocated 2 Mega Bytes...and rising
allocated 3 Mega Bytes...and rising
allocated 4 Mega Bytes...and rising
allocated 5 Mega Bytes...and rising
Whereas yesterday it stopped at 4mb??????
Kandor
Posts: 36
they said that having many applications in one database doesnt affect anything its ok
Posts: 36
you know what, seriously im ganna stick with netfirms, i just wish they take it upon themselves to update that php problem and all will be fine, they have great customer support in my opinion, and i think if you guys call and also have a rep escalate it that they will implement the change, because seriously i have not found any other host that comes close to netfirms prices, for a .ca account, all others give u tiny webspace like 5 or 15 mb and like 1gb of montrhly trasnfer for the same price we are getting 6gb space and 300gb monthly transfer
Posts: 36
hey this might help if you wanna see something valiant
http://kush.ca/phpinfo.php
Posts: 17
I agree - it's fine it every regard except the php memory limit. I have now had several emails back and forth and they claim that they cannot adjust individual php memory limits as it is a overall server setting. Please advise if you have had different results because I got no where and I 'really' tried.
Thanks
ps - where did you find that php program? I'd like to try it. Also, does it show your memory limit in there (sorry I don't have time to read all that at the moment)
Posts: 36
you can get that program from their site,here ive attached it, if you open it up and see its only one line of code, also i dont know if it displays the php memory size on there
Posts: 17
Hi themafia,
Netfirms wrote back to me about the memory limit. They provided a script which they say shows that the memory limit is actually 16mb, if this is the case why can't I open the modules page of the site admin tool. Maybe this is a wild goose chase and there is something else wrong?
Here is the output from the script:
cpu time (seconds, -t) 10
file size (512-blocks, -f) unlimited
data seg size (kbytes, -d) 15360
stack size (kbytes, -s) 15360
core file size (512-blocks, -c) 0
max memory size (kbytes, -m) unlimited
locked memory (kbytes, -l) unlimited
max user processes (-u) 5
open files (-n) 16
virtual mem size (kbytes, -v) unlimited
sbsize (bytes, -b) unlimited
Posts: 36
so what are we suppose to do? call them back and tell them then why cant i open the modules, and complain tell them im not the only use having this problem maybe they will do something about it when a lot of people complain, ill try to do the same
Posts: 17
I suppose, or hope someone here who is more knowledgable about gallery itself to look into it. The other thread about the module page not opening is focused solely on lack of php ram as the culprit. Now it appears it must be something else. Tricky.
Posts: 36
the sooner we solve it the better, because i need to have my gallery because its ganna be a big part of my site, allowing friends, family, and web friend upload pics etc
Posts: 36
ok guys, i just erased my install of gallery 2.0.3 and installed 2.1 second rc and the install picks up the right installation directory hopefully it wont have the same error, when i try to go into the modules
Posts: 17
Let me know - I also installed 2.1 rc but it was almost 2 weeks ago. Hopefully something has changed?
Kandor
Posts: 36
that was rc1, the new version is rc2
Posts: 36
ok i got everything working, what i did was just download the typical installation and install the modules that i wanted separatly
Posts: 36
ok i get internal server errors when i try to delete pics, and thumbnails and resizes don't work, no matter how i upload the pics, help!
Posts: 17
themafia69,
Well persistance pays off, I had a very pleasent email exchange back and forth with netfirms over the course of 2 weeks and they have now upped the memory limit on their servers, so everything is working right now - it's a global change so it's probably why your new install is working ok. Their customer service is really most excellent.
Now I need to get a drupal gallery.module working.... Always something.