Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fatal error: Call to undefined function drupal_set_session() in /home/straussd/domains/d7.fkbuild.com/public_html/includes/bootstrap.inc on line 983
Call Stack:
0.0004 93624 1. {main}() /home/straussd/domains/d7.fkbuild.com/public_html/install.php:0
0.0010 195560 2. install_main() /home/straussd/domains/d7.fkbuild.com/public_html/install.php:1190
0.1753 1389632 3. install_change_settings() /home/straussd/domains/d7.fkbuild.com/public_html/install.php:145
0.1763 1395480 4. drupal_get_form() /home/straussd/domains/d7.fkbuild.com/public_html/install.php:212
0.1792 1693544 5. drupal_process_form() /home/straussd/domains/d7.fkbuild.com/public_html/includes/form.inc:119
0.1828 1763536 6. drupal_validate_form() /home/straussd/domains/d7.fkbuild.com/public_html/includes/form.inc:398
0.1828 1763536 7. _form_validate() /home/straussd/domains/d7.fkbuild.com/public_html/includes/form.inc:580
0.1845 1765288 8. form_execute_handlers() /home/straussd/domains/d7.fkbuild.com/public_html/includes/form.inc:715
0.1846 1765288 9. install_settings_form_validate() /home/straussd/domains/d7.fkbuild.com/public_html/includes/form.inc:767
0.1846 1765288 10. _install_settings_form_validate() /home/straussd/domains/d7.fkbuild.com/public_html/install.php:344
0.1851 1766448 11. DatabaseInstaller->test() /home/straussd/domains/d7.fkbuild.com/public_html/install.php:374
0.1852 1766912 12. DatabaseInstaller->runTestQuery() /home/straussd/domains/d7.fkbuild.com/public_html/includes/install.inc:290
0.1885 1807592 13. drupal_set_message() /home/straussd/domains/d7.fkbuild.com/public_html/includes/install.inc:321
Comment | File | Size | Author |
---|---|---|---|
#8 | installsessionbroken.patch | 511 bytes | chx |
Comments
Comment #1
webchickHm. I'm not seeing this here with the current HEAD. What DB/PHP/MySQL/etc? Is it possible the bzr repo is out of date?
Comment #2
webchickComment #3
David StraussI only update Bazaar every hour by default. It was 20 minutes behind, and forcing an update fixed the issue.
Comment #4
webchickOops, yeah sorry. I've been busy tonight. ;)
Glad it's working again! :)
Comment #5
nickvidal CreditAttribution: nickvidal commentedJust downloaded latest drupal-7.x-dev.tar.gz, and I still get this same error.
Comment #6
jtjones23 CreditAttribution: jtjones23 commentedSame error here with today's head version.
MAMP 1.7.1
PHP 5.2.5
MYSQL 5.0.41
Comment #7
webchickDamZ helped me to reproduce this. If you enter invalid DB credentials (ex: you enter blabblah as your username/password), you end up with the error from David Strauss in the original post.
chx says:
after include_once DRUPAL_ROOT . '/includes/module.inc'; add include_once DRUPAL_ROOT . '/includes/session.inc';
that will fix it
Can someone please roll a patch and could we get some confirmation that this fixes the problem?
Comment #8
chx CreditAttribution: chx commentedComment #9
webchickConfirmed that this gets us back to our mere "Gigantic sheet of flaming red errors" state rather than "Fatal PHP error/white screen of death" state, which is an improvement. ;)
Would love to get some confirmation from some of the others who were having this problem though, since mis-typing credentials was the only way I was able to reproduce it.
Comment #10
moshe weitzman CreditAttribution: moshe weitzman commentedLooks sane to me.
Comment #11
nickvidal CreditAttribution: nickvidal commentedThe patch worked for me, thanks! ;)
Comment #12
David StraussYes, I realized later that I hadn't yet added the user for MySQL before running the DB portion of the installer. So, it is related to incorrect database credentials. I probably updated from HEAD and fixed the credentials simultaneously.
Comment #13
nickvidal CreditAttribution: nickvidal commentedI got this error while hitting refresh for:
http://localhost/drupal/install.php?profile=default&locale=en
The credentials were correct and loading from settings.php
Everything is OK now.
Comment #14
webchickGreat. Committed! Thanks! :)
Comment #15
webchick