👀 You are watching:
Jump to content
👉 Click here to explore Remote Jobs, Work From Home & Global News – USA 🇺🇸 | UK 🇬🇧 | Canada 🇨🇦 | Pakistan 🇵🇰 ×
🚫 Guest Access Notice ×

Recommended Posts

Posted

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 
Example:

 


D0DSduX.png


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' ) );

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Forum Statistics

    2.6k
    Total Topics
    9.8k
    Total Posts


×
×
  • Create New...