Log in

View Full Version : Required Field Product Missing


Black Snow
10-31-2014, 12:32 PM
When I am trying to add a stylevar to a mod I am making, I get this error:
A required field called product is missing or has an invalid value.

I have no idea why it keeps coming up but it does. I have selected the product from the drop down menu and filled in all the boxes.

Anyone have any idea?

I've attached the product for anyone to debug.

kh99
10-31-2014, 01:16 PM
Hmm...did you change the name of the product? The maximum chars is 25 and the current name is already pretty close to that.

Black Snow
10-31-2014, 01:27 PM
Hmm...did you change the name of the product? The maximum chars is 25 and the current name is already pretty close to that.

What name is only allowed 25 chars? Maybe this is my issue on another mod too.

kh99
10-31-2014, 01:37 PM
Well, I checked where the product name is verified in the stylevar data manager (where it displays that message if it fails), and it checks for the product name being 25 chars or less, and also only contains the chars A-Z,a-z,0-9 and _.

Black Snow
10-31-2014, 01:54 PM
Thats great kh99! Solved my problem! Thanks!!

kh99
10-31-2014, 03:22 PM
Now that I look at the code again, that may actually be a bug, because the comment says "check if longer than 25 chars..." but the code says strlen($product) < 25.

Black Snow
11-01-2014, 06:56 AM
New bug to add to the next vB4 update?