Range Field ERROR in Edit Profile

A range field block that function correctly on the Join form produced an error for Min Value when placed in Edit Profile. The min value, which is properly set at 18, appears as "NaN" and cannot be changed. The Max value is correct and can be adjusted down, but executing the form will produce a Min Value error. The database shows the correct min and max values.

How can I get this to work, please?

Quote · 23 Sep 2011

Try clearing the min and max value for that field in the database.

Then clear your dolphin cache.

Then try again.

https://www.deanbassett.com
Quote · 23 Sep 2011

So I cleared the Min/Max values in the database and emptied the cache as suggested, and went back to the form. The min value was now 0 w/ no max value. I then returned to the profile fields builder and reentered 18 and 90...and once again the min value is "NaN" on a non-working slider. Bullocks.

Quote · 24 Sep 2011

Here is what it looks like. The MIN side of the slider is non-functional. The MAX side is fine.

I'm not sure if this problem is related to an error message I was getting before using one of Deano's suggestions to get rid of it:

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/sitex/public_html/sitex/inc/utils.inc.php on line 268

Warning: Cannot modify header information - headers already sent by (output started at /home/sitex/public_html/sitex/inc/utils.inc.php:268) in /home/sitex/public_html/sitex/inc/design.inc.php on line 133

range.JPG · 2.5K · 243 views
Quote · 24 Sep 2011

I will need to try and reproduce on my site. However the join form and profile edit do not have any fields with sliders.

So i will need to know what your trying to create. The new field name you have edded, ect. As much info as you can provide so we can duplicate what your doing.

https://www.deanbassett.com
Quote · 24 Sep 2011

Thank you. I created a custom join form and reproduced nearly the exact same form in Edit Profile. There are a total of 5 blocks as follows:

Block 1--Text --radio selector (2 items), Date, Text, Text, Text Box, Text

Block 2--Text--Text--dropdown selector (5 items), Text, Text

Block 3--Country selector--Text--Zip--Text--Text--Text--dropdown selector (5) --Text--Text--dropdown selector (6)

Block 4--dropdown (6), dropdown (2), dropdown  (3), dropdown (6), dropdown (2), dropdown (4), dropdown (4) --Text box

Block 5--multiple selector (2), multiple selector (6), RANGE (18-90), multiple selector (4), dropdown (2), dropdown (3), multiple selector (8), multiple selector (5), dropdown (2), multiple selector (4).

All fields work correctly except RANGE, which works fine on the join form. Please let me know if any additional info would be helpful.

Quote · 24 Sep 2011

Nevermind. I did some testing. Not getting the exact same problem as you, but i am getting the htmlspecialchars() warning and min range error, but no NaN problem.

In any case it does not work. The Range field type appears to be buggy. It will have to be reported as a bug in dolphin.

I'll see if i can get a moderator to move this topic to the bug reports forum.




https://www.deanbassett.com
Quote · 24 Sep 2011

Thanks a lot, I appreciate it. That really sucks, though. The age range field is critical to what I'm trying to set up.

Quote · 24 Sep 2011

Incidentally, the range field works perfectly well on the join form. It's only on the edit page that we have the problem.

Quote · 24 Sep 2011

Please try to switch to the default UNI template. It maybe that it is a problem of custom template. 

Also did you tried to update jQuery to jQuery UI in dolphin ? or maybe some 3rd-party modification did this ?

Incidentally, the range field works perfectly well on the join form. It's only on the edit page that we have the problem.

 

Rules → http://www.boonex.com/terms
Quote · 24 Sep 2011

Only basic CSS modifications were made to the template and no third party mods are being used. Please note that Deano encountered the same issue in his test. No updates were made to JQuery that I'm aware of.

Quote · 24 Sep 2011

I was just informed that no one can register to my site because there is a field error MIN in the join form as well, even though the min figure appears and the slider works. It would appear that the RANGE field has a problem no matter where it's placed.

Quote · 24 Sep 2011

I also notice that the date of birth (date) block becomes a properly working range block on the search page, even though it remains classified as a date block. What I need is a duplicate of that block to place in the join form and edit profiles form. If I create the block as a new item, we get the problems described above.

Hopefully there will be some progress on this soon.

Quote · 25 Sep 2011

Any progress on this?

Quote · 27 Sep 2011

Can not reproduce the problem, please can you provide url to your site and clear instructions on how to produce it.

Any progress on this?

 

Rules → http://www.boonex.com/terms
Quote · 29 Sep 2011

Hi Alex,

To reproduce the error create a new item block in the profile fields builder and define it as a range with a set min and max. Place the block in join or edit profile and execute the form. This produces a min range error and the form will not go through. On the edit page you will also get a htmlspecialchars() warning at the top of the page.I had to remove the new range field from my page totally to get the forms to work. Deano was able to produce the exact same error (see his post above).

Note also that nowhere does a range field actually work. In the search form, the age range slider is actually defined--for some reason--as a "Date" field, not range, white date of birth is, in fact, a date field. The creation of a new date block also produces the correct date field.

In short, range does not appear to work at all.

Quote · 29 Sep 2011

Try to set default value for range field between your min-max values in format xx-xx, for example: 5-10. Then It should be displayed and submitted correctly.

We will check other problems and will let you know.

Rules → http://www.boonex.com/terms
Quote · 29 Sep 2011

Thanks, Alex. I set the min value to 18 and the max value to 90; and as instructed entered 20-30 (between min and max) as the default value. Same MIN value error. Did I misunderstand you?

Quote · 29 Sep 2011

 You understand me right. Ok, we will check it more carefully with different values and ranges and will let you know.

Thanks, Alex. I set the min value to 18 and the max value to 90; and as instructed entered 20-30 (between min and max) as the default value. Same MIN value error. Did I misunderstand you?

 

Rules → http://www.boonex.com/terms
Quote · 30 Sep 2011

Had the same problem and AntonLV (Alexander) provided the solution:

 

FIX RANGE FIELD

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home1/public_html/mysite/inc/utils.inc.php on line 247”

Solution:

The line #247 of utils.inc.php should be
    return htmlspecialchars($string, ENT_COMPAT, 'UTF-8');
 

It is an old Dolphin bug. To fix it :
insert before the
    return htmlspecialchars($string, ENT_COMPAT, 'UTF-8');
the line
    if (!is_string($string)) return $string;

Quote · 10 Oct 2011

The correct fix is here: http://www.boonex.com/trac/dolphin/changeset/15587

Ticket: http://www.boonex.com/trac/dolphin/ticket/2672

Rules → http://www.boonex.com/terms
Quote · 11 Oct 2011

Thanks, Alex. I'll modify the appropriate file according to your instructions. Hope it works. :)

Quote · 26 Oct 2011

I suggest you to apply the official patch for 7.0.8, the patch includes the fix for range field.  

Thanks, Alex. I'll modify the appropriate file according to your instructions. Hope it works. :)

 

Rules → http://www.boonex.com/terms
Quote · 26 Oct 2011

 

I suggest you to apply the official patch for 7.0.8, the patch includes the fix for range field.  

 

=========

 

Hi Alex,

 

I have an "age range" slider on the join page (18-100), so the person signing up can tell what age range they are "INTERESTED IN".

 

I DO NOT (I repeat DO NOT) have it set to Mandatory, so they can skip the question for now!

 

If they skip it and do nothing, it will give you an "exclamation" mark (error) when clicking the "Join Now" button.

 

I've applied the fix for 7.0.8 but I still get an error!

 

Any ideas on fixing this?

 

P.S. I've tried moving the slider to "19" and then back to "18" and it will then submit..... it's like the page does not recognize the number "18" when the join page first opens.

 

I hope that this can be fixed, because I don't what my NEW members to be confused by this, since it does not have the "RED" asterisk next to it implying MANDATORY.

 

Thanks in Advance, Blaine
Quote · 20 Nov 2011

 I can not reproduce the problem. I've created the same range field and it is submitted without any problem. 

I suggest you to check the default value for your range field, for your situation please enter "18-100" into default value field and try again. If there is nothing there, or incorrect range - theoretically it may case such problems.

 

I have an "age range" slider on the join page (18-100), so the person signing up can tell what age range they are "INTERESTED IN".

 

I DO NOT (I repeat DO NOT) have it set to Mandatory, so they can skip the question for now!

 

If they skip it and do nothing, it will give you an "exclamation" mark (error) when clicking the "Join Now" button.

 

I've applied the fix for 7.0.8 but I still get an error!

 

Any ideas on fixing this?

 

P.S. I've tried moving the slider to "19" and then back to "18" and it will then submit..... it's like the page does not recognize the number "18" when the join page first opens.

 

I hope that this can be fixed, because I don't what my NEW members to be confused by this, since it does not have the "RED" asterisk next to it implying MANDATORY.

 

 

Rules → http://www.boonex.com/terms
Quote · 21 Nov 2011

Hi Alex,

Anyway to make the width of the number box in the range field longer?

It is being cut off after three digits. (See attached)

Have posted here: http://www.boonex.com/forums/?action=goto&my_flags=1#topic/Width-of-range-boxes-cut-off-after-three-digits.htm

but didn't receive any replies so thought i give it a shot here.

Any advise would be appreciated. Thanks!

range field box width.jpg · 6.2K · 239 views
Quote · 23 Nov 2011

 

Hi Alex,

Anyway to make the width of the number box in the range field longer?

It is being cut off after three digits. (See attached)

Have posted here: http://www.boonex.com/forums/?action=goto&my_flags=1#topic/Width-of-range-boxes-cut-off-after-three-digits.htm

but didn't receive any replies so thought i give it a shot here.

Any advise would be appreciated. Thanks!

 I answered this in your other topic. This question should not have been asked here. It is out of topic.

https://www.deanbassett.com
Quote · 23 Nov 2011

 Thanks Deano!!

 

 

Hi Alex,

Anyway to make the width of the number box in the range field longer?

It is being cut off after three digits. (See attached)

Have posted here: http://www.boonex.com/forums/?action=goto&my_flags=1#topic/Width-of-range-boxes-cut-off-after-three-digits.htm

but didn't receive any replies so thought i give it a shot here.

Any advise would be appreciated. Thanks!

 I answered this in your other topic. This question should not have been asked here. It is out of topic.

 

Quote · 23 Nov 2011

AlexT,

Here is how I have the AGE set-up.

====================

Admin/Advanced Settings....

Profiles:

  • Lowest age possible for site members: 18
  • Highest age possible for site members: 100

====================

Page Block....

General:

  • System Name: IdealAgeRange
  • Caption: Age Range
  • Description: Please slide the two boxes to select the age range of your Perfect Match.
  • Type: Range

Advanced:

  • Mandatory: unchecked
  • Minimum value: 18
  • Maximum value: 100
  • Check: blank
  • Default value: blank

It all checks out, but I'm still getting the "exclamation mark" when submitting a new member and it states: Please add a minumum age.

If you would like to try to create an account to see what happens go to: http://isexclub.net/join.php (WARNING THIS IS AN ADULT SITE!)

Thanks in Advance, Blaine
Quote · 23 Nov 2011

 


  • Default value: blank

 

 I believe he said this Default should be set to 18-100


https://www.deanbassett.com
Quote · 23 Nov 2011

 

 


  • Default value: blank

 

 I believe he said this Default should be set to 18-100


 THAT WAS IT!!!!!!!!!!!!!!!!!!! CoolCoolCoolCoolCool

Thanks in Advance, Blaine
Quote · 23 Nov 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.