• charanjeet1

    (@charanjeet1)


    Sir,

    I have created the form and insert data into database, after submit the form then trim function error running. Please guide us how to solve this problem. Error as a below :

    Warning: trim() expects parameter 1 to be string, array given in C:\xampp\htdocs\wp\wp-includes\class-wp-query.php on line 736

    I have using wordpress latest version 4.9.4

    Charanjeet Singh

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Show your code: pastebin.com or gist.github.com and put a link here.

    But basically, is the first parameter of your call to trim() a string? The system is telling you it’s not.

    Same error, but upgrading to WordPress 4.9.6 seams to fix it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘insert data by form then error of trim function issue’ is closed to new replies.