GroupJive File Vaildation Fails

11 years 5 months ago - 11 years 5 months ago #214443 by shardnzl
GroupJive File Vaildation Fails was created by shardnzl
Hi again

Sorry to be so pesky, but I seem to get this error in jQuery with all uploads, files or photos:

Error: TypeError: a.validator.methods[g] is undefined

It isn't a problem if I remove the jQuery validation in cbgroupjivefile.php :
if ( $plugin->params->get( 'general_validate', 1 ) ) {
	cbgjClass::getFormValidation( '#gjForm_filenew', "rules: { file_upload: { accept: '" . addslashes( implode( '|', explode( ',', $plugin->params->get( 'file_types', 'zip,rar,doc,pdf,txt,xls' ) ) ) ) . "' } }"  );
		}

Please Log in to join the conversation.

11 years 5 months ago #214452 by nant
Replied by nant on topic Re: GroupJive File Vaildation Fails
Have you made any changes to code?

What versions?

Please Log in to join the conversation.

11 years 5 months ago #214543 by shardnzl
Replied by shardnzl on topic Re: GroupJive File Vaildation Fails
There are changes to the code, but I couldn't tell you all of them, as I am just taking over this project.

I did replace the jquery with version 1.8.2, the validator is v1.10.0, the GroupJive/CB are both the latest versions.

Please Log in to join the conversation.

11 years 5 months ago #214586 by krileon
Replied by krileon on topic Re: GroupJive File Vaildation Fails
You can't replace CBs jQuery as jQuery 1.8 is not backwards compatible with usages before jQuery 1.6. You basically have broke all of CBs jQuery usages. Please revert the changes and avoid core modifications. Try to implement needed features with plugins.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

11 years 5 months ago #214651 by shardnzl
Replied by shardnzl on topic Re: GroupJive File Vaildation Fails
Yeah, put 1.5 back in and works, but now have two libraries. Perhaps you should update this.

Please Log in to join the conversation.

11 years 5 months ago #214672 by krileon
Replied by krileon on topic Re: GroupJive File Vaildation Fails
We'll be upgrading the jQuery library in CB 2.0.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.229 seconds

Facebook Twitter LinkedIn