Installation experiences
I installed Drupal Commons yesterday (Aug 8, 2010). In the installation process, I got a blank screen. The php error log had:
$ Allowed memory size of 33554432 bytes exhausted (tried to allocate 10268 bytes) in /home/[myusername]/public_html/includes/database.mysql-common.inc on line 41, referer: http://[mysite]/install.php?locale=&profile=drupal_commons&op=start&id=1
I created a php.ini file in my drupal directory containing the line:
memory_limit = 64M
and then went back to the previous screen. Installation resumed.
Then I got:
An error occurred. http://[mysite]/install.php?locale=&profile=drupal_commons&id=1&op=do <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" /> <title>Configure site | Drupal</title> <link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?0" />
and it goes on and on and on.
Ends with:
</div> <!-- /container --> </div> <!-- /layout --> </body> </html>
Above it was the line:
Please continue to the error page --
All necessary changes to ./sites/default and ./sites/default/settings.php have been made. They have been set to read-only for security.
The installation was successful. I like what I see so far.


Comments
Thank you for the report, and
Thank you for the report, and I apologize for the inconvenience. First, I would try again with more than 64MB of memory for PHP. I always allot 128MB and have never had a problem with that amount. It may seem high, but if that resolves the problem, then we know what's going on.
The remaining errors doen't provide much of an idea as to what is failing for you.
Thanks, Mike
Mike, Thanks for your reply.
Mike, Thanks for your reply. My message wasn't very clear. The installation was successful and I've been working with the site.
I wanted to contribute documentation -- that people may need to increase php memory and how to do it with a php.ini file. 64MB Was enough for my site, but thanks for letting me know that I might need to increase it more later.
Also, even though I got a red screen with a LONG error message, the installation was successful.
Thanks again for your message.
Judy
no install
did fresh install, was raring to see the commons up , I have specific plans, been waiting for this.
so.. fresh install, new sql dbase, user,grant priveleges,
open drupal at localhost/ I get screen asks for drupal or commons install.
I can install drupal no problem. I cannot install commons.
On screen I have both options showing,
wamp testing server, windows XP, php.ini set to
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 164M ; Maximum amount of memory a script may consume (128MB)
get timeout error messge.
tried this a couple of times, always same result.
After the time alloted I get
"Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp\www\includes\file.inc on line 922" .
I have checked directory permissions, on Windows XP, have given all proper permissions.
(as noted, no issue with drupal install, but commons profile is a no go).
any suggestions?
As a quick addendum. moved
As a quick addendum.
moved the installer onto a Mac OS X system, 10.5x , installed with no issues, up and running in no time.
the problem was specific to the wamp/ windows XP system, I guess. of interest, but not critical.
cheers,
Thanks for the update
We try lots of things in testing, but can never get them all, I'm afraid.
Hopefully this will become reproducable by somebody who can debug it, and submit a patch (if needed.)
for clarity: specific to Commons only
quick note: this problem is specific to Commons only. Drupal, C5,Wordpress, Zenphoto, zen Cart, OsCommerce, have all installed on this same machine, same Wamp server setups.
When I have some time, I'll do a wipe and re-install WAMP on my PC box and see if it results same .... kinda really prefer to have it on a development machine rather than my main server. But Commons looks good on production test server for now (Using MAMP on Mac OSX , as subdomain).
same problem
Using wamp as well. Got commons to install once on the initial beta release, but since 1.0, have not been able to get an install to work. same maximum execution error. Tried on Acvquia Drupal Stack as well. failed a few times. Set max execution to 900 and memory limit to 256MB. Got it to go through but is locked at install profile step.
se fsefsef
bsdfbhsdk
If you add a lot of groups you might need even more memory
FYI: I added twelve groups, and made several regular sections (for a synagogue) as a test site of Drupal Commons back in September.
When I went back to Web Enabled (where I'm testing), it required me to upgrade the memory which was already set at 128MB. So, I'm at 256MB. I don't know if it's due to the number of regular pages or the number of groups, but otherwise, I haven't customized much on the site.
prevent drupal requirement checking
The timeout and memory allocation error is because drupal traverses all the module files looking for requirements in the install file and requiring each of those files. At around 1-3 seconds per module, it accounts for the need for a very large execution time and memory allocation.
I ended up making two temporary core changed to get it to install:
1. replaced line 687 of the install.inc file from:
"$installs = drupal_get_install_files($module_list);"
to:
"$installs = array();"
It's hacky, but it GREATLY speeds up the process and reduces the overhead of requiring all those module files, and since we know that the distro fresh-out-of-the-box has all it's requirements, there is no need to check them.
2. In case it helps anyone else, i was also getting an error like this:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM drupal_menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in ...includes/menu.inc on line 315"
Which is solved by modifying line 315 in menu.inc from:
"if ($router_item = db_fetch_array(db_query_range('SELECT * FROM {menu_router} WHERE path IN ('. implode (',', $placeholders) .') ORDER BY fit DESC', $ancestors, 0, 1))) {"
to:
"if ($placeholders && count($placeholders) > 0 && $router_item = db_fetch_array(db_query_range('SELECT * FROM {menu_router} WHERE path IN ('. implode (',', $placeholders) .') ORDER BY fit DESC', $ancestors, 0, 1))) {"
hope that helps
Possible (hacked) solution
I would like to thank samadams83, hallman, and jbibbs, between the three of them I was able to figure it out.
Using WAMP 2.1 installed on Windows 7 with PHP 5.3.5 and Apache 2.2.17 and MySQL 5.5.8 I was able to finally get it to work.
At the end you will get an error message and click where it says to go to the error page. The installation will be complete.
White Screen
I'm having the same issue. Tried to install Commons but couldn't get past the second white screen.
The first screen asks to choose whic install youu'd like Commons or Drupal. If I choose Commons my next screen is Blank.
Using the same installer I was able to install Drupal right away with no issues.
I've tried php.ini, everything and can't get it to work.