[SOLVED] Can't load module section under site admin...just get blank page, i can't configure the modules!!

patryn

Joined: 2005-10-11
Posts: 3
Posted: Tue, 2005-10-11 20:12

Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:2.0
Apache version:2.0
PHP version (don't just say PHP 4, please):4.3.10-10
Graphics Toolkit:
Operating system:ubuntu linux
Web browser/version (if applicable): IE and Firefox

I keep getting a page cannot be diplayed in IE. or a blank page in firefox.
I can't get into the module area to configure my graphic toolkits..

help!

http://24.235.233.31/pix
is where my gallery is located

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-10-11 20:28

please post a phpinfo link.
if your php memory limit is < 16mb, increase it.

FAQ: What information is required when I ask for help in the forums?

 
patryn

Joined: 2005-10-11
Posts: 3
Posted: Tue, 2005-10-11 20:48

Thanx, i changed the memory setting and it worked.

 
technoid

Joined: 2004-09-18
Posts: 11
Posted: Mon, 2005-10-31 07:19

Hi,
I just installed G2 2.0.1. I believe I am not also able to see the modules in site admin because of the same memory limit. I don't own the webserver (it is a webhost) and I don't know really know much about PHP, so exactly which parameter is this? I could ask my webhost to increase memory limit but I don't think they will want to. Is there another way to change modules? I tried reinstalling, but the boxes were grayed out. I also want to deactivate GD (per the importing instructions), so that I can start importing my G1 galleries over. Please advise. Thanks.

G2 2.0.1
PHP Version 4.3.4
Apache/1.3.29 (Unix) FrontPage/5.0.2.2623

- techie -

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-10-31 13:09

php parameter memory_limit
set it to at least 16mb. if it's already at 16mb and it still doesn't work, ask them to set it to 20mb.
importing from g1 needs a lot more memory, so you could ask your webhost to set the memory limit to maybe 32 or 64 mb just for the 5 -15 minutes you're importing. after that, you can set it back to 16mb.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-10-31 13:12

also try to change the php memory limit yourself with .htaccess, see:
FAQ: Why do I get the error Allowed memory size of Xxx bytes exhausted?

 
technoid

Joined: 2004-09-18
Posts: 11
Posted: Mon, 2005-10-31 16:09

Thank you for your replies. I have sent a support ticket to my webhost about increase the limit. I just have a feeling they won't do it.

And where do I put the .htaccess? I don't see it and I don't think I'm allowed to revise that either. Will follow up soon.

If I cannot do any of this, is there another way to import?

- techie -

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-10-31 17:11

another way to import?
install apache/php/mysql on your computer, do the migration from g1 to g2 on your computer and upload gallery2 including g2data and the database to your server.
FAQ: How can I move my gallery installation from one server to another?

@.htaccess:
create a file called ".htaccess" in your gallery2 directory.

 
StubbsUK

Joined: 2005-11-14
Posts: 9
Posted: Mon, 2005-11-14 23:27

This might sound like a daft question, but why does a page that's just a list of modules require more then 16mb of RAM?

Looking at the code (modules/core/AdminModules.inc) it appears that each of the modules is instantiated twice? Is that right? I've quickly added some unset statements at the end of each loop, but that didn't work, that may just be down to me putting them in the wrong place and making things worse mind :-)

>16mb is an awful lot of RAM, and will probably stop Gallery being run on a good number of hosts ...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-11-14 23:58

16 MB of RAM for admin operations isn't that much. if you find out what could be done better, please submit a patch.
and it's not that it really requires 16mb (which still isn't that much), but often, 8mb isn't enough.
the g2 framework comes at a price... if you find out where in the framework we could reduce the memory footprint, let us know.

also, in AdminModules.inc, we don't have all modules loaded at the same time. in the foreach, we do $module = loadPlugin -> the allocated memory is overwritten with a new object, it's not additive.