Updated: Comment #104

Problem/Motivation

In certain circumstances, the following error (or something similar) may be displayed during the installation process:

Fatal error: Call to undefined function field_attach_load() in ~\modules\user\user.module on line 270

This error seems to be caused by a problem during the Drupal system installation, causes installation to fail after only creating 31 database tables, and will make requests to the front page of the site display a 'Page not found' error. This seems to happen as a result of various different configuration problems, browser issues, etc. Some of the things you should try to change before throwing your hands up in frustration:

  1. #7: Make sure you're not reaching the configured max_execution_time for PHP is not being reached.
  2. #25: Switch back to the default php.ini, restart Apache, and see if install works.
  3. #27: Make sure dependencies[] = field is defined in your install profile's .info file.
  4. #34: Using a different browser (e.g. use Chrome instead of Safari) during installation may help.
  5. #36: Switching the bundled jQuery to version 1.7.1 might fix the problem, at least for Safari users.
  6. #37, #42, #54: Dropping the entire database and installing again might fix the problem.
  7. #45, #141: Limiting the database name length to < 8 characters may fix the problem.
  8. #57: Make sure the database user Drupal is using has all permissions for the database (GRANT ALL ON [db]).
  9. #59: Make sure your browser's cookies are enabled when performing an installation.
  10. #61: Restarting php-fpm fixed the problem.
  11. #66: Setting the $cookie_domain variable in settings.php fixed the problem.
  12. #82: The problem could be related to install.php not loading field.attach.inc at whatever bootstrap level it is running at.
  13. #88: Make sure the $base_url variable in settings.php is correct.
  14. #92: Ensuring the database name had only lowercase ASCII characters fixed the problem.
  15. #108: Make sure your Apache configuration doesn't do anything that might cause cookies to be dropped.
  16. #135: If it's an install in an existing Drupal directory, temporarily move all the modules in sites/all/modules out of the Drupal tree while installing.
  17. #137: Disable the php opcache module before proceeding with installation
  18. #161: Make sure the PHP variables session.auto_start and session.cookie_secure are = 0 and then reinstall Drupal.

As you can see, there are a TON of different things that can cause this issue. The root cause is installation fails during module installation, and won't ever continue past that point until the database is dropped and recreated again.

Proposed resolution

None so far.

Remaining tasks

  • Figure out what's causing this issue.
  • Try to get a set of exact steps to reproduce the problem.

User interface changes

None.

API changes

None.

Original report by hyperviper

System Info:
Windows XP SP3
WAMP v2.0
Chrome 2.0.x
Web Root: D:\www
Installation Root: D:\www\wi

Reproduce:

During the installation, after entering the DB information (db name, user, password, etc) the following error appears:
Fatal error: Call to undefined function field_attach_load() in D:\www\wi2\modules\user\user.module on line 270

This bug is critical since i cannot move forward with installing drupal :(

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Strange, I've performed several D7 installations recently, all went smoothly.
Make sure your D7 files are to-date with latest CVS ?

brianV’s picture

Can you verify that field_attach_load() exists in the file modules/field/field.autoload.inc? It should be around line 60.

I just did a D7 install here, and it went absolutely smoothly.

hyperviper’s picture

Well, I've already completely deleted the installation so i cannot provide that data.

yched’s picture

Status: Active » Fixed

Let's assume this is fixed then. If it resurfaces, it will be noticed big time anyway.

Sancho Panza’s picture

Same Problem

System Info:
Windows XP Pro SP3
WAMP v2.0
Firefox 3.0.10
Web Root: D:\wamp\www
Installation Root: D:\wamp\www\drupal7
Drupal version installed: 7.x-dev 2009-Jun-11

Cannot find file: modules/field/field.autoload.inc

Found the function function field_attach_load() in file modules/field/field.attach.inc line 397

Follows a list of the folder content

----------------------------------------------------------------------------------
C:\wamp\www\drupal7\modules\field>dir
Volume in drive C has no label.
Volume Serial Number is B845-09B6

Directory of C:\wamp\www\drupal7\modules\field

10/06/2009 11:16 p.m. .
10/06/2009 11:16 p.m. ..
06/06/2009 01:17 p.m. 29.214 field.api.php
06/06/2009 09:00 p.m. 39.461 field.attach.inc
28/05/2009 07:05 a.m. 26.838 field.crud.inc
02/06/2009 11:41 p.m. 9.152 field.default.inc
02/06/2009 10:47 a.m. 17.752 field.form.inc
10/06/2009 09:08 p.m. 586 field.info
05/06/2009 03:25 p.m. 15.449 field.info.inc
28/05/2009 07:05 a.m. 4.288 field.install
06/06/2009 01:17 p.m. 19.924 field.module
06/06/2009 09:00 p.m. 77.426 field.test
10/06/2009 11:16 p.m. modules
10/06/2009 11:16 p.m. theme
10 File(s) 240.090 bytes
--------------------------------------------------------------------------------------

Sancho Panza’s picture

Status: Fixed » Active
Sancho Panza’s picture

Status: Active » Fixed

Sorry for the hurried posting before digging into the details.

Finally I found that the problem was in the php configuration.

In the error log found the following during installation.

[10-Jun-2009 23:29:39] PHP Fatal error: Maximum execution time of 90 seconds exceeded in C:\wamp\www\drupal7\includes\database\database.inc on line 1691

There was message "an error ocurred" without any more details. It was quite inconspicuous to make one think it was a fatally flawed installation. Indeed, the installation proceeded to the user and password request, and then the message in the title appeared.

Solved by increasing PHP maximum execution time.

Then reinstalled smoothly

prolific_one’s picture

But how do I increase my maximum execution time? Mine is apparently set to 30 seconds. I get the same error, except mine says 30 seconds instead of 90.

EDIT: Nevermind I think I found it in the php.ini file: max_execution_time

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

coderintherye’s picture

Status: Closed (fixed) » Active

I'm still getting this on 7.x-dev as of 4/19/2010. I upped memory to 128MB, turned off APC and xdebug, and still I get this error. I'm not doing anything special, running Ubuntu 9.10 PHP Version 5.2.10 Apache2. Drupal 6 sites installed and run fine.

When running D7 install it breaks out with an error on front-end saying AJAX load error: An AJAX HTTP request terminated abnormally. Debugging information follows. Path: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=minima...

This is browser independent, at least I tried on Firefox and Chrome and both produced the same result.

[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function field_attach_load() in /var/www/drupal-7.x-dev/includes/entity.inc on line 241, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 1. {main}() /var/www/drupal-7.x-dev/install.php:0, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 2. install_drupal() /var/www/drupal-7.x-dev/install.php:21, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 3. install_run_tasks() /var/www/drupal-7.x-dev/includes/install.core.inc:80, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 4. install_run_task() /var/www/drupal-7.x-dev/includes/install.core.inc:344, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 5. drupal_build_form() /var/www/drupal-7.x-dev/includes/install.core.inc:394, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 6. drupal_process_form() /var/www/drupal-7.x-dev/includes/form.inc:225, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 7. form_execute_handlers() /var/www/drupal-7.x-dev/includes/form.inc:636, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 8. install_configure_form_submit() /var/www/drupal-7.x-dev/includes/form.inc:1053, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 9. user_load() /var/www/drupal-7.x-dev/includes/install.core.inc:1738, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 10. user_load_multiple() /var/www/drupal-7.x-dev/modules/user/user.module:289, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 11. entity_load() /var/www/drupal-7.x-dev/modules/user/user.module:225, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 12. DrupalDefaultEntityController->load() /var/www/drupal-7.x-dev/includes/common.inc:6421, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 13. UserController->attachLoad() /var/www/drupal-7.x-dev/includes/entity.inc:130, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...
[Mon Apr 19 17:05:00 2010] [error] [client 127.0.0.1] PHP 14. DrupalDefaultEntityController->attachLoad() /var/www/drupal-7.x-dev/modules/user/user.module:271, referer: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=standa...

coderintherye’s picture

To further add to that, only 31 tables are created.

`actions`;
`authmap`;
`batch`;
`blocked_ips`;
`cache`;
`cache_bootstrap`;
`cache_form`;
`cache_menu`;
`cache_page`;
`cache_path`;
`date_formats`;
`date_format_locale`;
`date_format_type`;
`file_managed`;
`flood`;
`history`;
`menu_links`;
`menu_router`;
`queue`;
`registry`;
`registry_file`;
`role`;
`role_permission`;
`semaphore`;
`sequences`;
`sessions`;
`system`;
`url_alias`;
`users`;
`users_roles`;
`variable`;

codycraven’s picture

Status: Active » Postponed (maintainer needs more info)

nowarninglabel,

Have you checked to see if you received a 'Maximum execution time' error? If so please post the number of seconds.

coderintherye’s picture

Nope, no max execution time error in the error logs, the results are returned pretty quickly, and I have my max. exec. times set at 90 seconds. This is definitely a weird issue, but it's obvious the installation is not getting through the process, and the reason it is stopping has to be the "AJAX error" described above, and then this field_attach_load() error is just a symptom of the installation failing at a certain point (all expected tables are not created).

Maybe I can try an installation in Firefox using Live HTTP Headers and see what these AJAX calls are trying to do. When did AJAX get into the install, and does anyone have a good place to start for me to find out about these new Javascript additions to the install process for D7, so I can try to debug?

coderintherye’s picture

Also, I am quite open to the idea that this may be platform specific. I installed D7 on Windows on a XAMPP stack using Firefox without a problem (though it was an earlier release). I've reproduced this problem on two Ubuntu boxes though. So, could be something related to the particular PHP settings with this Ubuntu LAMP setup.

coderintherye’s picture

Priority: Critical » Normal

I'm changing this to normal, not critical. Since I can only reproduce it on Ubuntu but not on Windows.

codycraven’s picture

nowarninglabel,

Would you mind closing out this issue and creating a new one specifically for the instance you are encountering? -- Since it differs drastically from the original issue that was resolved. You are likely to get better support that way.

coderintherye’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ok, although it is the same line and same error, and is in the installation portion, but yes it is a different resolution to this problem, since it is not max. exec time.

dstol’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active

Hate to reopen, but just downloaded rc1, stuck it into DAMP and got Fatal error: Call to undefined function field_attach_load() in /Users/david/Sites/D7/includes/entity.inc on line 320 after submitting the Configure site in install.php

cosmicdreams’s picture

DAMP? Seriously? Is that Drupal+Apache+MySql+PHP ? Talk about abusing an acronym.

Can you list the specifications of your setup? Things that will be important to know:

1. OS
2. PHP Version
3. MySQL Version
4. Apache Version

Also, in some cases knowing what version of Pecl has been important.

For example, I ran into a number of issues on my CentOS 5.2 server that have since been resolved. These issues were caused by my outdated version of perl regular expressions instead of anything else.

bcn’s picture

Priority: Normal » Critical
Status: Fixed » Postponed (maintainer needs more info)

DAMP,
1) Web sites or servers running the proprietary Darwin operating system [wikipedia.org]
2) The Acquia Drupal stack installer for Windows and Mac OS [acquia.com]
3) ...stands for (D)ragonFly + (A)pache + (M)ySQL + (P)ostgreSQL + PHP [vmware.com]

My bet is #1, but until the answers come for what cosmicdreams asked in #19, this report needs more info.

Edited to add that the Acquia installer works for Mac too.

dstol’s picture

Status: Active » Postponed (maintainer needs more info)

Most recent Acquia stack.
OS X 1.6.x
Apache 2.2.16
Mysql 5.1.50
php 5.2.14

But now that I try to reproduce it at home I can't.

bcn’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Fixed

Thanks for the further details... Feel free to reopen if you hit this again.

coderintherye’s picture

@#20 The DAMP Installer is multi-platform not just an installer for Windows.
It's pretty common Drupal knowledge what DAMP stands for .

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

claidiere’s picture

On Ubuntu and maybe on other OS you can simply mouve your php.ini to php.ini.bak to retrieve the basic configuration of php, it works for me.

Or you can try to comment lines after lines ;)

Roland Heymanns’s picture

Version: 7.x-dev » 7.2

[Mon Jun 20 10:12:42 2011] [notice] child pid 5363 exit signal Segmentation fault (11)
[Mon Jun 20 10:13:06 2011] [error] [client 127.0.0.1] File does not exist: /srv/www/lib/php/drupal720/admin, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function field_attach_load() in /srv/www/lib/php/drupal720/includes/entity.inc on line 319, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 1. {main}() /srv/www/lib/php/drupal720/install.php:0, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 2. install_drupal($settings = *uninitialized*) /srv/www/lib/php/drupal720/install.php:26, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 3. install_run_tasks($install_state = array ('interactive' => TRUE, 'active_task' => 'install_configure_form', 'completed_task' => 'install_profile_modules', 'database_tables_exist' => TRUE, 'forms' => array (), 'installation_finished' => FALSE, 'locales' => array (0 => class stdClass { ... }), 'parameters' => array ('profile' => 'standard', 'locale' => 'en'), 'parameters_changed' => FALSE, 'profile_info' => array ('name' => 'Standard', 'description' => 'Install with commonly used features pre-configured.', 'version' => '7.2', 'core' => '7.x', 'dependencies' => array (...), 'files' => array (...), 'project' => 'drupal', 'datestamp' => '1306357016', 'distribution_name' => 'Drupal', 'hidden' => FALSE, 'php' => '5.2.4'), 'profiles' => array ('standard' => class stdClass { ... }, 'minimal' => class stdClass { ... }, 'testing' => class stdClass { ... }), 'server' => array (), 'settings_verified' => TRUE, 'stop_page_request' => FALSE, 'task_not_complete' => FALSE, 'tasks_performed' => array (0 => 'install_select_profile', 1 => 'install_select_locale', 2 => 'install_load_profile', 3 => 'install_bootstrap_full'))) /srv/www/lib/php/drupal720/includes/install.core.inc:79, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 4. install_run_task($task = array ('display_name' => 'Configure site', 'type' => 'form', 'display' => TRUE, 'run' => 3, 'function' => 'install_configure_form'), $install_state = array ('interactive' => TRUE, 'active_task' => 'install_configure_form', 'completed_task' => 'install_profile_modules', 'database_tables_exist' => TRUE, 'forms' => array (), 'installation_finished' => FALSE, 'locales' => array (0 => class stdClass { ... }), 'parameters' => array ('profile' => 'standard', 'locale' => 'en'), 'parameters_changed' => FALSE, 'profile_info' => array ('name' => 'Standard', 'description' => 'Install with commonly used features pre-configured.', 'version' => '7.2', 'core' => '7.x', 'dependencies' => array (...), 'files' => array (...), 'project' => 'drupal', 'datestamp' => '1306357016', 'distribution_name' => 'Drupal', 'hidden' => FALSE, 'php' => '5.2.4'), 'profiles' => array ('standard' => class stdClass { ... }, 'minimal' => class stdClass { ... }, 'testing' => class stdClass { ... }), 'server' => array (), 'settings_verified' => TRUE, 'stop_page_request' => FALSE, 'task_not_complete' => FALSE, 'tasks_performed' => array (0 => 'install_select_profile', 1 => 'install_select_locale', 2 => 'install_load_profile', 3 => 'install_bootstrap_full'))) /srv/www/lib/php/drupal720/includes/install.core.inc:342, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 5. drupal_build_form($form_id = 'install_configure_form', $form_state = array ('build_info' => array ('args' => array (...)), 'temporary' => array (), 'programmed' => FALSE, 'cache' => FALSE, 'no_redirect' => TRUE, 'rebuild' => FALSE, 'rebuild_info' => array (), 'redirect' => NULL, 'submitted' => TRUE, 'executed' => FALSE, 'method' => 'post', 'groups' => array ('site_information' => array (...), 'admin_account' => array (...), 'server_settings' => array (...), 'update_notifications' => array (...)), 'buttons' => array (0 => array (...)), 'input' => array ('site_name' => 'well-connected', 'site_mail' => 'support@well-connected.net', 'account' => array (...), 'site_default_country' => 'NZ', 'clean_url' => '0', 'date_default_timezone' => 'Pacific/Auckland', 'update_status_module' => array (...), 'form_build_id' => 'form-dTljyrhAndmguV2_LLBvy9_FpOSiEZqJeg_Ed_qwzyg', 'form_id' => 'install_configure_form', 'op' => 'Save and continue'), 'values' => array ('site_name' => 'well-connected', 'site_mail' => 'support@well-connected.net', 'account' => array (...), 'site_default_country' => 'NZ', 'date_default_timezone' => 'Pacific/Auckland', 'clean_url' => '0', 'update_status_module' => array (...), 'submit' => 'Save and continue', 'form_build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_id' => 'install_configure_form', 'op' => 'Save and continue'), 'complete form' => array ('site_information' => array (...), 'admin_account' => array (...), 'server_settings' => array (...), 'update_notifications' => array (...), 'actions' => array (...), '#form_id' => 'install_configure_form', '#type' => 'form', '#build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_build_id' => array (...), 'form_id' => array (...), '#id' => 'install-configure-form', '#method' => 'post', '#action' => '/lib/php/drupal720/install.php?profile=standard&locale=en', '#theme_wrappers' => array (...), '#tree' => FALSE, '#parents' => array (...), '#validate' => array (...), '#submit' => array (...), '#theme' => array (...), '#processed' => FALSE, '#defaults_loaded' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#array_parents' => array (...), '#validated' => TRUE), 'process_input' => TRUE, 'triggering_element' => array ('#type' => 'submit', '#value' => 'Save and continue', '#weight' => 15, '#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#limit_validation_errors' => FALSE, '#process' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => FALSE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-submit'), 'clicked_button' => array ('#type' => 'submit', '#value' => 'Save and continue', '#weight' => 15, '#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#limit_validation_errors' => FALSE, '#process' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => FALSE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-submit'))) /srv/www/lib/php/drupal720/includes/install.core.inc:392, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 6. drupal_process_form($form_id = 'install_configure_form', $form = array ('site_information' => array ('#type' => 'fieldset', '#title' => 'Site information', '#collapsible' => FALSE, 'site_name' => array (...), 'site_mail' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-site-information', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'admin_account' => array ('#type' => 'fieldset', '#title' => 'Site maintenance account', '#collapsible' => FALSE, 'account' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.001, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-admin-account', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), 'server_settings' => array ('#type' => 'fieldset', '#title' => 'Server settings', '#collapsible' => FALSE, 'site_default_country' => array (...), 'date_default_timezone' => array (...), 'clean_url' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.002, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-server-settings', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'update_notifications' => array ('#type' => 'fieldset', '#title' => 'Update notifications', '#collapsible' => FALSE, 'update_status_module' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.003, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-update-notifications', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'actions' => array ('#type' => 'actions', 'submit' => array (...), '#theme_wrappers' => array (...), '#process' => array (...), '#weight' => 100, '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-actions', '#validated' => TRUE), '#form_id' => 'install_configure_form', '#type' => 'form', '#build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_build_id' => array ('#type' => 'hidden', '#value' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', '#id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', '#name' => 'form_build_id', '#input' => TRUE, '#process' => array (...), '#theme' => 'hidden', '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.005, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), 'form_id' => array ('#type' => 'hidden', '#value' => 'install_configure_form', '#id' => 'edit-install-configure-form', '#input' => TRUE, '#process' => array (...), '#theme' => 'hidden', '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.006, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#name' => 'form_id', '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), '#id' => 'install-configure-form', '#method' => 'post', '#action' => '/lib/php/drupal720/install.php?profile=standard&locale=en', '#theme_wrappers' => array (0 => 'form'), '#tree' => FALSE, '#parents' => array (), '#validate' => array (0 => 'install_configure_form_validate'), '#submit' => array (0 => 'install_configure_form_submit'), '#theme' => array (0 => 'install_configure_form'), '#processed' => FALSE, '#defaults_loaded' => TRUE, '#required' => FALSE, '#attributes' => array (), '#title_display' => 'before', '#array_parents' => array (), '#validated' => TRUE), $form_state = array ('build_info' => array ('args' => array (...)), 'temporary' => array (), 'programmed' => FALSE, 'cache' => FALSE, 'no_redirect' => TRUE, 'rebuild' => FALSE, 'rebuild_info' => array (), 'redirect' => NULL, 'submitted' => TRUE, 'executed' => FALSE, 'method' => 'post', 'groups' => array ('site_information' => array (...), 'admin_account' => array (...), 'server_settings' => array (...), 'update_notifications' => array (...)), 'buttons' => array (0 => array (...)), 'input' => array ('site_name' => 'well-connected', 'site_mail' => 'support@well-connected.net', 'account' => array (...), 'site_default_country' => 'NZ', 'clean_url' => '0', 'date_default_timezone' => 'Pacific/Auckland', 'update_status_module' => array (...), 'form_build_id' => 'form-dTljyrhAndmguV2_LLBvy9_FpOSiEZqJeg_Ed_qwzyg', 'form_id' => 'install_configure_form', 'op' => 'Save and continue'), 'values' => array ('site_name' => 'well-connected', 'site_mail' => 'support@well-connected.net', 'account' => array (...), 'site_default_country' => 'NZ', 'date_default_timezone' => 'Pacific/Auckland', 'clean_url' => '0', 'update_status_module' => array (...), 'submit' => 'Save and continue', 'form_build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_id' => 'install_configure_form', 'op' => 'Save and continue'), 'complete form' => array ('site_information' => array (...), 'admin_account' => array (...), 'server_settings' => array (...), 'update_notifications' => array (...), 'actions' => array (...), '#form_id' => 'install_configure_form', '#type' => 'form', '#build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_build_id' => array (...), 'form_id' => array (...), '#id' => 'install-configure-form', '#method' => 'post', '#action' => '/lib/php/drupal720/install.php?profile=standard&locale=en', '#theme_wrappers' => array (...), '#tree' => FALSE, '#parents' => array (...), '#validate' => array (...), '#submit' => array (...), '#theme' => array (...), '#processed' => FALSE, '#defaults_loaded' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#array_parents' => array (...), '#validated' => TRUE), 'process_input' => TRUE, 'triggering_element' => array ('#type' => 'submit', '#value' => 'Save and continue', '#weight' => 15, '#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#limit_validation_errors' => FALSE, '#process' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => FALSE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-submit'), 'clicked_button' => array ('#type' => 'submit', '#value' => 'Save and continue', '#weight' => 15, '#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#limit_validation_errors' => FALSE, '#process' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => FALSE, '#required' => FALSE, '#att
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 7. form_execute_handlers($type = 'submit', $form = array ('site_information' => array ('#type' => 'fieldset', '#title' => 'Site information', '#collapsible' => FALSE, 'site_name' => array (...), 'site_mail' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-site-information', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'admin_account' => array ('#type' => 'fieldset', '#title' => 'Site maintenance account', '#collapsible' => FALSE, 'account' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.001, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-admin-account', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), 'server_settings' => array ('#type' => 'fieldset', '#title' => 'Server settings', '#collapsible' => FALSE, 'site_default_country' => array (...), 'date_default_timezone' => array (...), 'clean_url' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.002, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-server-settings', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'update_notifications' => array ('#type' => 'fieldset', '#title' => 'Update notifications', '#collapsible' => FALSE, 'update_status_module' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.003, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-update-notifications', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'actions' => array ('#type' => 'actions', 'submit' => array (...), '#theme_wrappers' => array (...), '#process' => array (...), '#weight' => 100, '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-actions', '#validated' => TRUE), '#form_id' => 'install_configure_form', '#type' => 'form', '#build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_build_id' => array ('#type' => 'hidden', '#value' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', '#id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', '#name' => 'form_build_id', '#input' => TRUE, '#process' => array (...), '#theme' => 'hidden', '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.005, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), 'form_id' => array ('#type' => 'hidden', '#value' => 'install_configure_form', '#id' => 'edit-install-configure-form', '#input' => TRUE, '#process' => array (...), '#theme' => 'hidden', '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.006, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#name' => 'form_id', '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), '#id' => 'install-configure-form', '#method' => 'post', '#action' => '/lib/php/drupal720/install.php?profile=standard&locale=en', '#theme_wrappers' => array (0 => 'form'), '#tree' => FALSE, '#parents' => array (), '#validate' => array (0 => 'install_configure_form_validate'), '#submit' => array (0 => 'install_configure_form_submit'), '#theme' => array (0 => 'install_configure_form'), '#processed' => FALSE, '#defaults_loaded' => TRUE, '#required' => FALSE, '#attributes' => array (), '#title_display' => 'before', '#array_parents' => array (), '#validated' => TRUE), $form_state = array ('build_info' => array ('args' => array (...)), 'temporary' => array (), 'programmed' => FALSE, 'cache' => FALSE, 'no_redirect' => TRUE, 'rebuild' => FALSE, 'rebuild_info' => array (), 'redirect' => NULL, 'submitted' => TRUE, 'executed' => FALSE, 'method' => 'post', 'groups' => array ('site_information' => array (...), 'admin_account' => array (...), 'server_settings' => array (...), 'update_notifications' => array (...)), 'buttons' => array (0 => array (...)), 'input' => array ('site_name' => 'well-connected', 'site_mail' => 'support@well-connected.net', 'account' => array (...), 'site_default_country' => 'NZ', 'clean_url' => '0', 'date_default_timezone' => 'Pacific/Auckland', 'update_status_module' => array (...), 'form_build_id' => 'form-dTljyrhAndmguV2_LLBvy9_FpOSiEZqJeg_Ed_qwzyg', 'form_id' => 'install_configure_form', 'op' => 'Save and continue'), 'values' => array ('site_name' => 'well-connected', 'site_mail' => 'support@well-connected.net', 'account' => array (...), 'site_default_country' => 'NZ', 'date_default_timezone' => 'Pacific/Auckland', 'clean_url' => '0', 'update_status_module' => array (...), 'submit' => 'Save and continue', 'form_build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_id' => 'install_configure_form', 'op' => 'Save and continue'), 'complete form' => array ('site_information' => array (...), 'admin_account' => array (...), 'server_settings' => array (...), 'update_notifications' => array (...), 'actions' => array (...), '#form_id' => 'install_configure_form', '#type' => 'form', '#build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_build_id' => array (...), 'form_id' => array (...), '#id' => 'install-configure-form', '#method' => 'post', '#action' => '/lib/php/drupal720/install.php?profile=standard&locale=en', '#theme_wrappers' => array (...), '#tree' => FALSE, '#parents' => array (...), '#validate' => array (...), '#submit' => array (...), '#theme' => array (...), '#processed' => FALSE, '#defaults_loaded' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#array_parents' => array (...), '#validated' => TRUE), 'process_input' => TRUE, 'triggering_element' => array ('#type' => 'submit', '#value' => 'Save and continue', '#weight' => 15, '#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#limit_validation_errors' => FALSE, '#process' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => FALSE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-submit'), 'clicked_button' => array ('#type' => 'submit', '#value' => 'Save and continue', '#weight' => 15, '#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#limit_validation_errors' => FALSE, '#process' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => FALSE, '#required' => FALSE, '#attributes' => array
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 8. install_configure_form_submit($form = array ('site_information' => array ('#type' => 'fieldset', '#title' => 'Site information', '#collapsible' => FALSE, 'site_name' => array (...), 'site_mail' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-site-information', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'admin_account' => array ('#type' => 'fieldset', '#title' => 'Site maintenance account', '#collapsible' => FALSE, 'account' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.001, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-admin-account', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), 'server_settings' => array ('#type' => 'fieldset', '#title' => 'Server settings', '#collapsible' => FALSE, 'site_default_country' => array (...), 'date_default_timezone' => array (...), 'clean_url' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.002, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-server-settings', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'update_notifications' => array ('#type' => 'fieldset', '#title' => 'Update notifications', '#collapsible' => FALSE, 'update_status_module' => array (...), '#collapsed' => FALSE, '#value' => NULL, '#process' => array (...), '#pre_render' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.003, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-update-notifications', '#groups' => array (...), '#attached' => array (...), '#ajax_processed' => FALSE, '#validated' => TRUE), 'actions' => array ('#type' => 'actions', 'submit' => array (...), '#theme_wrappers' => array (...), '#process' => array (...), '#weight' => 100, '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-actions', '#validated' => TRUE), '#form_id' => 'install_configure_form', '#type' => 'form', '#build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_build_id' => array ('#type' => 'hidden', '#value' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', '#id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', '#name' => 'form_build_id', '#input' => TRUE, '#process' => array (...), '#theme' => 'hidden', '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.005, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), 'form_id' => array ('#type' => 'hidden', '#value' => 'install_configure_form', '#id' => 'edit-install-configure-form', '#input' => TRUE, '#process' => array (...), '#theme' => 'hidden', '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#weight' => 0.006, '#processed' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#name' => 'form_id', '#ajax_processed' => FALSE, '#sorted' => TRUE, '#validated' => TRUE), '#id' => 'install-configure-form', '#method' => 'post', '#action' => '/lib/php/drupal720/install.php?profile=standard&locale=en', '#theme_wrappers' => array (0 => 'form'), '#tree' => FALSE, '#parents' => array (), '#validate' => array (0 => 'install_configure_form_validate'), '#submit' => array (0 => 'install_configure_form_submit'), '#theme' => array (0 => 'install_configure_form'), '#processed' => FALSE, '#defaults_loaded' => TRUE, '#required' => FALSE, '#attributes' => array (), '#title_display' => 'before', '#array_parents' => array (), '#validated' => TRUE), $form_state = array ('build_info' => array ('args' => array (...)), 'temporary' => array (), 'programmed' => FALSE, 'cache' => FALSE, 'no_redirect' => TRUE, 'rebuild' => FALSE, 'rebuild_info' => array (), 'redirect' => NULL, 'submitted' => TRUE, 'executed' => FALSE, 'method' => 'post', 'groups' => array ('site_information' => array (...), 'admin_account' => array (...), 'server_settings' => array (...), 'update_notifications' => array (...)), 'buttons' => array (0 => array (...)), 'input' => array ('site_name' => 'well-connected', 'site_mail' => 'support@well-connected.net', 'account' => array (...), 'site_default_country' => 'NZ', 'clean_url' => '0', 'date_default_timezone' => 'Pacific/Auckland', 'update_status_module' => array (...), 'form_build_id' => 'form-dTljyrhAndmguV2_LLBvy9_FpOSiEZqJeg_Ed_qwzyg', 'form_id' => 'install_configure_form', 'op' => 'Save and continue'), 'values' => array ('site_name' => 'well-connected', 'site_mail' => 'support@well-connected.net', 'account' => array (...), 'site_default_country' => 'NZ', 'date_default_timezone' => 'Pacific/Auckland', 'clean_url' => '0', 'update_status_module' => array (...), 'submit' => 'Save and continue', 'form_build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_id' => 'install_configure_form', 'op' => 'Save and continue'), 'complete form' => array ('site_information' => array (...), 'admin_account' => array (...), 'server_settings' => array (...), 'update_notifications' => array (...), 'actions' => array (...), '#form_id' => 'install_configure_form', '#type' => 'form', '#build_id' => 'form-HCvdFtJ_MNVy-tAfAjMe6Nn0smwdnrrqQAv8_tyqc1I', 'form_build_id' => array (...), 'form_id' => array (...), '#id' => 'install-configure-form', '#method' => 'post', '#action' => '/lib/php/drupal720/install.php?profile=standard&locale=en', '#theme_wrappers' => array (...), '#tree' => FALSE, '#parents' => array (...), '#validate' => array (...), '#submit' => array (...), '#theme' => array (...), '#processed' => FALSE, '#defaults_loaded' => TRUE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#array_parents' => array (...), '#validated' => TRUE), 'process_input' => TRUE, 'triggering_element' => array ('#type' => 'submit', '#value' => 'Save and continue', '#weight' => 15, '#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#limit_validation_errors' => FALSE, '#process' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => FALSE, '#required' => FALSE, '#attributes' => array (...), '#title_display' => 'before', '#id' => 'edit-submit'), 'clicked_button' => array ('#type' => 'submit', '#value' => 'Save and continue', '#weight' => 15, '#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#limit_validation_errors' => FALSE, '#process' => array (...), '#theme_wrappers' => array (...), '#defaults_loaded' => TRUE, '#tree' => FALSE, '#parents' => array (...), '#array_parents' => array (...), '#processed' => FALSE, '#required' => FALSE, '#attributes' => array (...), '#
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 9. user_load($uid = 1, $reset = *uninitialized*) /srv/www/lib/php/drupal720/includes/install.core.inc:1818, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 10. user_load_multiple($uids = array (0 => 1), $conditions = array (), $reset = FALSE) /srv/www/lib/php/drupal720/modules/user/user.module:346, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 11. entity_load($entity_type = 'user', $ids = array (0 => 1), $conditions = array (), $reset = FALSE) /srv/www/lib/php/drupal720/modules/user/user.module:271, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 12. DrupalDefaultEntityController->load($ids = array (0 => 1), $conditions = array ()) /srv/www/lib/php/drupal720/includes/common.inc:7442, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 13. UserController->attachLoad($queried_users = array (1 => class stdClass { public $uid = '1'; public $name = 'placeholder-for-uid-1'; public $pass = ''; public $mail = 'placeholder-for-uid-1'; public $theme = ''; public $signature = ''; public $signature_format = NULL; public $created = '1308521545'; public $access = '0'; public $login = '0'; public $status = '1'; public $timezone = NULL; public $language = ''; public $picture = NULL; public $init = ''; public $data = FALSE; public $roles = array (...) }), $revision_id = FALSE) /srv/www/lib/php/drupal720/includes/entity.inc:203, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en
[Mon Jun 20 10:19:29 2011] [error] [client 127.0.0.1] PHP 14. DrupalDefaultEntityController->attachLoad($queried_entities = array (1 => class stdClass { public $uid = '1'; public $name = 'placeholder-for-uid-1'; public $pass = ''; public $mail = 'placeholder-for-uid-1'; public $theme = ''; public $signature = ''; public $signature_format = NULL; public $created = '1308521545'; public $access = '0'; public $login = '0'; public $status = '1'; public $timezone = NULL; public $language = ''; public $picture = NULL; public $init = ''; public $data = FALSE; public $roles = array (...) }), $revision_id = FALSE) /srv/www/lib/php/drupal720/modules/user/user.module:317, referer: http://localhost/lib/php/drupal720/install.php?profile=standard&locale=en

anantagati’s picture

Status: Closed (fixed) » Fixed

I had same problem with custom installation profile.

Problem solved by adding dependency for Field module in profile .info file.

dependencies[] = field

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Mikey Bunny’s picture

Version: 7.2 » 7.7
Priority: Normal » Critical
Status: Closed (fixed) » Needs work

I am getting the same type of problem when trying to install Drupal 7.7.

url: install.php?profile=standard&locale=en

Fatal error: Call to undefined function field_attach_load() in /mnt/hgfs/www/drupal-7.7/includes/entity.inc on line 320

Any ideas?

Thanks

catch’s picture

Bright Web Design’s picture

Title: Fatal error: Call to undefined function field_attach_load() in D:\www\wi2\modules\user\user.module on line 270 » Fatal error: Call to undefined function field_attach_load() in /home/htdocs/drupal7/includes/entity.inc on line 320
Status: Closed (fixed) » Active

I have the same issue too,
I got this error after running the update.php script.
When I go the homepage or any other page I get just white page with this error!

Fatal error: Call to undefined function field_attach_load() in /home/htdocs/drupal7/includes/entity.inc on line 320

@catch,
I don't know how you can make the status of this post fixed or closed, since the problem is still exists in Drupal 7.7.

This has to be fixed, and it is a critical issue!!!

Regards,
Ciril

catch’s picture

Status: Active » Closed (fixed)

@Ciril, I marked this one fixed, because there is a different core issue dealing with that error, the bug fixed here was something completely different and re-opening issues for completely different bug reports does not help them get fixed.

Please look at #1171756: Fatal error: Call to undefined function field_attach_load() - prevent installer from continuing through a failed installation

closing again.

AndrewBoag’s picture

I just got this error ... very weird.

I managed to resolve it by changing the version of MySQL that I was using, I'm not 100% sure on this but when I was connecting to MySQL 5.1.49-1ubuntu8.1 (Ubuntun 10.10) from my dev web server, I got the error. However, when I connected to 5.0.51a-24+lenny5 (debian lenny) ... I seem to not get the error.

I'm not saying it's definitely the db (and it seems very strange if it is) ... but seems to be the changing factor. Super weird.

ben.bunk’s picture

Version: 7.7 » 7.x-dev
Status: Closed (fixed) » Active
FileSize
130.47 KB
77.61 KB

I've reproduced this error with Drupal 7.10 and 7.9 on CentOS.

It appears this is related to a bug in the browser. I'm attaching two pictures to demonstrate the UI diff. When running the installer from Safari it fails with this error and when running from chrome it runs correctly.

edit -

You can see in the pictures the first being chrome and the second safari, that the installer believes it's installing a sqlite db when using safari.

coderintherye’s picture

If that is the case, we can assume the problem occurs somewhere in here (d7, includes/install.core.inc)

  $drivers = drupal_get_database_types();
  $drivers_keys = array_keys($drivers);

  $form['driver'] = array(
    '#type' => 'radios',
    '#title' => st('Database type'),
    '#required' => TRUE,
    '#default_value' => !empty($database['driver']) ? $database['driver'] : current($drivers_keys),
    '#description' => st('The type of database your @drupal data will be stored in.', array('@drupal' => drupal_install_profile_distribution_name())),
  );
  if (count($drivers) == 1) {
    $form['driver']['#disabled'] = TRUE;
    $form['driver']['#description'] .= ' ' . st('Your PHP configuration only supports a single database type, so it has been automatically selected.');
  }

  // Add driver specific configuration options.
  foreach ($drivers as $key => $driver) {
    $form['driver']['#options'][$key] = $driver->name();

    $form['settings'][$key] = $driver->getFormOptions($database);
    $form['settings'][$key]['#prefix'] = '<h2 class="js-hide">' . st('@driver_name settings', array('@driver_name' => $driver->name())) . '</h2>';
    $form['settings'][$key]['#type'] = 'container';
    $form['settings'][$key]['#tree'] = TRUE;
    $form['settings'][$key]['advanced_options']['#parents'] = array($key);
    $form['settings'][$key]['#states'] = array(
      'visible' => array(
        ':input[name=driver]' => array('value' => $key),
      )
    );
  }

  $form['actions'] = array('#type' => 'actions');
  $form['actions']['save'] = array(
    '#type' => 'submit',
    '#value' => st('Save and continue'),
    '#limit_validation_errors' => array(
      array('driver'),
      array(isset($form_state['input']['driver']) ? $form_state['input']['driver'] : current($drivers_keys)),
   ),
    '#submit' => array('install_settings_form_submit'),
  );

  $form['errors'] = array();
  $form['settings_file'] = array('#type' => 'value', '#value' => $settings_file);

  return $form;
}
ben.bunk’s picture

I fixed this by updating the bundled jquery to version 1.7.1

I also tested Drupal-7.0 and it exhibits the problem as well. Apparently a change in Safari is causing this.

Nehbur’s picture

I solved it simply by droping the current database, create a new one and start the install.php script from scratch. I think it might have to do with something not being configured correctly when initially trying to install. For instance, if you'd been stuck on the Database configuration screen (which I was) due to perhaps, permission errors and eventually made it to configure your site that might be a cause for this error.

I'm on a Windows server with PHP 5.2.6 and MySQL 5.5.15 using Drupal 7.12 install from a ZIP file. Installed it on Firefox, but the problem started with Chrome (doesn't mean it has to do with browsers though)

Hope it helps.

Edit: I've noticed something else that might be of help. When I initially tried to install, I got stuck on the database configuration page and I saw that my prefix for tables 'drupal_' was there with some tables and with some not. Meaning the script got stuck somewhere trying to create the tables. Eventually I got through the config page of the DB and that got me to the user configuration page on which I got the error. Perhaps it had to do with half of the tables not having the expected prefix.

xjm’s picture

Version: 7.x-dev » 8.x-dev
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

We need steps to reproduce this issue, starting from "Install Drupal core."

ben.bunk’s picture

1) Install drupal core.
2) cp default.settings.php settings.php
3) chmod a+w settings.php
4) mkdir files
5) chmod a+w files
6) mysql
7) create database drupal_voip7;
8) grant all on drupal_voip7 to drupal@'localhost';
9) Open Safari Version 5.1.2 (7534.52.7)
10) Open the default directory of the site http://example.com/
11) Get redirected to http://example.com/install.php
12) Don't click anything -- Use default profile (Standard) -- don't click radio button
13) Click 'Save and continue'
14) Get redirected to http://example.com/install.php?profile=standard
15) Don't click anything -- Use the default language (English built-in) -- don't click the radio button
16) Click 'Save and continue'
17) Get redirected to http://voip7.stage.mycrux.net/install.php?profile=standard&locale=en
18) Output here:
OK
Web server Apache/2.2.3 (CentOS)
OK
PHP 5.3.8
OK
PHP register globals Disabled
OK
PHP extensions Enabled
OK
Database support Enabled
OK
PHP memory limit -1 (Unlimited)
OK
File system Writable (public download method)
Warning
Unicode library Standard PHP
Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.
OK
Settings file The ./sites/default/settings.php file exists.
OK
Settings file The settings file is writable.

19) Click the link 'proceed with installation'
20) Get redirected to: http://example.com/install.php?profile=standard&locale=en&continue=1
21) Don't click anything -- Use the default database type (MySQL, MariaDB, or equivalent) -- don't click the radio button
22) Click with mouse in the box labeled 'Database Name*'
23) Enter via keyboard - drupal_voip7
24) Click with mouse in the box labeled 'Database username *'
25) Enter via keyboard - drupal
26) Click with mouse in the box labeled 'Database password'
27) Enter via keyboard command+v copy and paste function - A password with upper and lower case letters, numbers and exactly 1 @ symbol.
28) Notice but do not click - Advanced options field set is listed twice and is not a hyper link, also a field named 'Database File*' is visible with a default value.
29) Click 'Save and continue'
30) Get redirected to: http://example.com/install.php?profile=standard&locale=en&continue=1&op=...
31) Notice a blank content area and the status bar never appears.

xjm’s picture

Status: Postponed (maintainer needs more info) » Active
ben.bunk’s picture

I resolved the mbstring error in step 18 of comment #39 and it had no effect.

kwongkkt’s picture

I saw a few symptoms posted above same as myself :

1. Fatal error: Call to undefined function field_attach_load()
2. only 31 tables are created.

and one other thread may also be related
/admin/config blank page

My solution :
1. check that it is a clean installation
if you failed installing for the first time, clean your database before installing the second time
2. make sure your php version is 5.3+ but should not be php6+

foxteck’s picture

Version: 8.x-dev » 7.12

I got this same error on Mac OS X with Zend Server (PHP 5.3.9-ZS5.6.0) / MySQL 5.1.54, for apple-darwin9.8.0 (i386) / drupal-7.12. It was a fresh install, using Chrome. Note that I would change this from Normal => Critical, to new user it's gotta be very disappointing after reading about the coolness of drupal getting an error on first install. I do this regularly so I'm not surprised, but for a new user it's another story.

Here's the error on browser:

https://img.skitch.com/20120220-pqrftfhieangk77qcpdb6rwd2k.jpg

This is what access and error log say:

==> drupal-access_log <==
127.0.0.1 - - [20/Feb/2012:10:37:57 -0600] "POST /install.php HTTP/1.1" 302 -
127.0.0.1 - - [20/Feb/2012:10:37:57 -0600] "GET /install.php?profile=minimal HTTP/1.1" 200 3999
127.0.0.1 - - [20/Feb/2012:10:37:59 -0600] "POST /install.php?profile=minimal HTTP/1.1" 302 -
127.0.0.1 - - [20/Feb/2012:10:37:59 -0600] "GET /install.php?profile=minimal&locale=en HTTP/1.1" 200 60491
127.0.0.1 - - [20/Feb/2012:10:38:00 -0600] "GET /?q=system%2Ftimezone%2FCST%2F-21600%2F0&date=Mon+Feb+20+2012+10%3A38%3A00+GMT-0600+(CST) HTTP/1.1" 200 18

127.0.0.1 - - [20/Feb/2012:10:38:00 -0600] "GET /admin/config/search/clean-urls/check HTTP/1.1" 200 15
127.0.0.1 - - [20/Feb/2012:10:38:21 -0600] "POST /install.php?profile=minimal&locale=en HTTP/1.1" 200 154
127.0.0.1 - - [20/Feb/2012:10:38:21 -0600] "GET /favicon.ico HTTP/1.1" 404 191
127.0.0.1 - - [20/Feb/2012:10:40:47 -0600] "POST /install.php?profile=minimal&locale=en HTTP/1.1" 200 154
127.0.0.1 - - [20/Feb/2012:10:40:48 -0600] "GET /favicon.ico HTTP/1.1" 404 191

==> drupal-error_log <==
[Sun Feb 19 18:18:10 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function field_attach_load() in /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/includes/entity.inc on line 320, referer: http://drupal/install.php?profile=standard&locale=en
[Sun Feb 19 18:18:10 2012] [error] [client 127.0.0.1] File does not exist: /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/favicon.ico
[Sun Feb 19 18:18:59 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function field_attach_load() in /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/includes/entity.inc on line 320, referer: http://drupal/install.php?profile=standard&locale=en
[Sun Feb 19 18:18:59 2012] [error] [client 127.0.0.1] File does not exist: /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/favicon.ico
[Sun Feb 19 18:19:31 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function field_attach_load() in /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/includes/entity.inc on line 320, referer: http://drupal/install.php?profile=standard&locale=en
[Sun Feb 19 18:19:31 2012] [error] [client 127.0.0.1] File does not exist: /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/favicon.ico
[Mon Feb 20 10:38:21 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function field_attach_load() in /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/includes/entity.inc on line 320, referer: http://drupal/install.php?profile=minimal&locale=en
[Mon Feb 20 10:38:21 2012] [error] [client 127.0.0.1] File does not exist: /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/favicon.ico
[Mon Feb 20 10:40:48 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function field_attach_load() in /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/includes/entity.inc on line 320, referer: http://drupal/install.php?profile=minimal&locale=en
[Mon Feb 20 10:40:48 2012] [error] [client 127.0.0.1] File does not exist: /Users/eromero/Documents/Aptana Studio 3 Workspace/drupal/favicon.ico

xjm’s picture

Version: 7.12 » 8.x-dev
kaela’s picture

Version: 8.x-dev » 7.12

If the database name is restricted in length to 7-characters, it seems to work properly (you may only be able to use lower-case alphabetic-characters, numerals, and the under-score character...). This is a MySQL thing that used to be fixed, I thought... I didn't do enough research to prove this is the fix, but changing the database name to fit these requirements worked for me.

Hope this helps!

coderintherye’s picture

Version: 7.12 » 8.x-dev

#45: Can you reproduce that with a fresh install? I seem to be able to install with db name of greater than 7 characters, e.g, the drupal_voip7 as suggested in #39. Though it's possible you are on to something, you just need to confirm the cases.

Also, this needs to be fixed in 8.x first (assuming we can nail down the cause) and then backported to 7.x, so please leave the version number on 8.x

ben.bunk’s picture

So far I have been able to reproduce this issue consistently on my test server which is behind cloudflare. The two fixes are:

1) Update JQuery in misc/jquery.js to the latest version before running the installer.

2) Disable all of cloudflare's features before running the installer.

lucyconnuk’s picture

I also had this problem today.

Installing D7.12 on Linux, Apache 2.2.17, MySQL 5.1.61-log, PHP 5.2.16. (Wesh hosting)

I first got the error when installing using Firefox and doing Standard install. Tried it again in IE, same thing. Then I deleted all the tables in my database, and went back and did a Minimum install in IE - this time it worked fine.

lucyconnuk’s picture

The reason I tried both Firefox and IE is because of this similar problem installing D6:

http://drupal.org/node/203187#comment-5487354

royce.williams’s picture

I have researched this and related issues - often collectively referred to as "The 31 Tables Problem", because it interrupts the table creation process before all 73 or so tables are loaded. See this comment for a semi-exhaustive list of things that have helped people work through this issue. If your fix does not appear in my list, contact me and I will add it to the comment.

pixelgarden-1’s picture

Version: 8.x-dev » 7.2
Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active
Issue tags: -Needs steps to reproduce

Same problem. Fresh standard install. Database name is 6 characters. No cloudflare. Using chrome browser. Error message on Site config. page. (Had trouble and spent some time on the the database config. page.) This is my second time to install drupal, so am a newbie. Should I delete all and reinstall?

Deleted all files. Reinstalled. Used Firefox browser instead of Chrome. Same result.

marcingy’s picture

Please leave on d8

webchick’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce

The steps to reproduce in #39 are wonderful and detailed, except they don't work. :\ At least not here. I did all of those steps with the following exceptions:

- Before step 8) I added a step 7.5) which was CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'UPPERlower123@'.
- I also changed step 8) slightly to grant all on drupal_voip7.* to drupal@'localhost'; because the command as written only grants access to a table, not an entire database.
- I did not see the output at step 18) because my multibyte support is set up fine.
- Also, 28) did not happen; the field set was only there once.

I'm on Safari Version 5.1.5 (6534.55.3), PHP 5.3.6, MySQL 5.5.9, Drupal 7.12.

Moving back to postponed (needs more info) and re-tagging.

jorluiseptor’s picture

Version: 7.2 » 8.x-dev
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce

I fixed this by dropping the database and recreating it.

jtchem’s picture

worked for me to --- just drop and recreate the database -- weird, but works.

jgsantos’s picture

Me too. Just droping the database and creating againg worked.

pasi.jarnstedt’s picture

Version: 8.x-dev » 7.14
Status: Postponed (maintainer needs more info) » Needs review

Had the same issue. Installer omitted the "Install profile" phase of the installation.
There was only 32 tables in the database.

In the documentation for creating MySQL-tables there directions to grant privileges to database user: GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';

It seems this step is wrong.

So fed up by now I issued GRANT ALL ON databasename.* etc.

This solved the issue. I assume GRANT ALL is not necessary, but don't have the time to check which privileges the user needs right now.

This was my first post here, so sorry if I do something incorrect.

- Pasi

marcingy’s picture

Version: 7.14 » 8.x-dev
Status: Needs review » Postponed (maintainer needs more info)

Please provide steps on how to recreate this bug.

amitgoyal’s picture

Version: 8.x-dev » 7.12
Status: Postponed (maintainer needs more info) » Active

We got the same error when we are installing Drupal 7.12 (Pressflow) on Windows XP system. After Googling for some time and trying installation couple of times, we noticed that Borwser Cookies (Firefox 12.0) were disabled. And this was the main reason for this error in our case.

We enabled the Browser Cookies and installaion worked perfectly fine. It might be helpful to some of you!

sobi3ch’s picture

Same problem
Following standard installation procedure: http://drupal.org/documentation/install/developers

Fatal error: Call to undefined function field_attach_load() in /var/www/drupal-7.13/includes/entity.inc on line 320

Ubuntu 12.04
PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch
mysql 5.5.24
apache 2.2.22

rogical’s picture

Version: 7.12 » 7.14

Got same issue on Ubuntu 12.04, php 5.4, mysql 5.5, nginx 1.0.

But I recovered by restarting php-fpm.

Fatal error: Call to undefined function field_attach_load() in /opt/development/test/includes/entity.inc on line 320

swamptrunk’s picture

Confirmed that deleting the database and creating a new one fixed this problem.

xjm’s picture

Sounds like from #59 that having cookies disabled causes this?

Let's have someonne try to reproduce this by trying to install with cookies disabled. If it's reproducible, add an issue summary explaining that.

amitgoyal’s picture

Xjm - This time I tried installing latest Drupal 7.14 on Linux (ubuntu) in Google Chrome Version 20.0.1132.47. I disabled the cookies from settings->privacy->cookies and selected 'Block sites from setting any data'.

It worked fine till the stage of 'Set up database'. But when I click 'Save and continue' after giving database details, I get 'The requested page "/drupal714/" could not be found.' error on next page. And when I checked my database, there are 31 tables gets created. The name of last table is 'variable'.

The same problem is coming when I install Drupal 7.14 on Linux (ubuntu) in Firefox 14.0.1.

But this time, I am not getting any Fatal error like before.

Zgear’s picture

drupal a11y’s picture

I also had that problem cause I forgot to change the cookie-domain within an additional domain-folder besides the default. After deleting the DB and setting the cookie- and the base-url everything worked fine.

drupal a11y’s picture

The best item to see if the install works ok is that the site-name is filled with the domain-name if it works. If not it´s empty.

dinesh kudtarkar’s picture

Today I got similar error.
To fix this issue follow below steps
1. Find out php.ini file on you machine. On windows machine it will be under php directory.
2. Open php.ini file and find line having 'max_execution_time'
3. Increased time execution for ex. max_execution_time = 90;
4. Drop database created in earlier installation and create new database
5. Delete existing drupal directory from your htdocs
6. Start fresh drupal installation by taking new drupal installation directory.

David Stosik’s picture

Status: Closed (duplicate) » Active

Hello,

Reproducing bug with:

  • Ubuntu 12.04
  • PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli)
  • MySQL Ver 5.5.24-0ubuntu0.12.04.1

But, ONLY when trying to install minimal profile. Didn't get any problem with standard profile.
Cookies where enabled from the beginning on my Firefox.

David

hvedam’s picture

Version: 7.14 » 7.15

If you have phpmyadmin install on the linux, this would help to resolve this issue. I install phpmyadmin. I look around a lot of sites suggested to do this.

Steps
1. Login into phpmyadmin
2. Go databases
3. whatever the name of your database which was created in the install, check it and drop the database.
4. Re create the database and start the install.php(you should be able to do an install)

This should help. It help me to solve my install issues. I hope this helps everyone.

cliotropic’s picture

Priority: Normal » Critical

I just saw this bug on Dreamhost (Debian 5.09, PHP 5.3+, MySQL 5.1.56). Dropping the database and re-creating it, as described by others above, fixed the problem.

As a Drupal novice, I'd like not to have to work around bugs like this to get a basic install running. I'd describe this as critical.

marcingy’s picture

Priority: Critical » Normal
Matt V.’s picture

I just ran into this issue too. In my case, having Javascript disabled during the install process is what got me to the PHP Fatal error:

Call to undefined function field_attach_load() in /path/to/site/includes/entity.inc on line 320, referer: http://sitename.dev/install.php?profile=standard&locale=en

Dropping and recreating the database, then rerunning the install process from the beginning fixed the issue for me too. It would be nice of the install process would detect and warn users that Javascript is required.

David_Rothstein’s picture

Version: 7.15 » 8.x-dev
Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs backport to D7

It would be nice of the install process would detect and warn users that Javascript is required.

JavaScript is not required by the installer; with JavaScript turned off, I can install Drupal fine. If you're testing this as a developer and switching back and forth between JavaScript and no JavaScript it's possible you're running into #608826: Install breaks without Javascript enabled if you have has_js cookie set (if that's still an issue)...

Also, changing status - this issue still needs clear steps to reproduce, and we should assume it affects Drupal 8 too until proven otherwise. It also still sounds like a lot of this may be a duplicate of #791004: Installer does not warn the user that cookies must be enabled with the correct cookie domain (and fails when they aren't), as was mentioned above.

sarav.din33’s picture

FileSize
37.06 KB

I try to install Drupal8 with cookies disable. After installation, i will redirect to user login page. See the attachment after installation.

But drupal8 get installed. Once i try to login i got the following error.

Notice: Use of undefined constant FIELD_LOAD_CURRENT - assumed 'FIELD_LOAD_CURRENT' in Drupal\Core\Entity\DatabaseStorageController->loadByProperties() (line 241 of core/lib/Drupal/Core/Entity/DatabaseStorageController.php).

After give the Data Base details during installation, i will redirect to the user login page. I didn't give any admin users details. So i can't login through any user account.

I don't know whether D8 installs fine or not.

Thanks & Regards
Sarav.

disasm’s picture

I've confirmed the same results that sarav.din33 found. From a fresh, empty database, I ran the installer. It prompted for DB information, then when I clicked finish, it went straight to the login page sarav.din33 has in his screenshot above. I did not get the Notice sarav.din33 mentions above. I also poked around the database, it created the schema for a number of tables, but it didn't get installed far enough for a drush uli to work.

ramsundarrp’s picture

I get this error

Fatal error: Call to undefined function field_attach_load() in \includes\entity.inc on line 320

sarav.din33’s picture

@ramsundarrp,

can you please list out the steps to reproduce the above error. Which browser and durpal version(7/8) did you try it?

jamiemarchant’s picture

I have this problem too but I am usenig SQL lite. I wonder if it has a simalar issue.

highermath’s picture

I started getting this error today and it seemed to be related to Safari. I could not reproduce in other browsers.

I am on OS X Version 10.8.2, Build 12C60 using Safari Version 6.0.2 (8536.26.17)

Liam Morland’s picture

I just had this problem in Firefox with using Drupal 8 on PostgreSQL. I dropped and recreated the database and it worked. The database had been empty of relations, so I don't know what is different between an empty DB and one that is freshly created.

Mile23’s picture

I can't get it to reproduce, but I see it in D 7.18 when I try to install from an existing code base. I archived all the non-core files and the problem persists, but a fresh install doesn't show it.

This is using MAMP 2.1.1.

Poking around, it seems that install.php requires includes/entity.inc, which in turn calls field_attach_load(). However, entity.inc never requires modules/field/field.attach.inc. Since it's a module, I'm assuming it's not loaded at whichever bootstrap level the install script is using at the time.

So either a few more require_once() needed, or perhaps a dependency problem that only surfaces under very weird circumstances.

jonhattan’s picture

Version: 8.x-dev » 7.x-dev
Status: Postponed (maintainer needs more info) » Closed (duplicate)
Issue tags: -Needs backport to D7, -Needs steps to reproduce

I experienced this and found it is a duplicate of #608826: Install breaks without Javascript enabled if you have has_js cookie set

This is not an issue with Drupal 8. Steps to reproduce in D7:

0. Use a browser with javascript enabled
1. Install a site
2. Drop the database tables
3. Disable javascript
4. Install the site again

After the db credentials page, the batch runs just an iteration and only system, user and bartik are installed.

Mile23’s picture

Version: 7.x-dev » 7.18
Status: Closed (duplicate) » Needs review

Pretty sure it's not a duplicate... I don't see anything in that other issue about the field_attach_load() error or how to reproduce or fix it. Also I never turned off javascript while installing and I got the error.

endou_kenji’s picture

I'm getting it as well with Drupal 7.19...

Fatal error: Call to undefined function field_attach_load() in /home/smsprepa/public_html/includes/entity.inc on line 321

Mile23’s picture

Version: 7.18 » 7.19
JulienThomas’s picture

Hello.

I "succeeded by mistake" to produce this bug during an install that was blocked during the database setup step. The "Install profile" was then skipped: a refresh on install.php lead to "Configure site".

By deleting the whole database and restarting the install from scratch, the bug was solved. This issue, if I am right, comes from the fact that field is not activated because the "Install profile" step was skipped.

Hopes it can help you.

Best regards,
Julien Thomas.

benlotter’s picture

Same error here.
Fatal error: Call to undefined function field_attach_load() in ../drupal7/includes/entity.inc on line 320

Resolution:
I dropped all 32 tables in the database due to partial install and restarted installation. It succeeded with no problem.

Steps to Reproduce:
I copied the settings.php from sites/SiteA to sites/SiteB.
I changed the www redirect where it said SiteA to SiteB
I ran the installation at SiteB/install.php and it told me that Drupal was already installed plus the URL was now SiteA/install.php?profile=minimal (etc.)
After a few minutes of confusion and checking that DNS and symlinks were correct, I returned to the settings.php and change the baseurl from SiteA.com to SiteB.com.
Re-ran installation and got the above error.

Bottom line:
Careless user error on my part corrupted the install with the wrong base URL.

Suggestion:
Perhaps there could be a check to make sure the domains match and give a warning.

vadym.kononenko’s picture

coderintherye’s picture

Status: Needs review » Active

Setting back to active as there is no patch here to review.

Thinking about this problem, it seems like the solution here that would cover the disparate scenarios presented would be a simple check which checks that all the database tables that we expected to create during install are actually populated in the database, if not then we throw a warning and a link to re-start the installation. Thoughts?

FreeXenon’s picture

Me too.
Emptying the database and reinstalling Drupal worked.

XP SP2
Fresh install of XAMP and fresh D7 install

Strange.

g4.music’s picture

******* I noticed that whenever my MySQL database name contains any upper-case letters, after a short while it will revert to all-lower-case-letters and BAM!! the error (seems to me that it can't locate it's original database. LOL)

So I decided to go for a name for my database with all-lower-case-letters, and it works!! *********

gaddie.3’s picture

Edit/Resolution: I was able to resolve the below issue by editing settings.php line 281 to have $base_url include https://(domain). Though I haven't had a chance to test it in a multi-site setting yet, I don't believe there will be a problem. Would there be any way of indicating that this change would need to be made via the errors thrown? This took us nearly three weeks to figure out.

I'm not sure if what I'm seeing is related to this issue or not, but the symptoms are the same.

We are unable to install Drupal 7.21, receiving the following error in the error.log consistently:

PHP Fatal error: Call to undefined function field_attach_load() in /var/www/[redact]/includes/entity.inc on line 321, referer: https://[redact]/install.php?profile=standard&locale=en

and the following error in the browser consistently (see attached):

An AJAX HTTP request terminated abnormally. Debugging information follows. Path: http://[redacted]/install.php?profile=standard&locale=en&id=1&op=do StatusText: ResponseText: ReadyState: 4

Note: The Error Page (link): http://[redact]/install.php?profile=standard&locale=en&id=1&op=finished (Completely blank)

This error is thrown almost immediately (.5-1 second) after entering the database details and continuing to the next (progress bar) screen.

The issue seems to be spawning from the fact that Drupal is attempting to perform a HTTP AJAX request, as opposed to a HTTPS request. Due to our network setup (see below), all web traffic to the end user is done via HTTPS and all traffic between the NetScaler is done via HTTP.

In addition to the above errors, only the following tables are created in the database:

actions
authmap
batch
blocked_ips
cache
cache_bootstrap
cache_form
cache_menu
cache_page
cache_path
date_format_locale
date_format_type
date_formats
file_managed
file_usage
flood
menu_links
menu_router
queue
registry
registry_file
role
role_permission
semaphore
sequences
sessions
system
url_alias
users
users_roles
variable

No max execution error message is thrown, though I've attempted to increase both it and the memory_limit in php.ini with no results.

I've attempted to set the $base_url in settings.php to include https:// before the install with no results.

I've attempted to continue with the installation after the error is thrown by navigating back to install.php - When I do this, it has me select my type of install (full) and language (english). After this, it skips directly to the "Configure site" step. After entering in the details here and clicking next, it takes me to a completely blank page. If, from here, I attempt to navigate to the site it displays the Drupal 404 page.

The only workaround I've found for this is as follows:

  1. Set up a SOCKS proxy via SSH to the web server using "ssh -D 8080 gaddie.3@[redacted web server]
  2. Set my web browser to use localhost:8080 as the SOCKS proxy
    • It's important to note that you
      must remove "localhost" and "127.0.0.1" from the "No Proxy For" list in FireFox.
  3. Change my HOSTS file to have our domain resolve to 127.0.0.1

This setup bypasses the NetScaler and makes it so HTTPS isn't required. Using this method, I'm able to complete the setup successfully over HTTP. Unfortunately, there are some problems with this workaround:

  • Your web server must be listening on port 80 (you can't specify port numbers via your HOSTS file).
    • This poses a problem, as we have multiple sites running on different ports on our web server since it's behind the NetScaler
  • You must use this workaround any time you want to install a new site, making this an unusable work-around for our production environment.

Any help would be greatly appreciated. I'm at a loss on this one.

---Additional Information---

PHP 5.3.3 (cli) (built: Jun 25 2012 04:41:23)
MySQL Server version: 5.0.95-log Source distribution
Server version: Apache/2.2.15 (Unix)
Linux 2.6.32-279.el6.x86_64 #1 x86_64 x86_64 x86_64 GNU/Linux

Our server is set up behind a Citrix NetScaler load balancer that enforces SSL through Content switching so that:

*Any requests made to http://example.com are automatically redirected to https://example.com.
*Any requests made to https://example.com are forwarded through to the web server via HTTP, then the NetScaler forwards the response back to the requester via HTTPS (SSL Offloading).

In the end, the path that all HTTP traffic takes is as such:
User -(443)> NetScaler -(80)> Web Server -(80)> NetScaler -(443)> User

pascalli’s picture

I'm having the same issue with 7.20 and 7.22.
Is there any issue with MySQL 5.5.14 ?

Thx,

deanflory’s picture

I had my settings.php file cookie set as the final live domain instead of the test server location.

denmorru’s picture

That was all about cookie (maybe smth else like execution time).
Fixed by
1. Add
php_flag session.auto_start off
php_flag session.cookie_secure off
to .htaccess
2. drop-create new DB
3. set php.ini file:
max_execution_time = 300
session.auto_start = 0
session.cookie_secure = 0

by the way, installed with MSSQLSE DB

mgifford’s picture

Version: 7.19 » 8.x-dev
Issue tags: +Needs backport to D7

Just chiming in along with @sarav.din33 to indicate that this is still an issue in Drupal 8, so I'm going to bump this issue to D8 for now.

I get a nice critical error when getting to core/install.php?langcode=en&profile=standard

bdimofte’s picture

Issue tags: -Needs backport to D7

denmorru's recipe in #96 worked like a charm for me

dnlmzw’s picture

Version: 8.x-dev » 7.22
Priority: Normal » Major

Experiencing this as well on 7.22. Set the priority to be major, since this is happening on my first run of the system! It's just a bummer that the first thing you run into when you finally decide to try it out is an error you now have to first solve before you can even try it out.

Fatal error: Call to undefined function field_attach_load() in /Users/.../includes/entity.inc on line 321

This happened right after I installed it. I ran through the guide and on the final step, I got this error. URL: /install.php?profile=minimal&locale=en

The database has been successfully created, but the index page just gives me a "Page not found" wrapped in a Drupal design.

---Additional Information---

Mac OSX v. 10.8.4
XAMPP v. 1.7.3
PHP v. 5.3.1
MySQL Server v. 5.1.44

andlil’s picture

Title: Fatal error: Call to undefined function field_attach_load() in /home/htdocs/drupal7/includes/entity.inc on line 320 » Fatal error: Call to undefined function field_attach_load() in /home/htdocs/drupal7/includes/entity.inc on line 321
Assigned: Unassigned » andlil

Thanks Julien !

I have tried every thing 7.22, 7.21, 7.17 and 6.28 with different adding in files , change file attribut etc.
Installed from another PC different OS, differnt IE and even tried with chrome.

Nothing help but one can see that during installatiion steps something is wrong with time for each step. Unfinished and jumps over things.

I have also created new DBs nothing helps exept :

Keep the DB but drop the content - tables and installations gets correct with transfering files. I have never seen it Before since the last two Days. Thanks andlil

Mile23’s picture

Version: 7.22 » 8.x-dev
Issue tags: -Needs issue summary update +Needs backport to D7

@andlil, did you mean to assign yourself to this issue?

andlil’s picture

Hallo Mile23 !

I´m a new user to drupal and the drupal forum.

I just wanted to send my thanks to the user who gave me a hint what the problem was and its reason to it.

Its a formhandler och server issue, with sending and receiving information from the installation form.

The final solution is for the big guys to fix.
regards andlil

geerlingguy’s picture

Argh. I'm hitting this now, too... I can install the same codebase/profile on a local environment (MAMP), and on a CentOS virtualbox, but on the live server, the install fails with this error. I've done literally hundreds of Drupal installs on linux/mac/windows/etc. without running into this issue.

I've checked and made sure cookies are enabled, JS is enabled, PHP's settings are correct (plenty of memory, long timeout, cookies the same), and Drupal's settings are the same. But no ability to complete installation (it seems to stop at some point during the system module install and redirect to /).

I'll post back here once I've figured out what's going wrong.

geerlingguy’s picture

Issue summary: View changes

Made the issue summary an actual issue summary. Wow.

geerlingguy’s picture

Assigned: andlil » Unassigned

Just spent half an hour updating the issue summary. I think I've encapsulated all the various fixes people found. Still haven't found the issue on my end, but I'm guessing it has to do with vhosts or PHP configuration.

geerlingguy’s picture

Updating tags.

geerlingguy’s picture

Title: Fatal error: Call to undefined function field_attach_load() in /home/htdocs/drupal7/includes/entity.inc on line 321 » Fatal error: Call to undefined function field_attach_load() in includes/entity.inc on line 321 during install

Updating title.

swentel’s picture

Version: 8.x-dev » 7.x-dev

That function doesn't exist anymore in D8, so it seems like a D7 thing. Is this is a fresh vanilla install ?

geerlingguy’s picture

After a bunch more debugging and troubleshooting, I found there were two problems causing this issue on my site:

  • Apache's virtualhost configuration was set to have the wrong ServerName. I don't know how this happened, or how it still allowed the virtualhost to work for some things, but not others, but this got the install to go further (but not complete).
  • We had the Apache directive Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure in our httpd config. Since I was running the install through http and not https, it seems cookies set by the installer weren't getting stored, and therefore install failed.

Disabling the Set-Cookie header fixed the problem and made it so we could get the install to complete.

geerlingguy’s picture

Issue summary: View changes

Updated issue summary formatting.

pnDev’s picture

I had this problem on an installation and found this forum topic.

I dropped the drupal db and restarted from /drupal/install.php and its working now.

I figured out what I did differently. I believe I had clicked a 'Save and Continue' button twice. I'm running on Wampserver and things seem slow. However I'm running on an old laptop atm. My second install attempt has just completed successfully. This time waiting for each page to reload proper.

John_B’s picture

Thanks to geerlingguy. I had the problem with an unusual domain name, and it was cured by deleting the www alias in the apache conf file. No idea why.

charlesj’s picture

I also had this problem. In my case, it was the virtual host configuration on the Apache server.

The default configuration for the virtual host contained the directives:

               RequestHeader unset Cookie
               Header unset Set-Cookie

I commented these out, restarted Apache, and the installation worked properly.

gjigandi’s picture

I experienced this problem for 2-3 hours today while trying to install Drupal on my local machine: Mac OS X Mavericks, MAMP 2.2, PHP 5.5.3, Drupal 7.23

Everything was working fine until yesterday (I used to install drupal many times).
Today I updated MAMP and I experienced this frustrating error. I tried many of the solutions proposed on this page without success.
Finally I decided to use PHP 5.2 .17 instead of 5.5 and everything is working OK again.

Was it some bad configuration of PHP 5.5 or what? I don't know, I am very frustrated by this problem and by wasting a lot of time for stupid problems like this.

geerlingguy’s picture

@gjigandi - In my experience, Drupal 7 works great on PHP 5.2/5.3/5.4 (though there are some warnings logged in 5.4 with certain contrib modules)... but few people have tested D7 with 5.5 yet, so there may be some strange bugs encountered. I haven't installed 5.5 anywhere, so I can't be of much help :(

John_B’s picture

I run several sites on php5.5 as do others. It is true I have been hit by this problem on php 5.5 once, but I cannot see any reason for this issue being related to the php version. Many of the people in this thread are experienced Drupallers, who have been hit by the bug for over four years, since well before php 5.5 was in use. Nobody has been able to reliably fix it; and with the most highly skilled core devs, whose input is really needed on this tough problem, more interested in Drupal 8, it may never be fixed.

geerlingguy’s picture

@John_B - I've read through the thread in its entirety, and tried pretty much every suggestion in two or three different environments (Apache/PHP combos, Mac and Linux), and the most common thread I've found is either cookie problems (sometimes related to the browser, other times related to Apache/vhost/settings.php configuration), or javascript problems.

The best fix would probably be for Drupal to somehow detect if cookies are not working properly, or if the domain is messed up, then show a warning in the hook_requirements() phase.

geerlingguy’s picture

Issue summary: View changes

Added note about comment #108.

patrickavella’s picture

Hello, after more than a few days of fighting with this exact bug/issue, I thought I'd chime in with my experience:

The PHP5.5 that is shipping on Ubuntu 13.10 breaks Drupal 7 (I have not tried with d8). Even after installing php5-json to fix ajax errors, You will get this error when trying to install websites. None of the listed solutions at the top of the page worked for me.

Reverting to Ubuntu 13.04 (and hence, PHP5.4) was the only thing that solved my issue, as I do not know enough about the inner workings of PHP5.5 to understand what was going so wrong.

John_B’s picture

That is more likely to be Ubuntu's move to Apache 2.4, which requires slightly different syntax than 2.2 for setting up virtual hosts. But if incorrect (or even correct) Apache 2.4 configuraton caused the error that would also be interesting.

Eleine’s picture

I agree with #108. I just reproduced this by turning cookies off. The installer is dependent on cookies for passing hidden values it seems. So you should get a warning, i think, and not an execution error when cookies are turned off.

bwoods’s picture

I did the same thing as #112 suggested and reverted back to PHP 5.2.17 instead of PHP 5.5. That did the trick.

LexAngel’s picture

If I understood, the only way is to revert back to an oldest PHP version?..

John_B’s picture

I think that is oversimplifying the thread. My interpretation of the above posts is that that worked for some people and not others. Maybe re-read the thread from the top, and notice the dates of the posts, because my interpretation when I read the therad is that the problem started way before PHP 5.5 was available.

LexAngel’s picture

I also think the problem comes from there...

Liam Morland’s picture

I certainly had this problem before PHP 5.5 was available. I think I was on 5.3.

scislaghi’s picture

I'm hitting it today, installing drupal on a my personal VPS.

Fatal error: Call to undefined function field_attach_load() in /var/sites/mydomain.com/includes/entity.inc on line 316

Althought the maximum execution time is set to 90 (and previously to 30) something seems not working as expected. Installation hangs sometimes at different steps.
I'm trying with stable 7.26 version.

rjb’s picture

Same problem as #116. It turns out to be the opcode cache (OPcache). Either disable it or use this patch: https://drupal.org/comment/8158395#comment-8158395

OPcache is built-in and enabled by default with PHP 5.5.0 and later. It is also available separately for PHP 5.2 - 5.4, which could explain #123.

Liam Morland’s picture

It is likely that when I had this problem the opcode cache was on.

lprancourt’s picture

#125 the patch worked like a charm, thanks a lot!

andreid’s picture

#125 the patch worked ... thank you

On Ubuntu 12.04, php 5.5.9, nginx 1.1.19 for Drupal 7.26

genfoch01’s picture

RJB,

Thanks that was exactly my problem. Disabled and the install ran without any issues. Now if I had just seen this 18 hours ago! RJB +1 beer!
Ubuntu 14.04, php 5.5.9, Apache 2.4.7

What are the implications of Disabling vs using the patch?

GF

rjb’s picture

Thanks!

The problem is that the cache does not account for cached (PHP-) files being overwritten, like Drupal writing settings.php. After writing this file, the old (cached) version of this file is still being used, which causes many issues. As far as I know, this is the only case that Drupal rewrites a PHP file. The patch causes the cache to be cleared after writing this file.

If there are other cases where a cached file is being overwritten, then the patch is not sufficient. In that case it is better to disable the cache.

suzanne.aldrich’s picture

The 31 Tables Problem. This is another reason why Drupal can't have nice things. We need a decent installation user experience if the web is to be run by Drupal. This core bug was started on June 4, 2009 at 2:16am, and has now reached over 130 comments, with a number of duplicate issues and discussions (see https://drupal.org/node/1171756#comment-5842376). Most people, after seeing these fatal errors, will give up and move on. This is how to never win. When your bugs start getting names, has your CMS jumped the shark?

genfoch01’s picture

I don't remember Drupal 6 having this issue when I installed it. I am guessing ( because I am not a developer or coder etc ) that this is an artifact of trying to automate the install process for drupal 7? as I remember having to manually copy the settings php file for drupal 6. it may not have been an issue except for php caching the settings file. I'm unclear if that has always been php behavior or if that's new with the latest php code.

John_B’s picture

@suzanne.aldrich I recently saw an issue which has been open for over 10 years. What is the solution?

The present issue will probably never be 'fixed' because the thread contains multiple issues. However, a major one is the opcode cache issue, which has been fixed for D8 https://drupal.org/node/779482. One of us ought to head over there and work on applying the fix to Drupal 7. But these days no one seems much interested in D7, because effort is going into Drupal 8.

FrancescoB’s picture

Just had the same error and someway solved it: in my case I had entered the wrong database data ( don't rememeber if name, username or password), and I got a blank page after clicking the "save and continue" button. I then restarted again typing the setup.php URL directly, but after the initial step the installation skipped the database-related step (where it ask for database name, user name and passowrd ) and went directly to the site data step. I don't remember seing the "progress bar" either. Then after I clicked the Save and Continue button in the site data step, I got another blank page, and in the apache2 log there was the error reported in the issue.
I solved as indicated by dropping and recreating the database.

So I guess the error occurs when you restart the installation procedure after a failure that leaves an unclean situation.

Jeff Veit’s picture

Same problem... I had a working installation, dropped all the tables so I could run a test on a new install, started the install.. BAM!!

Fix was to temporarily move all the modules I already had downloaded out of sites/all/modules directory during the install, then move them back afterwards.

Jeff Veit’s picture

Issue summary: View changes
ayduns’s picture

On a clean Ubuntu 14.04 Server build, I had the same problem. Disabling opcache worked for me:

# php5dismod opcache
# service apache2 restart

... do the install ...

# php5enmod opcache
# service apache2 restart

See explanation by @rjb in #130

DocDJ-forum’s picture

Field_attach_load problem: I deleted the tables form the DB, but KEPT the DB itself. AFter clicking to complete the "select language", I gave it a LOT of time and it finally went to the site configuration screen. Previously, it just hung there, so I clicked it a 2nd time (bad idea). After completing site config, I also gave it a good bit of time to refresh the screen and my site actually appeared (no content yet, since it's new).

Thanks for posting the list of possible fixes. Maybe this one qualifies???
regards to all,
DJ

mglaman’s picture

Steps to reproduce: attempt reinstalling on a site that has a partial database install and is missing the registry table. Breaks autoloading, I'm assuming.

Talkless’s picture

I can confirm #137 - installation fails in Ubuntu 14.04.1 unless opcache is disabled.

sylvaticus’s picture

like in #45 changing the db name to less the 8 characters solved this issue (I did already dropped several times the DB).

It MUST be a client side error as:
1) I first installed drupal without problems, as normal;
2) for some unrelated problems I had to reinstall Drupal on the same location and got this issue;
3) as I could not get the fix I rolled back a 24-hour snapshot on the server;
4) even if the server was on the same state as in (1) I got the error !
5) I finally changed name of the db shortening to less than 8 characters (just changing the db user and name wasn't enought) and it finally worked

ElliotFriend’s picture

I can also add that #137 worked for me. The installation was on Linux Mint 17 (based on Ubuntu 14.04).

ElliotFriend’s picture

Issue summary: View changes
supadits’s picture

#137: Disable the php opcache module before proceeding with installation

Work for me

My Environment
- CentOS 6.5 64bit
- Directadmin Custombuild 2 with php55, php-fpm, zend opcache

Disable opcache by
# vi /usr/local/php55/lib/php.ini

add
opcache.enable=0

save file

# service httpd restart
# service php-fpm55 restart

do the installation
then remove the
opcache.enable=0 from php.ini

restart httpd and php-fpm

sylvaticus’s picture

Issue summary: View changes
FanisTsiros’s picture

None of the above 16 solutions in Issue summary worked!
But no 17 comment #137 (Disabling the php opcache module) also worked for me finaly!
This is in a dedicated server running Debian Wheezy with php 5.5.17 (nginx, php-fpm and mysql).
Also, with php opcache module enabled i had no issues installing drupal 8.0.0. beta 1. This is only a drupal 7 issue.

SpenserJ’s picture

Another confirmation that this happens in PHP 5.5 with Opcache enabled (default in my installation).

Software:

* Nginx 1.4.6
* PHP 5.5.18
* Drupal 7.32

Anonymous’s picture

#137 worked for me on an ubuntu 14.04 from digitalocean

Fabulous’s picture

For #137 there is a patch that you can apply on Drupal core and no need to disable opcode module or any others opcode cache that you can have : https://www.drupal.org/node/779482#comment-9393137 . I aksed if it's possible to include it in the core directly because it can solve lots of installation problems.

2pha’s picture

#137 disabling opcache fixed it for me.

ovidenov’s picture

#137 disabling opcache fixed it for me also !
Good job

mgifford’s picture

Ok, but how do we fix this?

  • Does the documentation just have to say that opcache needs to be disabled?
  • Do we check to see if opcache is enabled and spit out a warning?

What we have suggested in #137 is a functional workaround but it seems that the problem still exists.

Might be worth changing the issue summary.

joelpittet’s picture

Not sure if this is a solution but could be invalidate opcache on the settings.php file?
@see http://php.net/manual/en/function.opcache-invalidate.php

if (function_exists('opcache_invalidate')) {
  opcache_invalidate(DRUPAL_ROOT . '/sites/default/settings.php');
}
SpenserJ’s picture

#149 has solved the issue for me on a fresh install. @joelpittet (#153), looks like adding opcache_invalidate to the bootstrap has reached RTBC with https://www.drupal.org/node/779482#comment-9393137

sbaynham’s picture

I had this issue recently with a custom module I was writing. The issue there is that I was running some debug code that included user_load before field_attach and all its friends had been loaded, directly in the body of a module (Dirty, I know. I was in a hurry).
Could this be something to do with it?

MustangGB’s picture

Status: Active » Closed (duplicate)

Perhaps it's best to mark as a duplicate for the opcache causes, and for anything else create it as a new issue.

Duplicate of #779482: Installation failure when opcode cache is enabled

John_B’s picture

I can see the logic. However, this has been a live issue since long before php included opcache by default. We are fudging the fact that the Drupal 7 installer has been subject to periodic failures (which are not rare) for close on 5 years. Still, this thread is not going get that rather serious situation fixed, so I am leaving it as closed, as fixing it is beyond me, and those who maybe could fix it are busy on D8.

David_Rothstein’s picture

I just committed #779482: Installation failure when opcode cache is enabled to Drupal 7 which should fix the cause of a lot of these problems.

It sounds like a lot of others are already covered by these two issues:
#791004: Installer does not warn the user that cookies must be enabled with the correct cookie domain (and fails when they aren't)
#608826: Install breaks without Javascript enabled if you have has_js cookie set

(Note that two of the three issues linked to above affect/affected Drupal 8 also, by the way.)

So closing this as a duplicate probably makes sense.

If there are reproducible steps to run into this problem that don't involve any of the above three issues, I would say the best thing to do is create a new issue, dedicated to that particular problem, with the steps to reproduce explained in as much detail as possible, and link to it here. This issue is all over the place because the "call to undefined function" error is a symptom rather than an actual root problem.

About the only reason to reopen this issue, if someone wants to, would be if there's a way to make the failure in these situations more graceful... so for example if a better error message can be given to the user in this case, ideally one that helps pinpoint what actually went wrong in the installation, that would be nice.

geerlingguy’s picture

There are still a number of other potential causes for this problem, still... but I see your point :)

I just ran into a new (to me) one: if I am installing via Drush (or UI) and I already have caching enabled in settings.php (e.g. $conf['cache'] = TRUE;), then for some reason that also causes this bug. See #1331924: Setting certain configuration values in settings.php (e.g. conf=1) can make Site-install fail.

joshua.albert’s picture

I ran across this when installing open restaurant on xampp - I dropped the database, and increased the max_execution_time to 1000 and re-installed. No more problems.

annajonna’s picture

Issue summary: View changes

This error has appeared repeatedly on my test server. In my tests, the first condition is to create a clean install that fails on one of the following conditions:

  • In /etc/php.ini the variable session.auto_start = 1 is set
  • In /etc/php.ini the variable session.cookie_secure = 1 is set and you not using HTTPS

Both cases crash the install, but it can be continued by calling the install.php script again and try to continue the install.

Now If you continue the Install, it crashes with the above error message: Call to undefined function field_attach_load()

annajonna’s picture

Issue summary: View changes
nitin.k’s picture

Most of the people face this issue because the referenced module is not loaded or invoked. So I came up with simple solution and that worked for me instead looking and fixing issue for every module.

module_load_all();

This above function should be kept at the right place from where the problem is getting generated. Hope it saves time of someone.

isantolin’s picture

Same error on Drupal setup

[Sat Feb 11 21:27:00.600010 2017] [:error] [pid 1594] [client 201.6.143.56:33268] PHP Fatal error: Call to undefined function field_attach_load() in /home/ignacio/www/includes/entity.inc on line 354, referer: http://host.com/install.php?profile=standard&locale=en

- PHP 5.5.9-1ubuntu4.20, Apache version 2.4.7, MySQL 5.5.54-0ubuntu0.14.04.1
- PHP 7.0.13, MySQL 5.7.17-0ubuntu0.16.04.1, Apache 2.4.18

Anyone can fix?

cilefen’s picture

Read #158 and the issue summary. The comment you typed would be improved by including the things you investigated and ruled out that are documented on this issue.

isantolin’s picture

@cilefen i tried with all the recipes on the top of that issue without success. I only do a successful install on Ubuntu 16.10 (PHP 7.0+44, MySQL 5.7.17-0ubuntu0.16.10.1, Apache 2.4.18) With the same configuration than Ubuntu 16.04 (PHP 7.0.13, MySQL 5.7.17-0ubuntu0.16.04.1, Apache 2.4.18) without success. But i need Ubuntu 16.04 because is LTS

cilefen’s picture

Let's leave this one closed as per #158 and return to the new issue you opened, #2845175: Fatal error: Call to undefined function field_attach_load() in entity.inc on line 354 during installation

amir0220’s picture

https://www.drupal.org/node/1171756#comment-5319218

#30 on above link worked for me!!!
just set the $base_url to your drupal installation dir path

donquixote’s picture

An issue with so many possible causes indicates one thing: insufficient error checking and reporting.
#2918160: Improve error checking and reporting for incomplete / failed installations

E.g. I just had a situation where:
drush dl drupal-7.x, then attempt to install with drush si (and failed), then attempting to install via web UI, and failed with the error as described above. Each time I deleted the database and restored the original settings.php.
Then I downloaded drupal again, this time with git. And now the site installation worked without problems (via web UI).

I am sure that at some point in my first attempt I did something wrong, which caused the problem as described in this issue.

But the real problem is that Drupal fails to tell us what is really wrong.
With better error checking and reporting we would have more specific issues / bug reports instead of this vague summary of symptoms.