Closed (won't fix)
Project:
eC Live Subproducts
Version:
5.x-2.09
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2007 at 02:46 UTC
Updated:
11 May 2008 at 04:54 UTC
Greetings,
I try to create a new subproduct attribute but I am told I need to create a variation first. I go to the subproduct attribuate page and I see "Create a new Variation" I click it and fill in the field and when I click submit it says the variation is created. However I still cannot create sub products or attributes. I looked in the database in the ec_ls_variation table and cannot see any data. Am I doing something wrong?
Regards,
Jason
Comments
Comment #1
PEpe commentedExactly the same! Some advice? THX!
Comment #2
brmassa commentedGuys,
im so deeply involved on eC4 that i really dont have the time to support EC LS anymore. if someone provides a patch, i will be glad to use it.
regards,
massa
Comment #3
cghobbs commentedI checked the database and the install files and from what I can make out line 106 sets the variable "ec_live_subproducts_variation_vid" which is used for the taxonomy vocabulary for storing variations. The code is:
variable_set("ec_live_subproducts_variation_vid", $vid["MAX(vid)"] - 2);I'm not really sure how this works what this does exactly, but it seems to have set the vocab id to 4, which was already being used by one of my vocabs. So I added the following line of code:
variable_set("ec_live_subproducts_variation_vid", 7);To change it to the taxonomy vocab that i wanted it to be. Definitely a hack, but I needed to get it working pretty quick. Someone else might be able to figure out the real issue here.
Comment #4
PixelClever commentedThis module definitely seems to be broken for me as well. I don't know what the solution is, but I would be interested in hearing if anyone happens to have a version that works and which release it was.
Comment #5
xen commentedOn activating the module I get "An illegal choice has been detected. Please contact the site administrator." Drupal 5.7
Which comes from form.inc, and as far as I know means that either an checkbox was set to an non-exitistant value, or something wasn't set at all.
Looking over the drupal_executes in the install file should find the error.. I'll see if I have the time to look it over, but it seems to be a change in the vocabulay form.
Comment #6
xen commentedDoh, it doesn't just complain, it logs it too, and what the problem is....
Problem is that the vocabulary creating code attempts to attach the vocab to a node type provided by the module, however as the module isn't loaded yet, that's an illegal choice and form.inc stops it.
Sadly, one can't just remove that in order to make it create the vocabs, as the node type is required, and one can't use another nodetype as stand-in, as the module will removed the node type option on those vocabs when installed.
Bit of an chicken and egg problem. Setting the vocabs to story and hacking the database afterwards seems to work at first glance, but a proper solution should be found.
Comment #7
brmassa commentedGuys,
the eC 4 is about to be released and have the brand new Subproducts module, which i designed myself as an advanced module. This module wont get any development anymore.
regards,
massa