Code Monkey’s picture

It looks like you did not upload the entire list of files / folders from the download. You might try:

  • downloading the current version again;
  • extracting the files / folders;
  • re-upload the files to your web site;
  • and then start over on the install.
tchurch’s picture

I completely started again. This time using the zip file instead of the tar.gz file.
When I tried to unpack the gz file, it complained about duplicate files but the zip file didn't.

I've never had problems with gz files before so not sure where the problem could be (if there is one).

drupalninja99’s picture

Status: Active » Needs review

Ya make sure you download the whole package that includes core and everything.

culverhc’s picture

Not exactly the same issue, but similar.

Although I followed the drupal documentation and increased the memory limit to '512M' (something greater than the recommended 256M) in sites/default/settings.php file , but the following error still occurred during the 'Install Profile' portion of the install.php function. The error occurred after getting to 100% and completing 139 of 139 items.

Error message:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 517643 bytes) in /Users/hculver/Sites/oc_dev/openchurch_dev/profiles/openchurch/modules/contrib/features/ on line 496

the URL appears as follows:

this is running on localhost (Mac OS X 10.7.5) so no issues with memory limits

background info: The phpmyadmin control panel in localhost is serving multiple databases - some drupal and some not. The settings.php file is supposedly unique to this site 'openchurch_dev' and presumably my other drupal sites which are connected to separate databases are not affected by, and are not affecting, this site's memory_limit.

Is there a max memory size for phpmyadmin -- the sum of all databases?


culverhc’s picture

Update to last post.

If it helps someone else attempting to install an openchurch distribution of drupal, here's what I discovered that did not seem to be documented. I was able to finish the install process today - however, there are some images missing from the 'new site' that I believe were supposed to be installed as a part of the openchurch drupal 7 distribution. (But I probably won't be using those graphics so my install is 99% complete.)

Yes, when you copy the default.settings.php file and rename to settings.php, you do need to add the new line of code in the PHP section to increase the memory available to PHP. I used:

ini_set('memory_limit', '512M');

you might be able to use 256M or other value.

However, this alone failed for me when installing version 7.x-1.11-beta1 because the install process appears to overwrite the settings.php file with new data. In my case the line of code shown above (and a preceeding comment I entered) was gone when I re-opened the file. (Yes, it was there before.) The new code was there before the install process, but was gone latter in the install process.

So I edited the new version of the file (while noticing that the sql database specifics I had entered into a web form during the install were now populating lines in the settings file which demonstrated that the install process modified this file - or modified another file and used it to overwrite this file).

Then I attempted to finish the install with this command:


The significant part is to call the install.php file as the starting point, not the default of localhost/yourdrupalsitedir/.

Apparently this action re-calls the install function and after a few seconds the screenpointer pointed to the step below where it had previously hung (seeming to skip over what it had already accomplished), and I was able to continue with the install menus and finish the process.

Conclusion: something about the beta1 release does not read, save, and edit the settings.php file. This is speculation, but the file might be read once but then it is overwritten, thus erasing the special lines to increase the memory limit.

drupalninja99’s picture

This is something with your particular setup. You can edit your php.ini file to increase your memory and then you don't have to worry about settings.php being overwritten.

drupalninja99’s picture

@tchurch, something is wrong with your setup. What you should be downloading is basically a full Drupal install with 1 additional folder, that is profiles/openchurch. This is where all of the OpenChurch files live. If you are not seeing this then something is going awry with your local setup.

dpaull’s picture

I have had a similar experience with the install of 7.11 beta3. Now the problem I have is that I have no way to signon as adminstrator to maintain the site. Every attempt returns access denied.

drupalninja99’s picture

Can you give me the exact link you are using to download? Thanks!

drupalninja99’s picture

Status: Needs review » Postponed (maintainer needs more info)
BeccaWhitlock’s picture

I am having the same issue as culverhc. This is a fresh install. This is the exact link that I used to download:

I uncompressed the files, uploaded them to my server, added my database settings to the settings.php file, added the ini_set('memory_limit', '512M'); to the settings.php file, and am still having this error. According to phpinfo(), my memory is set to 90M.

The installation process got to 100% for 139 out of 139 modules, then I get the following error:

Fatal error: Out of memory (allocated 49020928) (tried to allocate 311296 bytes) in /path/to/drupal/profiles/openchurch/modules/contrib/views/plugins/ on line 1793

Any help is extremely appreciated.

God bless!

BeccaWhitlock’s picture

Status: Postponed (maintainer needs more info) » Active
drupalninja99’s picture

Status: Active » Needs review

Ya you definitely need more memory. Your host configuration may not allow you to override your memory. You could always try to increase the memory to like 800M but 512 has always been enough for me. If the server configuration doesn't allow for override then it's a moot point anyway. What host are you using? Note that we have cheap hosting at

severino’s picture

Version: 7.x-1.11-beta1 » 7.x-1.11-beta8

Same problem here, as OP. Trying to install 7.x-1.11-beta8. This list of modules missing here, both in the tar-ball and the zip-file.

Required modules Required modules not found.
The following modules are required but were not found. Move them into the appropriate modules subdirectory, such as sites/all/modules. Missing modules: Admin_menu_toolbar, Content_taxonomy, Content_taxonomy_autocomplete, Filefield_sources, File_styles, Fontyourface_ui, Fusion_accelerator, Fusion_apply_ui, Google_fonts_api, Node_reference, Page_manager, References_dialog, Rss_category, Rss_creator, Rss_enclosure, Styles_ui, User_reference, Views_bulk_operations, Views_slideshow_cycle, Openchurch_ministry, Openchurch_ministry_demo_content, Openchurch_blog, Openchurch_blog_demo_content, Openchurch_bulletin, Openchurch_bulletin_demo_content, Openchurch_events, Openchurch_events_demo_content, Openchurch_gallery, Openchurch_gallery_demo_content, Openchurch_giving, Openchurch_giving_demo_content, Openchurch_homepage_rotator, Openchurch_homepage_rotator_demo_content, Openchurch_image, Openchurch_podcast, Openchurch_podcast_demo_content, Openchurch_social, Openchurch_staff, Openchurch_staff_demo_content, Openchurch_video, Openchurch_video_demo_content, Openchurch_defaults, Openchurch_defaults_demo_content

I don't think this question has been answered, but correct me, if I'm wrong.

I just followed the notes link to the download-site. There is a core-package and a no-core-package, the last one seems to contain those missing modules, but where do I install them or upload them to what dir?

Best regards, severino.

drupalninja99’s picture

I am only going to address the missing modules in this ticket. It is possible that this is somehow related to memory but that also might be a separate issue.

I need the following to troubleshoot this issue:
1. The exact link you are using to download openchurch, you should be using one of the main links on the openchurch project page (see screenshot).
2. I need to see your profiles directory. Note that NO MODULES or any files get installed to /sites/all. All of the openchurch files live in /profiles/openchurch. I want to see a screenshot with that folder expanded.

The first thing we need to do is confirm that you do have the correct files. I downloaded the zip file just the other day with no problems.

drupalninja99’s picture

Status: Needs review » Active

Going to make this an open ticket, I get "cannot install" errors every week it seems like. We can address all of those issues in this ticket as 99% of the time it's the same issue (not enough memory, etc).

kirkbyg’s picture


During install i first get an ajax error but i can simply refresh the page and the install continues but when i when it is at step 141 it appears to freeze and i cannot continue to create a user etc .

Can someone help ?

drupalninja99’s picture

You need to check your max execution time and your PHP memory. Usually it's one of those things. If you are installing on a cheap host, they never have enough memory. Also a lot of local installers like XAMPP, MAMP also don't have enough PHP memory by default.

drupalninja99’s picture

From @ Comfiks

I have try with firefox first and got 2 install error.
the i change to IE10 and only got 1 error on Superfish, then i say fix it after install but the problem is the last page with
user details dont submit, so it dont save the info and i cant access admin DIR without get a access denied.

Routed from

drupalninja99’s picture

@ Comfiks, et al. please include how much php memory you are using if you are having an install problem.

drupalninja99’s picture

Title: Cannot install » [Sticky] - Cannot install (Please post install issues/errors here)
feanarosurion’s picture

Hi there, sorry to resurrect this old thread. I'm having trouble installing the latest version of OpenChurch. I run into a 500 error at around step 136-138 (usually 136). I can't tell which module is causing this particular error but it causes my installation to fail. I've tried increasing my memory limit to 512 and my execution time to 600, but the error persists. Annoyingly, there appears to be something wrong with my error logs with my host, as I can't seem to find the log for this 500 error. The error message essentially contains the whole raw page for a default 500 error on my host and some suggestions for modifying my .htaccess file. I'm using all files as extracted from the zip file from the version on February 19th. Any help would be appreciated. If you could point me to any more information I could gather that would be a big help as well. Thanks!

culverhc’s picture

deleted by initiator

culverhc’s picture

Issue summary: View changes

I am having issues when trying to follow the instructions on Upgrading to 2.x. instruction page.
a. I increased memory and max time as discussed in other issue threads and restarted apachectl.
b. Downloaded and installed open church-7.x-1.16; website displayed properly although there were two static error warnings.
c. I navigated the site to confirm it was operating properly.
d. Using the admin menubar I updated several modules successfully.
e Downloaded drupal core 7.23 and manually updated successfully.
f. backed up the directory and the database and flushed the drupal cache.
g. Downloaded and tar'd openchurch-7.x-2.1-beta5-core.tar.gz, copied over all files except /profiles/openchurch and /sites/default/files.
h. Ran update.php, which reported 80 pending updates.
i. Ran update.php which reported 16 pending updates.
j. Ran update.php which reported 5 pending updates - two were open church (# 7000 and xxx) and three were webforms.
k. Ran again which report 3 pending updates - webforms 7419, 7420, and 7421. The message on the update.php read:
Failed: DatabaseSchemaObjectExistsException: Cannot add index data to table webform_submitted_data: index already exists. in DatabaseSchema_mysql->addIndex() (line 437 of /Users/hculver/Sites/oc1_dev/includes/database/mysql/
l. The update.php page provided the option to click a link to home page or to the administrator page; however, neither page would display due to an error, PDOException: SQLSTATE(HY000): General error: 2006 MySQL server has gone away: . . . .

I have repeatedly tried different combinations of this install process to get openchurch 2.1 installed, but no luck. I even tried installing open church-7.x-2.1-beta5 directly .

Any suggestions would be helpful. Thanks!

asetilean’s picture

Version: 7.x-1.11-beta8 » 7.x-2.1-beta7
Issue summary: View changes

Tried to install 7.x-2.1-beta7 on my laptop with MAMP (Apache 2.2.29, MySQL 5.5.38, php 5.5.18 with memory_limit = 1024M and max_execution_time = 3000) last night. The installation itself seemed to go fine, (got a few php Notices at the end) but when it completed and I clicked "visit your site", I get the following uncaught exception (I get the exception every time I try to visit the site):
Additional uncaught exception thrown while handling exception.


PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT ml.*, m.*, ml.weight AS link_weight FROM {menu_links} ml LEFT OUTER JOIN {menu_router} m ON m.path = ml.router_path WHERE (ml.link_path IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => front ) in menu_link_get_preferred() (line 2504 of /Applications/MAMP/htdocs/openchurch/includes/


PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:303:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT ml.*, m.*, ml.weight AS link_weight FROM {menu_links} ml LEFT OUTER JOIN {menu_router} m ON m.path = ml.router_path WHERE (ml.link_path IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => front ) ";s:9:"%function";s:25:"menu_link_get_preferred()";s:5:"%file";s:54:"/Applications/MAMP/htdocs/openchurch/includes/";s:5:"%line";i:2504;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://localhost/openchurch/ [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => ::1 [:db_insert_placeholder_9] => 1429631275 ) in dblog_watchdog() (line 160 of /Applications/MAMP/htdocs/openchurch/modules/dblog/dblog.module).

Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT 1 AS expression FROM {sessions} sessions WHERE ( (sid = :db_condition_placeholder_0) AND (ssid = :db_condition_placeholder_1) ); Array ( [:db_condition_placeholder_0] => 2zMIDy6Kvp1ccA_uIKJ52QMWFD7F-mUhySikg9GQv3o [:db_condition_placeholder_1] => ) in _drupal_session_write() (line 209 of /Applications/MAMP/htdocs/openchurch/includes/

FWIW, I got 12 copies of this php Notice (which some forum posts seem to indicate is not too much cause for concern) on the "Installation Success" page:
Notice: Undefined index: undefined in plup_field_attach_presave() (line 585 of /Applications/MAMP/htdocs/openchurch/profiles/openchurch/modules/contrib/plup/plup.module)

I also tried this on my web host (Dreamhost) and I don't get the mysql exception (I do get the php notices, though). My test site at Dreamhost is also on mysql 5.5.38, but php is 5.4.

drupalninja99’s picture

I will try a fresh install, maybe there is a DB error breaking the install.

drupalninja99’s picture

OK something strange has happened, I am going to go back and looked the make file.

drupalninja99’s picture

I was able to install just now. Were you trying to upgrade from a 1x version? DreamHost has not worked well with OpenChurch in general.

ckoharj’s picture

Just installed the latest openchurch-7.x-2.1-beta7

The following notices keep appearing.
1. Notice: Undefined index: #primary in include() (line 185 of /profiles/openchurch/themes/openchurch_theme/templates/page.tpl.php).

2. Notice: Undefined index: name in system_requirements() (line 34 of /modules/system/system.install).

3. Notice: Undefined index: version in system_requirements() (line 36 of /modules/system/system.install).

drupalninja99’s picture

Status: Active » Closed (fixed)

I have added !empty() for #primary but I am not seeing any of these notices.

Going to go ahead and close this issue as we will be only supporting new installs for Drupal 8 installs.

bramface’s picture

"we will be only supporting new installs for Drupal 8 installs."

Do you mean you are not putting out any new distribution versions for 7.x?