Active
Project:
UC Gift Certificate
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2011 at 04:09 UTC
Updated:
4 Nov 2011 at 18:26 UTC
When this module is installed and uc_attributes has not previously been installed, the uc_gift_certificate product attributes are not created. Presumably this happens because uc_gift_certificate does its thing earlier in the cycle before uc_attributes has installed. I quickly realised the problem, uninstalled uc_gift_certificate, reinstalled and the attributes were created. Maybe you should have the script deactivate the uc_gift_certificate module until after uc_attributes has been installed or something.
Comments
Comment #1
barinder commentedHi,
I am facing similar issue. No default attributes are created after installing this module and above solution also do not work for me.
Barinder
Comment #2
ericbroder commentedHi Barinder, I'm guessing you may have just disabled/enabled the module, but you actually need to uninstall it at /admin/build/modules/uninstall and then re-enable it to fix the problem.
In other words, this seems to work:
- Enable Product attributes module first.
- Then enable Gift Certificates second.
This also works:
- Enable Product attributes and Gift Certificates module.
- Disable Gift Certificates module.
- Uninstall Gift Certificates module.
- Re-enable Gift Certificates module.
This doesn't seem to work:
- Enable Product attributes and Gift Certificates module.
And this doesn't either:
- Enable Product attributes and Gift Certificates module.
- Disable Gift Certificates module.
- Re-enable Gift Certificates module.
Thanks,
Eric
Comment #3
barinder commentedHi Eric,
I had already followed this :
This also works:
- Enable Product attributes and Gift Certificates module.
- Disable Gift Certificates module.
- Uninstall Gift Certificates module.
- Re-enable Gift Certificates module.
But it doesn't seems to work for me.
Barinder
Comment #4
ericbroder commentedI should clarify that there are three possible ways to "uninstall", and only one of them works for me here. The one that works for me is the uninstall function at /admin/build/modules/uninstall.
Removing the module from the code base is also called uninstalling, but that's different and doesn't solve the problem. (DB uninstall and code uninstall should really have different names, to be less confusing.)
I'm also having some trouble with the drush pm-uninstall function, not sure why.
So to be more precise, this is what works for me:
- Enable Product attributes and Gift Certificates module.
- Disable Gift Certificates module.
- Uninstall Gift Certificates module with the uninstall function at /admin/build/modules/uninstall.
- Re-enable Gift Certificates module.
Comment #5
barinder commentedHi Eric,
Manually doing all the stuff worked for me. :) Thanks !!
.
Earlier I was following this steps using Drush commands and it didn't worked.
Module's install hook needs some work done to get it compatible with its dependent module as well as Drush commands.
Barinder