HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
ValidateLength error
Hi everyone!
It seems the plugin doesnt work I am getting an error message (something like 'Your ForeignID is too long') after clicking on 'Post discussion' button. It's impossible to start an ordinary discussion (not a simple page) at the same time.
Is there a way to correct this bug? I am using Vanilla 2.1.8p2 and Brand Friendly 1.2.
Thanks in advance!
0
Comments
What page URL are you trying to use?
You mean slug? http://www.sitename.ru/forum/help
Hello @Linc. Is there a hope? Maybe you need additional datums? I can try to repeat enabling.
So you're entering 'help' in the URL box?
Not exactly 'help', maybe 'legalhelp'. Should I try again with another URL?
The word 'help' makes no matter. I tryed with another very simple URL slugs -'http://www.mysite.ru/forum/simplepage1' and 'http://www.mysite.ru/forum/678' - and got the same error 'ForeignID is 10 characters too long'.
May be this plugin suits for com/org domains only?
ForeignID has a limit of 32 characters. I bet your homepage is not "www.mysite.ru" but "www.MyGreatAndAwesomeCustomHomepage.ru"
You could increase the length of the field. But you should do it with a simple plugin so that the field length will not be reset later on. Look at that: http://vanillaforums.org/discussion/comment/224282/#Comment_224282
@R_J thanks for quick response. My homepage is not so long - www.miripravo.ru
So the slugs was 'http://www.miripravo/forum/simplepage1' and 'http://www.miripravo/forum/678.
Do you think I should increase the length of the field nevertheless?
At least you can test it. Simply set it to 64 with phpMyAdmin and see if it works. If it does, create such a short plugin
The ForeignID shouldn't be the full URL, it should just be the slug.
So in the box you simply type "help" not a full web address starting with http.
32 characters is plenty for that use case.