wpsnoop Fatal error: Cannot redeclare string_limit_words()

If you are dealing with a WordPress issue where a PHP Function string_limit_words() was already declared it is most likely due to a plugin/theme conflict.

wpsnoop scanned and analyzed over 100,000 WordPress plugins and themes to find and locate potential conflicts including functions that share the same name.

This page has information on the 12 places where that function is declared and used in WordPress plugins and themes.

Note: Our database currently only taps into the free themes and plugins available in the publicly available WordPress plugins and themes, if your site uses paid plugins, themes or custom code there may be additional conflicts.


Our database has uncovered 12 different instances of potential conflicts where different plugins or themes share the function name.

Examples of this error include:

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/plugins/lazy-content-slider/lzcs.php:88)

This file is part of the WordPress plugin Lazy Content Slider and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/plugins/tt-post-viewer/required-functions.php:227)

This file is part of the WordPress plugin TT Post Viewer Plugin and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/plugins/moviesformyblog/moviesformyblog.php:826)

This file is part of the WordPress plugin MoviesForMyBlog and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/themes/wooden-default/functions.php:10)

This file is part of the WordPress theme Wooden Default and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/themes/luxury-press/functions.php:13)

This file is part of the WordPress theme Luxury Press and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/themes/sksdev/functions.php:256)

This file is part of the WordPress theme SKSDEV and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/themes/sky-blue/functions.php:10)

This file is part of the WordPress theme Sky Blue and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/themes/silhouette/functions.php:21)

This file is part of the WordPress theme Silhouette and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/themes/blue-server/functions.php:34)

This file is part of the WordPress theme Blue Server and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/plugins/iredlof-ajax-login-plugin/iredlof-ajax-login-plugin.php:14)

This file is part of the WordPress plugin iRedlof Ajax Login and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/themes/dark-water-fall/functions.php:10)

This file is part of the WordPress theme Dark Water Fall and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare string_limit_words() (previously declared in wp-content/themes/organic/functions.php:10)

This file is part of the WordPress theme Organic and could be interacting with another theme or plugin and causing a fatal error.

The error occurs because two (or more) plugins that you are using are both trying to declare a function with the same name.