PHP Web Crash Warning mysqli_query

Hello,

We have a website, www.benowu.com with a user system, right now there are around 25k users, and approximately 100 can enter simultaneously. is an education website with different online courses that users can access.

It is very slow and these days it has given a continuous 500 error apparently produced by Yoast SEO
Error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘http://www.benowu.com/curso/curso-de-marketing-digital-febrero/?course_type=cont’ at
line 1 of the WordPress database for the query select * from wp_WP_SEO_Redirection where enabled=1 and cat=”link” and blog=’1′ and regex=” and (redirect_from=’http://www.benowu. com/curso/curso-de-marketing-digital-february/?course_type=content&
course_page=1” or redirect_from=’http://www.benowu.com/curso/curso-de-marketing-digital-february/?course_type=content&course_page=1’/’ ) made by require(‘wp-blog- header.php’), wp, WP->main, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_f
filters, call_user_func_array, SR_redirect_manager::redirect

I have disabled the plugin just in case.

The problem is that I repeatedly see many errors in the error log and lately this is repeated a lot:

PHP Warning: mysqli_query(): Empty query in /home2/benowuco/public_html/wp-includes/wp-db.php on line 1924

Here is all the function corresponding to line 1924

/**
* Internal function to perform the mysql_query() call.
*
* @since 3.9.0
*
* @see wpdb::query()
*
* @param string $query The query to run.
*/
private function _do_query( $query ) {
if ( defined( ‘SAVEQUERIES’ ) && SAVEQUERIES ) {
$this->timer_start();
}

if ( ! empty( $this->dbh ) && $this->use_mysqli ) {
$this->result = mysqli_query( $this->dbh, $query );
} elseif ( ! empty( $this->dbh ) ) {
$this->result = mysql_query( $query, $this->dbh );
}
$this->num_queries++;

if ( defined( ‘SAVEQUERIES’ ) && SAVEQUERIES ) {
$this->queries = array( $query, $this->timer_stop(), $this->get_caller() );
}
}

Specifically the 1924 says this:

$this->result = mysqli_query( $this->dbh, $query );

I don’t know if someone can help me, thanks.

Site URL: Content only visible to registered users

Quote

Answered : 01/16/2019 11:17 am

Loading Facebook Comments ...
Loading Disqus Comments ...