Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [CLOSED] Tons of numeric validation errors

Tons of numeric validation errors 30 Dec 2016 19:00 #14886

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 290
  • Thank you received: 41
  • Karma: 21
Hello Admin

For some time now I have been getting lots of numeric validation errors. Once the field has a custom validation it generates an error on losing focus or page save.

Can you look into this when you have the time?

Thanks
vlemos

The administrator has disabled public write access.

Tons of numeric validation errors 31 Dec 2016 11:40 #14887

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 437
  • Thank you received: 53
  • Karma: 20
Ditto, i have got the the point of just stripping out all validation for now

Its something I can live with, but from a debugging point of view, this happens if you pull a simple ORDERING field (from wizard) into a component and build
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

Tons of numeric validation errors 01 Jan 2017 19:04 #14888

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3701
  • Thank you received: 972
  • Karma: 140
Should be better now.

Fixed.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

Tons of numeric validation errors 01 Jan 2017 20:01 #14890

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 290
  • Thank you received: 41
  • Karma: 21
Run in sandbox -> sandbox error:
Fatal error: Call to undefined method SimpleXMLElement::getAttribute() in /var/www/cook/sandbox/last/administrator/components/com_demo13628/models/rules/numeric.php on line 68

BTW, I am using Legacy 3.0.10
Last Edit: 01 Jan 2017 20:07 by vlemos.
The administrator has disabled public write access.

Tons of numeric validation errors 01 Jan 2017 20:19 #14891

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3701
  • Thank you received: 972
  • Karma: 140
And now ?
Coding is now a piece of cake
The administrator has disabled public write access.

Tons of numeric validation errors 01 Jan 2017 20:22 #14892

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 290
  • Thank you received: 41
  • Karma: 21
Checking

Yeah, that looks better

BTW, what is the best validation for latitude and longitude?
I am currently using:


but this is just a guess

Thanks
v
Last Edit: 01 Jan 2017 20:33 by vlemos.
The administrator has disabled public write access.

Tons of numeric validation errors 02 Jan 2017 07:30 #14894

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3701
  • Thank you received: 972
  • Karma: 140
Decimal 10,7 is the correct one.

Never use floats because floats can be appromimated.
And also because the decimal is not floating in this case.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

Tons of numeric validation errors 04 Jan 2017 05:21 #14903

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 290
  • Thank you received: 41
  • Karma: 21
Hello Admin

Can you share, what is the significance of the ruleInstance "_6452"? Not sure why but I am getting a number of validation errors in my localhost and I need to fix it without rebuilding the project.

Can you give me some pointers and tell why this number is there?

Thanks
vlemos
	<field name="count"
			alias="count"
			label="TEST_FIELD_COUNT"
			filter="INT"
			type="cktext"
			validate="numeric"
			ruleInstance="numeric_6452"
			class="validate[custom[numeric_6452]]"/>
The administrator has disabled public write access.

Tons of numeric validation errors 04 Jan 2017 10:05 #14904

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3701
  • Thank you received: 972
  • Karma: 140
You can put the string you want there. It is a random string.

It is necessary because if you have 2 different numeric rules, they must be stored in different aliases for JS.
It is the way how the JS validator is done.


The validation errors comes from the change since the Form helper.
It is bit complicated to fix manually.

The involved files to update :

helpers/form.php
helpers/html/validator.php
classes/form/rule.php
models/rules/... (all folder)
layouts/form/field.php
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

Tons of numeric validation errors 04 Jan 2017 20:24 #14905

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 290
  • Thank you received: 41
  • Karma: 21
Hello Admin

Thanks, I was able to check all the files you listed and found that they were all identical to the generated scripts. I then checked the server and found the same error in the sandbox.
jqv:custom rule not found - numeric_3126
Can you please take a look at this once again? I am using v3.0.10 and the project is Bookings 1.2.9, problem field is: Site -> Now Booking -> kids which is an INT.

Thanks again
vlemos
The administrator has disabled public write access.

Tons of numeric validation errors 05 Jan 2017 09:53 #14906

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3701
  • Thank you received: 972
  • Karma: 140
It works in sandbox. Just tested with your component.
The issue is fixed for version 3.0.10 as well. so why don't you download all project again ?
Coding is now a piece of cake
The administrator has disabled public write access.

Email validation errors 15 Jan 2017 16:51 #14939

  • jeisonsan
  • jeisonsan's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Same problem in the email field, and even downloading again. :(
The administrator has disabled public write access.

Email validation errors 16 Jan 2017 15:19 #14941

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3701
  • Thank you received: 972
  • Karma: 140
wich PTL ?
Coding is now a piece of cake
The administrator has disabled public write access.

Tons of numeric validation errors 16 Jan 2017 19:46 #14943

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 290
  • Thank you received: 41
  • Karma: 21
Still getting
jqv:custom rule not found - numeric_3171
in my components :(
The administrator has disabled public write access.

Tons of numeric validation errors 16 Jan 2017 20:07 #14944

  • jeisonsan
  • jeisonsan's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
In my component give error type number and also email type
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.093 seconds

Get Started