WordPress.org

Support

Support » How-To and Troubleshooting » General Form Submit

General Form Submit

  • Hi there, I noticed any general form submission in wordpress especially frontend themes, there is an error that appears.

    Warning: trim() expects parameter 1 to be string, array given in /Volumes/HDD2/RadiusMedia/TheLocalArtist/dev4/wp-includes/query.php on line 1479
    
    Warning: strip_tags() expects parameter 1 to be string, array given in /Volumes/HDD2/RadiusMedia/TheLocalArtist/dev4/wp-includes/formatting.php on line 1059

    This happen when I submit a standard post form, also noticed it happens in the latest wordpress theme. Is this a known issue.

    Any help would be greatly appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Use the following code and paste it in any template theme and tell if you get those errors, i am using 3.8.1

    <form method="post" action="/?action=delete">
    	<input type="checkbox" name="listings[]" value="1">
    	<button type="submit">Delete</button>
    </form>

    I’m having the same issues. Question is why is WordPress trying to scrub my $_POST ? This is just about as retarded as its built in stripslashes.

    esmi

    @esmi

    Forum Moderator

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    I am now closing this 3 month old topic as it references an older version of WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘General Form Submit’ is closed to new replies.
Skip to toolbar