Title: Import function is broken in Redirection
Last modified: August 21, 2016

---

# Import function is broken in Redirection

 *  [pembo13](https://wordpress.org/support/users/pembo13/)
 * (@pembo13)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/)
 * The class `Red_FileIO` is defined as abstract in `file_io.php`, however it is
   being instantiated in `redirection.php:294:admin_screen_options()` which seems
   inherently wrong, and PHP doesn’t like this resulting in:
 * > `Fatal error: Cannot instantiate abstract class Red_FileIO`
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/page/2/?output_format=md)

 *  Thread Starter [pembo13](https://wordpress.org/support/users/pembo13/)
 * (@pembo13)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137450)
 * Changing `file_io.php` from
 * > `function import( $group, $file ) {`
 * to
 * > `public static function import( $group, $file ) {`
 * and `redirection.php` from
 * > `$importer = new Red_FileIO;
   >  $count = $importer->import( $_POST[‘group’], $_FILES[‘upload’] );`
 * to
 * > `$count = Red_FileIO::import( $_POST['group'], $_FILES['upload'] );`
 * fixes the problem.
 *  [Samantha Miller](https://wordpress.org/support/users/samantha-miller/)
 * (@samantha-miller)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137645)
 * Thank you very much for this pembo13, we were having the same issue and this 
   fixed it.
 * For other people who might find this thread, the `file_io.php` file is in `/models/`
   and `redirection.php` is in the root.
 * I wonder why the plugin has suddenly stopped working? I have been using it for
   years and never had any issues.
 *  Thread Starter [pembo13](https://wordpress.org/support/users/pembo13/)
 * (@pembo13)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137649)
 * It suddenly stopped working because the developer changed the Red_FileIO class
   to be abstract (instead of concrete), a perfectly valid move, that happened to
   have consequences.
 *  [JeremyEnglert](https://wordpress.org/support/users/jeremyenglert/)
 * (@jeremyenglert)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137652)
 * Same issue – pembo13’s fix worked perfectly.
 * Thanks!
 *  [amebae](https://wordpress.org/support/users/amebae/)
 * (@amebae)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137653)
 * Thankyou
 *  [William](https://wordpress.org/support/users/sykamore/)
 * (@sykamore)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137654)
 * I had the same issue, thank you.
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137655)
 * Yep, works great. Now, all we need is a working version of the plugin…
 *  [Nicscott01](https://wordpress.org/support/users/nicscott01/)
 * (@nicscott01)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137656)
 * This did not fix it for me :(.
    I did deactivate and reactivate the plugin…
 *  Thread Starter [pembo13](https://wordpress.org/support/users/pembo13/)
 * (@pembo13)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137657)
 * > This did not fix it for me
 * What error message are you getting now?
 *  [adamjames128](https://wordpress.org/support/users/adamjames128/)
 * (@adamjames128)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137679)
 * Had the exact same issue, thanks Pembo13 for your solution – worked perfectly.
 * Crazy that the developer hasn’t sorted this yet.
 *  [Udinra](https://wordpress.org/support/users/udinra/)
 * (@udinra)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137680)
 * This is working great.Thanks for the solution pembo13.
 * Do not blame developer adamjames128..Sometimes they get busy with other stuff.
 *  [admirenl](https://wordpress.org/support/users/admirenl/)
 * (@admirenl)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137688)
 * This fixed the import problem for me too. Hopefully this will be merged into 
   the new release. Thanks!
 *  [Mixsynth](https://wordpress.org/support/users/mixsynth/)
 * (@mixsynth)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137690)
 * [@pembo13](https://wordpress.org/support/users/pembo13/): this worked perfectly
   for me too. Thanks very much for posting a solution. I was about to tear my hair
   out.
 *  [john_6x6](https://wordpress.org/support/users/john_6x6/)
 * (@john_6x6)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137693)
 * Perfect fix! Thank you, pembo13
 *  [Surbma](https://wordpress.org/support/users/surbma/)
 * (@surbma)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/#post-5137696)
 * Thank you pembo13 for the fix, worked perfectly! 🙂
 * I hope the developer will have some time to fix it in the plugin.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/page/2/?output_format=md)

The topic ‘Import function is broken in Redirection’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [abstract](https://wordpress.org/support/topic-tag/abstract/)

 * 21 replies
 * 17 participants
 * Last reply from: [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/import-function-is-broken-in-redirection/page/2/#post-5137713)
 * Status: not resolved