• Whenever I try to run a simple string replace I get the following error when it gets to the post_meta table:

    Unexpected token ‘

    The string I am trying to replace is:

    <script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
Viewing 1 replies (of 1 total)
  • Plugin Contributor Kevin Hoffman

    (@kevinwhoffman)

    Hi,

    We could not replicate the error by running a find and replace for the string you provided.

    Can you try editing your wp-config.php file to replace this line:

    define( 'WP_DEBUG', false );

    With these lines:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    This will cause all runtime errors, warnings, and notices to be written to /wp-content/debug.log, which will hopefully yield some better information about what’s going on.

    Can you try the process again and then open the debug.log and share any errors that may have resulted from the find and replace attempt?

    More details about that at https://wordpress.org/support/article/editing-wp-config-php/#wp_debug.

    Once we have finished troubleshooting you should revert that config change and delete the debug.log file.

Viewing 1 replies (of 1 total)
  • The topic ‘Find Replace Breaks on Post Meta Table’ is closed to new replies.