ADMIN 316 Posted June 27, 2017 Posted June 27, 2017 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: 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' ) ); 0 Quote 📚 Discover More Useful Sections on FundayForum 🏠 Portal Homepage 🔥 Latest Activity Wall 🔍 Search Topics & Posts 📜 All Shayari (Urdu / Roman Urdu / English) 🖋️ Famous Urdu Poets Collection 📚 Urdu Adab Literature Section 🍲 Cooking Recipes & Pakwan Zaiqa 👗 Female Fashion Discussions 🏡 Interior Decoration Ideas 😂 Jokes & Riddles Section 👨 Male Gossip Lounge ⚙️ IPS Community Help & Tutorials 🏛️ Historical Articles Blog 📸 Public Gallery Images 🖼️ Poetry Gallery Collection 👋 Welcome & Introductions Thread 📩 Contact Support
Recommended Posts
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.