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.
Column 'module' cannot be null ) [query_string] => INSERT INTO {role_permission} (rid, permission, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2) [args] => Array ( [:db_insert_placeholder_0] => 3 [:db_insert_placeholder_1] => create commerce_customer_profile entities of bundle shipping [:db_insert_placeholder_2] => ) )
Comment | File | Size | Author |
---|---|---|---|
#13 | i1264716.patch | 1.11 KB | attiks |
#10 | i1264716.patch | 8.82 KB | attiks |
Comments
Comment #1
attiks CreditAttribution: attiks commentedwe ran into the same issue a couple days ago, it's caused by how features handle things, the following fix works for us
you need to flush the offending feature, mostly it will be something with user roles and/or taxonomy
Comment #2
attiks CreditAttribution: attiks commented1 more remark, make sure your dependencies between features are setup correctly
Comment #3
recidive CreditAttribution: recidive commentedThanks @attiks!
Where should we put this code? To all features that adds taxonomy/roles .module file?
I wonder if this is something that needs to be fixed in features module instead. Is there an issue about that in features queue?
I'm gonna fix this tomorrow morning.
Mostly features are kit compliant, so they can't have dependencies. We are not strict about that though.
Comment #4
attiks CreditAttribution: attiks commentedYou have to put this code in features that try to set/use taxonomy and/or set permissions (especially on taxonomy or new defined roles), the problem is that if both the feature defining the taxonomy/user role and the one using it are enabled at the same time it will fail. In case of taxonomy permissions you get an error, in case of user roles it will go through, but the permissions for the new role aren't set.
PS: Most of the credit has to go to Jelle_S, he debugged/fixed it.
Comment #5
attiks CreditAttribution: attiks commentedI created a new issue for features: #1265168: Rebuild the file list properly when a feature is enabled or disabled
Comment #6
recidive CreditAttribution: recidive commentedI tried adding the following to martplug_commece feature with no luck:
martplug_base is the only feature that set user roles.
I think the problem isn't related to user roles nor taxonomy. But something else. The module name isn't available when inserting a permission, the commerce_shipping module is in the list of dependencies for the martplug_commerce. I'll try adding that to the martplug_base too to see what happens.
Comment #7
attiks CreditAttribution: attiks commentedyou have to add it to the features that sets the permission for a certain role, not to the one that sets the role it self. Same goes for taxonomy, add the code to the feature that sets the permission. But by looking at the error your problem is related to user roles since the rid=3
Easiest way to debug is to comment out the code inside xxx.features.user_permission.inc if the install works, or you get a different error, you have to right one ;p
Comment #8
recidive CreditAttribution: recidive commentedyes, that's what I'm doing, martplug_commerce set the permission and martplug_base add the role.
I'm sure commenting this permission out will work, but that's not what I want.
Still looking for a good way to workaround this. It's though, since this permission needs fields to be created first, and those fields are created by the module itself not a feature.
Hmm, rid = 3 is odd, since I create just 2 roles.
Comment #9
attiks CreditAttribution: attiks commentedi added the code to all features that include user permissions and the error is gone, but i got
Probably because the role is created in the install file as well, re testing now
Comment #10
attiks CreditAttribution: attiks commentedi commented out some other stuff, shipping was given problems as well as feeds, so it might be that it ins't as functional anymore. Anyhow attached the patch, maybe it will help the troubleshooting
Comment #11
BenK CreditAttribution: BenK commentedSubscribing
Comment #12
recidive CreditAttribution: recidive commentedI wonder what causes installer and drush/aegir install to behave different while it should behave the same.
Right now, site installs ok if using the installer, so this makes me think this is a problem with drush si.
I'm not willing to add workarounds all around the code, but rather find the root of the problem.
Comment #13
attiks CreditAttribution: attiks commentedI have it working (I think), but at least it installs without errors and everything looks ok, patch attached, based on #1187858-24: Node permissions fail to import
BUT it only works with features 7.x-1.x-beta3, i tried using the latest version but it didn't work
Comment #14
recidive CreditAttribution: recidive commentedTagging.
Comment #15
omega8cc CreditAttribution: omega8cc commentedJust to confirm that it still doesn't work with Aegir: https://gist.github.com/1415694
Comment #16
niccolox CreditAttribution: niccolox commentedI can confirm Aegir site install problem .. really wanted to get this hosted for some clients but no joy !
Comment #17
niccolox CreditAttribution: niccolox commentedcould it be as simple as exceeding maximum execution time ?
this issue says max execution works at 1580 !!
http://drupal.org/node/1368880
whereas its much lower in BOA's Aegir implementation ?
https://github.com/omega8cc/nginx-for-drupal/issues/31
Comment #18
attiks CreditAttribution: attiks commented@niccolo, i wish it was that easy, but the problem only occurs using automated install like aegir and on my dev machine definitely no time-out problem (is set to 600sec)
Comment #19
niccolox CreditAttribution: niccolox commentedI had problems with shared hosting too, using Webfaction, ramped-up execution times and it works.
so, subscribing to an Aegir fix, especially a BOA Aegir fix
Martplug is the nicest Commerce app out there so keep on keeping on..
cheers
-N
Comment #20
discipolo CreditAttribution: discipolo commenteddisabling martplug_sample_content dependency in .info and applying patch from http://drupal.org/node/1265168#comment-5413624 lets me install martplug on aegir
Comment #21
cruzeazy CreditAttribution: cruzeazy commentedI can confirm #20. Installs on Aegir with mentioned patch and removing sample content dependency.
Comment #22
omega8cc CreditAttribution: omega8cc commentedThanks for the tips in #20, it is now added in Octopus: http://drupal.org/node/1356550#comment-5776802