WordPress site contact form says “ARRAY” instead of actual message

[ad_1]

so i bought a template which is all good but one of the forms in it , a contact form,

says "ARRAY" when the message is sent to my email . …instead of actually displaying the user message they sent….

I dont know how to fix this …… ive read I might have to edit CSS code but im not sure how to do that either….. anyone know how to fix this easily other than installing a different form ? thanks

[ad_2]
2 Comments
  1. >so i bought a template

    You should contact the developer for support. The email generated when the contact form is submitted is not processing the data correctly for the email template.

  2. That’s what PHP displays if you try to display a string: [https://www.php.net/manual/en/language.types.string.php](https://www.php.net/manual/en/language.types.string.php)

    But the data is actually stored as an array: [https://www.php.net/manual/en/language.types.array.php](https://www.php.net/manual/en/language.types.array.php)

    Besides that, can’t help your specific situation without digging into the code of this contact form.

    It sounds like this template “included” a form plugin within it? If so, I’d consider that a bad practice as a form is plugin territory. That wouldn’t be allowed on WordPress.org: https://make.wordpress.org/themes/handbook/review/required/#6-plugins

    If this were me, even though I could likely resolve the issue with enough time to debug, I’d just switch to a reputable form plugin and leave it at that.

    And my decision wouldn’t be based solely on how much quicker it would be to do that. I’d also consider the potential security risk. Forms in general can be a major attack vector, although to be fair I don’t know what form plugin you’re referring to so I can’t say for sure, just speaking generally.

    There are lots of free form plugins that work. WS Form, Ninja Forms, WPForms…just to name a few. It may not look exactly as you’d like it to, but at least it would be functional.

    Hope that helps.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer