Jump to content

Please Disable Your Adblocker. We have only advertisement way to pay our hosting and other expenses.  

Sign in to follow this  

IPS4-Tutorial How to fix the Awards on Donation

Rate this topic

Recommended Posts

So after doing a little research after discovering this issue I discovered that in IPBS 4.1 a file as been removed which was causing this error we all been getting and after 2 hours of playing around with there code I discovered a temp fix.

So if any of you guys/girls being getting this fatal script error 



Here's how to fix it. 

First of all you will want to go to where all your of your files are located and then go to this directory 

 Applications>> Donate >> Sources >> Reward >> Reward.php 

And then search for this line of code


$form->add( new IPS\Helpers\Form\NumberRange( 'reward_amount_range', $this->rid ? array( 'start' => $this->amount_range1, 'end' => $this->amount_range2 ) : array( 'start' => 0, 'end' => 100 ), FALSE, array( 'start' => array( 'decimals' => 2 ), 'end' => array( 'decimals' => 2 ) ) ) );


and then replace that line with this code 


        $form->add( new IPSHelpersFormCustom( 'reward_amount_range', $this->rid ? array( 'start' => $this->amount_range1, 'end' => $this->amount_range2 ) : array( 'start' => 0, 'end' => 100 ), FALSE, array( 'getHtml' => function( $element )  		{  			return "<input type='text' value='{$element->value['start']}' name='reward_amount_range[start]' min='0' class='ipsField_short'> - <input type='text' value='{$element->value['end']}' name='reward_amount_range[end]' min='0' class='ipsField_short'>";  		} ), NULL, NULL, NULL, 'reward_amount_range' ) );

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Forum Statistics

    Total Topics
    Total Posts