Title: How to Fix PHP7 Error
Last modified: December 13, 2018

---

# How to Fix PHP7 Error

 *  [carnold437](https://wordpress.org/support/users/carnold437/)
 * (@carnold437)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-to-fix-php7-error/)
 * IMHO, this is still the best archive plugin out there, so I obstinately want 
   to keep using it even though it is abandoned. If you too like it, feel free to
   follow the below steps to remove this PHP7 error:
 * SAR_Settings::validate($args) should be compatible with scbAdminPage::validate(
   $new_data, $old_data) in /home/airfor43/public_html/wp-content/plugins/smart-
   archives-reloaded_/admin/admin.php on line 113
 * Step 1: ftp into your file structure
    Step 2: Navigate to “/public_html/wp-content/
   plugins/smart-archives-reloaded_/admin” Step 3: Edit “admin.php” Step 4: Modify
   the line of code as detailed below… – OLD: function validate( $args ) { – NEW:
   function validate( $args, $garbage ) { Step 5: Save and the error should go away
   on refresh
 * Enjoy 🙂
 * Hopefully someone will fork this plugin soon…

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [journeyguy](https://wordpress.org/support/users/journeyguy/)
 * (@journeyguy)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/how-to-fix-php7-error/#post-11203786)
 * You. Are. Incredible.
 * Thank you!
 *  [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * (@brianhogg)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/how-to-fix-php7-error/#post-11464278)
 * I also did a quick fix commit here in case it helps to visualize 🙂
 * [https://github.com/brianhogg/smart-archives-reloaded/commit/25abe831553664daf8a2b0275a41e57823fd2558](https://github.com/brianhogg/smart-archives-reloaded/commit/25abe831553664daf8a2b0275a41e57823fd2558)
 * There were a few warnings on front/back end that this resolved.
 *  [Sebi83](https://wordpress.org/support/users/sebi83/)
 * (@sebi83)
 * [7 years ago](https://wordpress.org/support/topic/how-to-fix-php7-error/#post-11589073)
 * Thank you so much! Good job!
 *  [Mysmasken](https://wordpress.org/support/users/mysmasken/)
 * (@mysmasken)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/how-to-fix-php7-error/#post-11913626)
 * Thank you so much! This is indeed my favorite archive plugin. It’s so simple,
   yet I haven’t found anything like it!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to Fix PHP7 Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/smart-archives-reloaded.svg)
 * [Smart Archives Reloaded](https://wordpress.org/plugins/smart-archives-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-archives-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-archives-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-archives-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-archives-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-archives-reloaded/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [Mysmasken](https://wordpress.org/support/users/mysmasken/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/how-to-fix-php7-error/#post-11913626)
 * Status: not a support question