Using the latest version of the module for D7, and it simply is not working. In fact, it broke the login for my slave site.
I have two Drupal installations in separate directories which share the same top-level domain, and I have checked again and again to make sure I followed the installation instructions exactly. I am able to log into the master site, but when I navigate to the slave site from there, I am asked to log in separately.
Interestingly, when I try to log in at the slave site, I receive the following error:
Fatal error: Call to undefined function drupal_execute() in /srv/www/my-site.com/public_html/master-site/sites/all/modules/bakery/bakery.module on line 692
What could be the issue here? I know this module works as advertised for many people, but I carefully followed the installation instructions on my server and yet it is completely broken for me. Any help is very much appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Bakery-undefined-function-execute-1270204-8.patch | 3.49 KB | coltrane |
| #7 | Bakery-undefined-function-execute-1270204-7.patch | 3.24 KB | Déja |
| #4 | Bakery-undefined-function-execute-1270204.patch | 2.23 KB | coltrane |
Comments
Comment #1
rbenhase commentedI did a little digging and saw that drupal_execute() is obsolete in Drupal 7, though it's there in the D7 version of bakery.module. I tried changing it to drupal_form_submit() and the error message went away (may want to commit this?), but the module is still not working. Once again, when I log in at the master and navigate to the slave, I am prompted to log in separately (which fails). In fact, simply navigating to the slave site after logging into the master actually appears to log me out of the master site as well.
A look at the users table in the database shows that a new user account was not created on the slave during this process.
Does anyone have any ideas?
Comment #2
abx commentedHave you hit Enter when put in the slave site? (Step 5) I got similar problem to you and I was pretty sure I did everything correctly. Still, I couldn't log in into Slave site until I tried to hit Enter at the end of the slave site to get another line :
Comment #3
coltraneYou are right :) http://drupal.org/update/modules/6/7#drupal_execute_drupal_form_submit
I'm not sure D7 had been tested enough as a master, doing so now …
Comment #4
coltraneReplaced the function. Also kept in core user login validation functions because in D7 they don't log the user in.
Comment #5
gregglesLooks sane to me.
Comment #6
killtheliterate commentedPatched with #4 - Logging in to master site, and then navigating to child site responds with the below error
Comment #7
Déja commentedIt's pretty clear that there has been zero testing of Bakery 7.x-2.x running as a master server. In addition to the changes needed in patch #4, there are a couple other issues:
I'm sure there are other issues, but these are the ones that I've managed to track down thus far, and by applying them I now have a working Drupal 7 Master and Drupal 7 slaves.
Note that the attached patch includes the changes in patch #4 above
Comment #8
coltraneThanks.
Updated patch. Removed tab characters and direct calls to user login validation functions. In Drupal 6 those functions regenerate the session so they were removed with a form alter. We can use them in Drupal 7.
Comment #9
Starminder commentedThanks - will this get rolled into a dev release?
Comment #10
gregglesThe best thing to move it forward is a patch review.
Comment #11
ekristen commentedThe patch on #8 makes 7x-2.x-dev workable. Please get it into review process and get it up for approval.
Comment #12
coltraneCommited http://drupalcode.org/project/bakery.git/commit/5c9300e