Erro no banco de dados do WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND umt.meta_value NOT LIKE '%Contributor%' AND umt.meta_value NOT LIKE '%Subscr' at line 11]
SELECT u.ID, umt1.meta_value as last_update
FROM wp_users as u
LEFT JOIN wp_usermeta AS um ON ( u.ID = um.user_id AND um.meta_key = 'rank_math_robots' )
LEFT JOIN wp_usermeta AS umt ON ( u.ID = umt.user_id AND umt.meta_key = 'wp_capabilities' )
LEFT JOIN wp_usermeta AS umt1 ON ( u.ID = umt1.user_id AND umt1.meta_key = 'last_update' )
WHERE ( (
( um.meta_key = 'rank_math_robots' AND um.meta_value NOT LIKE '%noindex%' )
OR um.user_id IS NULL
)
AND ( umt1.meta_key = 'last_update' OR umt1.user_id IS NULL )
AND ( umt.meta_key ='wp_capabilities' AND ( AND umt.meta_value NOT LIKE '%Contributor%' AND umt.meta_value NOT LIKE '%Subscriber%' ) ) )
AND u.ID IN (
SELECT post_author
FROM wp_posts as p
WHERE p.post_status = 'publish' AND p.post_password = ''
)
ORDER BY umt1.meta_value DESC
ErrorException {#4063 #severity: E_WARNING }
* @param array $headers HTTP headers.
* @param bool $is_xsl Whether these headers are for XSL.
*/
$headers = $this->do_filter( 'sitemap/http_headers', $headers, $is_xsl );
header( $this->get_protocol() . ' 200 OK', true, 200 );
foreach ( $headers as $header => $value ) {
header( $header . ': ' . $value );
}
}
* @throws \ErrorException
*/
public function handleError($level, $message, $file = '', $line = 0, $context = [])
{
try {
parent::handleError($level, $message, $file, $line, $context);
} catch (Throwable $e) {
if (! apply_filters('acorn/throw_error_exception', true, $e)) {
return false;
}
* @param array $headers HTTP headers.
* @param bool $is_xsl Whether these headers are for XSL.
*/
$headers = $this->do_filter( 'sitemap/http_headers', $headers, $is_xsl );
header( $this->get_protocol() . ' 200 OK', true, 200 );
foreach ( $headers as $header => $value ) {
header( $header . ': ' . $value );
}
}
$wp_query->set_404();
status_header( 404 );
return;
}
$this->send_headers();
echo $this->sitemap; // phpcs:ignore
$this->output_credits();
remove_all_actions( 'wp_footer' );
die;
}
$this->filter( 'user_has_cap', 'filter_user_has_cap' );
$this->type = $type;
$this->cache = new Cache();
$this->set_n( get_query_var( 'sitemap_n' ) );
$this->output();
}
/**
* Generate sitemap now.
*/
$type = get_query_var( 'sitemap' );
if ( empty( $type ) ) {
return;
}
new Sitemap_XML( $type );
}
/**
* Check the current request URI, if we can determine it's probably an XML sitemap, kill loading the widgets.
*/
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
$wp_filter[ $hook_name ]->do_action( $args );
array_pop( $wp_current_filter );
}
/**
*
* @since 1.5.0
*
* @param WP_Query $query The WP_Query instance (passed by reference).
*/
do_action_ref_array( 'parse_query', array( &$this ) );
}
/**
* Parses various taxonomy related query vars.
*
* @return WP_Post[]|int[] Array of post objects or post IDs.
*/
public function get_posts() {
global $wpdb;
$this->parse_query();
/**
* Fires after the query variable object is created, but before the actual query is run.
*
* Note: If using conditional tags, use the method versions within the passed instance
*/
public function query( $query ) {
$this->init();
$this->query = wp_parse_args( $query );
$this->query_vars = $this->query;
return $this->get_posts();
}
/**
* Retrieves the currently queried object.
*
* @global WP_Query $wp_the_query WordPress Query object.
*/
public function query_posts() {
global $wp_the_query;
$this->build_query_string();
$wp_the_query->query( $this->query_vars );
}
/**
* Set the Headers for 404, if nothing is found for requested URL.
*
$this->init();
$parsed = $this->parse_request( $query_args );
if ( $parsed ) {
$this->query_posts();
$this->handle_404();
$this->register_globals();
}
$this->send_headers();
* @param string|array $query_vars Default WP_Query arguments.
*/
function wp( $query_vars = '' ) {
global $wp, $wp_query, $wp_the_query;
$wp->main( $query_vars );
if ( ! isset( $wp_the_query ) ) {
$wp_the_query = $wp_query;
}
}
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
ErrorException
|
---|
ErrorException: Cannot modify header information - headers already sent by (output started at /app/wp-includes/class-wpdb.php:1849) at /app/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php:66 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /app/wp-includes/class-wpdb.php:1849)', '/app/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php', 66, array()) (/app/wp-content/themes/sage/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49) at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /app/wp-includes/class-wpdb.php:1849)', '/app/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php', 66) at header('HTTP/1.1 200 OK', true, 200) (/app/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php:66) at RankMath\Sitemap\XML->send_headers() (/app/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php:102) at RankMath\Sitemap\Sitemap_XML->output() (/app/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php:82) at RankMath\Sitemap\Sitemap_XML->__construct('1') (/app/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php:79) at RankMath\Sitemap\Router->request_sitemap(object(WP_Query)) (/app/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters('', array(object(WP_Query))) (/app/wp-includes/class-wp-hook.php:348) at WP_Hook->do_action(array(object(WP_Query))) (/app/wp-includes/plugin.php:565) at do_action_ref_array('parse_query', array(object(WP_Query))) (/app/wp-includes/class-wp-query.php:1140) at WP_Query->parse_query() (/app/wp-includes/class-wp-query.php:1868) at WP_Query->get_posts() (/app/wp-includes/class-wp-query.php:3852) at WP_Query->query(array('sitemap' => '1')) (/app/wp-includes/class-wp.php:696) at WP->query_posts() (/app/wp-includes/class-wp.php:816) at WP->main('') (/app/wp-includes/functions.php:1336) at wp() (/app/wp-blog-header.php:16) at require('/app/wp-blog-header.php') (/app/index.php:17) |