yahya Member Joined May 26, 2011 Posts 106 Reacts 0 Reputation 0 Credits 0 May 27, 2011 #1 When i went to Code: http://www.marketforums.org/newpoints.php It said: The following warnings occurred: Warning [2] number_format() expects parameter 1 to be double, string given - Line: 356 - File: inc/plugins/newpoints.php PHP 5.3.6 (Linux) File Line Function PHP: errorHandler->error /inc/plugins/newpoints.php 356 number_format /newpoints.php 120 newpoints_format_points[/quote] Click to expand...
When i went to Code: http://www.marketforums.org/newpoints.php It said: The following warnings occurred: Warning [2] number_format() expects parameter 1 to be double, string given - Line: 356 - File: inc/plugins/newpoints.php PHP 5.3.6 (Linux) File Line Function PHP: errorHandler->error /inc/plugins/newpoints.php 356 number_format /newpoints.php 120 newpoints_format_points[/quote] Click to expand...
Anonymous_mybb_import1341 Member Joined Mar 19, 2011 Posts 268 Reacts 0 Reputation 0 Credits 0 May 27, 2011 #2 Already been discussed. I'd assume the fix for this is to wrap the the first paramater passed into number_format on line 356 in a floatval() function. Pseudocode: Code: number_format(floatval($the_number_that_wants_to_be_a_string)); This would force PHP to process the apparantly passed string as a double (or float). I haven't tested this, I'm just making an educated assumption.
Already been discussed. I'd assume the fix for this is to wrap the the first paramater passed into number_format on line 356 in a floatval() function. Pseudocode: Code: number_format(floatval($the_number_that_wants_to_be_a_string)); This would force PHP to process the apparantly passed string as a double (or float). I haven't tested this, I'm just making an educated assumption.
Flow'n Active Member Joined Mar 19, 2011 Posts 2,779 Reacts 0 Reputation 0 Credits 0 May 27, 2011 #3 This has already been discussed. Closed.
Anxiety User is banned. Joined Mar 19, 2011 Posts 3,338 Reacts 0 Reputation 0 Credits 0 May 27, 2011 #4 I'll try get on it today, I'm hesitant to touch it because one mistake and everyone's points are history.
I'll try get on it today, I'm hesitant to touch it because one mistake and everyone's points are history.
LMCampbell User is banned. Joined Mar 19, 2011 Posts 890 Reacts 0 Reputation 0 Credits 0 May 27, 2011 #5 Crayo said: I'll try get on it today, I'm hesitant to touch it because one mistake and everyone's points are history. Click to expand... You could always backup everyone's points. It is a function that Newoints supply
Crayo said: I'll try get on it today, I'm hesitant to touch it because one mistake and everyone's points are history. Click to expand... You could always backup everyone's points. It is a function that Newoints supply
Anxiety User is banned. Joined Mar 19, 2011 Posts 3,338 Reacts 0 Reputation 0 Credits 0 May 27, 2011 #6 A function I don't trust myself with. Newpoints is dodgy, you know that lol!