MyBB-Plugins Forums
can't donate newpoints (error: wrong parameter) - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.6.x (http://forums.mybb-plugins.com/Forum-MyBB-1-6-x)
+---- Forum: NewPoints (http://forums.mybb-plugins.com/Forum-NewPoints)
+---- Thread: can't donate newpoints (error: wrong parameter) (/Thread-can-t-donate-newpoints-error-wrong-parameter)

Pages: 1 2


can't donate newpoints (error: wrong parameter) - lapislazuli - 02-28-2014

I keep getting this error when trying to donate newpoints:

[Image: arimavts.png]

The plugin worked fine before. I don't know since when this error first appeared.


RE: can't donate newpoints (error: wrong parameter) - Diogo Parrinha - 02-28-2014

Please do some search, it's been posted numerous times.


RE: can't donate newpoints (error: wrong parameter) - lapislazuli - 02-28-2014

(02-28-2014, 12:59 AM)Pirata Nervo Wrote: Please do some search, it's been posted numerous times.

I can't find it! All I see is hundreds of threads where you write "Please do some search, it's been posted numerous times."

1. http://forums.mybb-plugins.com/Thread-Plugin-error--4470
2. http://forums.mybb-plugins.com/Thread-Immediate-NewPoints-Error
3. http://forums.mybb-plugins.com/Thread-problem-in-newpoints

etc.


RE: can't donate newpoints (error: wrong parameter) - Diogo Parrinha - 02-28-2014

E.g. http://forums.mybb-plugins.com/Thread-New-points-error--3982?highlight=number_format


RE: can't donate newpoints (error: wrong parameter) - lapislazuli - 02-28-2014

(02-28-2014, 02:07 AM)Pirata Nervo Wrote: E.g. http://forums.mybb-plugins.com/Thread-New-points-error--3982?highlight=number_format

This didn't solve the problem. Sad


RE: can't donate newpoints (error: wrong parameter) - Jovan - 02-28-2014

Can you please post line of code that you changed?


RE: can't donate newpoints (error: wrong parameter) - lapislazuli - 02-28-2014

(02-28-2014, 05:35 AM)Jovan Wrote: Can you please post line of code that you changed?

I didn't change any specific line of code. I actually just uploaded the clean NewPoints 1.9.9 folder and re-activated the plugin.

The lines in question currently look like this:

inc/plugins/newpoints.php line 447-452
PHP Code:
function newpoints_format_points($points)
{
    global 
$mybb;
    
    return 
$mybb->settings['newpoints_main_curprefix'].number_format((float)$pointsintval($mybb->settings['newpoints_main_decimal'])).$mybb->settings['newpoints_main_cursuffix'];


Or am I supposed to edit /newpoints.php as the error states? I'm a bit confused. Undecided


RE: can't donate newpoints (error: wrong parameter) - Diogo Parrinha - 02-28-2014

Please post line 225 of /newpoints.php


RE: can't donate newpoints (error: wrong parameter) - lapislazuli - 03-01-2014

(02-28-2014, 11:57 PM)Pirata Nervo Wrote: Please post line 225 of /newpoints.php

PHP Code:
    $amount round(floatval($mybb->input['amount']), $mybb->settings['newpoints_main_decimal']); 



RE: can't donate newpoints (error: wrong parameter) - Jovan - 03-01-2014

(11-16-2012, 05:21 AM)Pirata Nervo Wrote: Add (float) before the parameter one.