Title: Visual Form Builder Error: Warning: trim() expects parameter
Last modified: August 20, 2016

---

# Visual Form Builder Error: Warning: trim() expects parameter

 *  Resolved [danilohouse](https://wordpress.org/support/users/danilohouse/)
 * (@danilohouse)
 * [14 years ago](https://wordpress.org/support/topic/visual-form-builder-error-warning-trim-expects-parameter/)
 * When I go to create a form and then to save it, this error occurs:
 * Warning: trim() expects parameter 1 to be string, array given in /web/htdocs/
   xxxxxxxxx/home/wp-includes/functions.php on line 338 Warning: unlink(/web/htdocs/
   xxxxxxxxxxxx/home/wp-content/themes/Protein/cache/): Is a directory in /web/htdocs/
   xxxxxxxxxxxx/home/wp-content/themes/Protein/functions.php on line 43 1
 * How can I fix? Thx
 * [http://wordpress.org/extend/plugins/visual-form-builder/](http://wordpress.org/extend/plugins/visual-form-builder/)

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

 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [14 years ago](https://wordpress.org/support/topic/visual-form-builder-error-warning-trim-expects-parameter/#post-2742716)
 * Looks like it’s a problem with your theme.
 *  Thread Starter [danilohouse](https://wordpress.org/support/users/danilohouse/)
 * (@danilohouse)
 * [14 years ago](https://wordpress.org/support/topic/visual-form-builder-error-warning-trim-expects-parameter/#post-2742722)
 * It is surely that, but I do not know how to fix it! 🙁
 * Help me, Please!
 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [14 years ago](https://wordpress.org/support/topic/visual-form-builder-error-warning-trim-expects-parameter/#post-2742726)
 * Try asking for help in the general help forum or on the WordPress StackExchange.
 *  Thread Starter [danilohouse](https://wordpress.org/support/users/danilohouse/)
 * (@danilohouse)
 * [14 years ago](https://wordpress.org/support/topic/visual-form-builder-error-warning-trim-expects-parameter/#post-2742729)
 * thanks for the help Matthew, i solved it using another plugin…
 *  [mallog](https://wordpress.org/support/users/mallog/)
 * (@mallog)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/visual-form-builder-error-warning-trim-expects-parameter/#post-2742844)
 * What plugin did you end up using danilohouse? I am having the same issue. it’s
   a conflict in a name that is used in both the plugin and the theme so the theme
   recognizes the name because the plugin is using it to and it triggers a function
   in the theme to delete the cache for something that really isn’t there. So it’s
   trying to delete the whole cache directory instead of just the file it’s supposed
   to.

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

The topic ‘Visual Form Builder Error: Warning: trim() expects parameter’ is closed
to new replies.

 * ![](https://ps.w.org/visual-form-builder/assets/icon-256x256.png?rev=1205840)
 * [Visual Form Builder](https://wordpress.org/plugins/visual-form-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-form-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-form-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-form-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-form-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-form-builder/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [mallog](https://wordpress.org/support/users/mallog/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/visual-form-builder-error-warning-trim-expects-parameter/#post-2742844)
 * Status: resolved