Support » Plugin: Find replace » backslash inserted after find and replace

  • i did a find and replace for all my posts that would
    replace

    [singlepic id=66 float=center]

    with

    <p style=”text-align: center;”>[singlepic id=66 float=center]</p>

    but find and replace has inserted a \ (backslash) before each of the new ” (double quote marks) giving me this line, which breaks the p style command

    <p style=\”text-align: center;\”>[singlepic id=66 float=center]</p>

    i do not seem to be able to do a search that would replace the \ … so what can i do to get rid of them ? is there something important i’m missing about either ” or \ characters ?

    thanks in advance for any help.

    https://wordpress.org/plugins/find-replace/

Viewing 2 replies - 1 through 2 (of 2 total)
  • these errors appear at the top of the page after trying to do a find and replace to remove the backslashes :-

    Warning: stripslashes() expects parameter 1 to be string, array given in /home/xxx/public_html/archive/wp-content/plugins/revision-control/revision-control.php on line 134

    Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/xxx/public_html/archive/wp-content/plugins/revision-control/revision-control.php:134) in /home/xxx/public_html/archive/wp-includes/plugin.php on line 496

    Warning: Illegal offset type in isset or empty in /home/xxx/public_html/archive/wp-includes/post.php on line 1160

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/archive/wp-content/plugins/revision-control/revision-control.php:134) in /home/xxx/public_html/archive/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/package.module.frame_communication.php on line 65

    Warning: Illegal offset type in isset or empty in /home/xxx/public_html/archive/wp-includes/post.php on line 1160

    well … i continued digging around, and i seem to have fixed the problem using https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    i did a search/replace to remove the \ from the line as shown above on the wp_posts and wp2_posts tables of the database. (though only wp_posts was affected).

    someone please tell me if i’ve done a terrible thing ? if not, i hope this information might be useful for others.

    would it be possible to include options for removing backslashes (or any other stray characters) in future updates of this excellent plugin ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘backslash inserted after find and replace’ is closed to new replies.