WordPress.org

Make WordPress Core

Opened 17 months ago

Last modified 17 months ago

#43194 new defect (bug)

MySQL error when uploading my own theme

Reported by: JavierCasares Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.2
Component: Themes Keywords: reporter-feedback
Focuses: Cc:

Description

NOTE: I have the debug options ON

When I upload my own theme [Themes -> Add New -> Upload Theme] I get these mesages:

Installing Theme from uploaded file: example-1.2.3.zip
Unpacking the package…
Installing the theme…
Theme installed successfully.
Network Enable | Return to Themes page

Notice: wpdb::prepare was called incorrectly. Unsupported value type (array). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.) in /wp-includes/functions.php on line 4147

Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /wp-includes/wp-db.php on line 1102

Notice: wpdb::prepare was called incorrectly. Unsupported value type (array). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.) in /wp-includes/functions.php on line 4147

Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /wp-includes/wp-db.php on line 1102

Change History (1)

#1 @swissspidy
17 months ago

  • Keywords reporter-feedback added

Hey there

This sounds like a faulty plugin that uses wpdb::prepare() incorrectly. Try disabling all plugins and using a default theme like Twenty Seventeen to see if the error still happens. If not, you can activate the plugins again one by one to find the cause of the issue.

Note: See TracTickets for help on using tickets.