Support » Plugin: Search & Replace » Catchable fatal error at sql import

  • Resolved michael.oeser

    (@michaeloeser-1)


    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)
  • Hi @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

    (@michaeloeser-1)

    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.