vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Required Field Product Missing (https://vborg.vbsupport.ru/showthread.php?t=315157)

Black Snow 10-31-2014 12:32 PM

Required Field Product Missing
 
1 Attachment(s)
When I am trying to add a stylevar to a mod I am making, I get this error:
Quote:

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

Quote:

Originally Posted by kh99 (Post 2520752)
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?


All times are GMT. The time now is 11:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02197 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete