Title: Catchable fatal error at sql import
Last modified: May 12, 2017

---

# Catchable fatal error at sql import

 *  Resolved [michael.oeser](https://wordpress.org/support/users/michaeloeser-1/)
 * (@michaeloeser-1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/catchable-fatal-error-at-sql-import/)
 * Hey there,
 * I get this errormessage when I try to import an sql file that has been created
   by the plugin.
 * Catchable fatal error: Object of class Inpsyde\SearchReplace\Page\SqlImport could
   not be converted to string in …/wp-content/plugins/search-and-replace/inc/Page/
   SqlImport.php on line 131
 * Any idea why that is?
 * Cheers
    Michael

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

 *  [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [9 years ago](https://wordpress.org/support/topic/catchable-fatal-error-at-sql-import/#post-9149422)
 * Hi [@michaeloeser-1](https://wordpress.org/support/users/michaeloeser-1/), this
   looks like a typo in the code. You can fix it easily yourself by going to line
   131 of the file mentioned: `search-and-replace/inc/Page/SqlImport.php`
 * You’ll see at the beginning of the line the $ is doubled. Delete one of those
   so it looks like this:
 *     ```
       			$this->add_error(
       				__( 'Upload Error: ' . $php_upload_errors[ $php_upload_error_code ], 'search-and-replace' )
       			);
       ```
   
 * Let me know if that works. It’ll be fixed in the next release assuming it does.
 *  Thread Starter [michael.oeser](https://wordpress.org/support/users/michaeloeser-1/)
 * (@michaeloeser-1)
 * [9 years ago](https://wordpress.org/support/topic/catchable-fatal-error-at-sql-import/#post-9151424)
 * After I switched to PHP version 7 the error didn´t occur anymore

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

The topic ‘Catchable fatal error at sql import’ is closed to new replies.

 * ![](https://ps.w.org/search-and-replace/assets/icon-256x256.png?rev=1776844)
 * [Search & Replace](https://wordpress.org/plugins/search-and-replace/)
 * [Support Threads](https://wordpress.org/support/plugin/search-and-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/search-and-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-and-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-and-replace/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [michael.oeser](https://wordpress.org/support/users/michaeloeser-1/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/catchable-fatal-error-at-sql-import/#post-9151424)
 * Status: resolved