PHP Notice, please fix
-
Hello,
On one of our wordpress installs, there is a PHP notice showing up in one of our author pages.
Notice: Undefined offset: 0 in /www/wp-includes/class-wp-query.php on line 3252.Here is the output from Query Monitor:
wp-includes/class-wp-query.php:3252 WP_Query->next_post() wp-includes/class-wp-query.php:3281 WP_Query->the_post() wp-includes/query.php:937 the_post() wp-content/themes/generatepress/inc/structure/archives.php:75 generate_filter_the_archive_title() wp-includes/class-wp-hook.php:288 apply_filters('get_the_archive_title') wp-includes/general-template.php:1618 get_the_archive_title() wp-content/plugins/wp-seopress/inc/functions/variables/dynamic-variables.php:231 seopress_dyn_variables_init() wp-includes/class-wp-hook.php:288 apply_filters('seopress_dyn_variables_fn') wp-content/plugins/wp-seopress/inc/functions/options-titles-metas.php:245 seopress_titles_the_title() wp-includes/class-wp-hook.php:288 apply_filters('pre_get_document_title') wp-includes/general-template.php:1040 wp_get_document_title() wp-includes/general-template.php:1159 _wp_render_title_tag() wp-includes/class-wp-hook.php:288 do_action('wp_head') wp-includes/general-template.php:2879 wp_head() wp-content/themes/generatepress_child/header.php:18 load_template('wp-content/themes/generatepress_child/header.php') wp-includes/template.php:671 locate_template() wp-includes/general-template.php:41 get_header() wp-content/themes/generatepress_child/author.php:24I think you need to add a check on your code, to check if what you are looking for exists before trying to use it.
Kind regards,
Raul Peixoto
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Notice, please fix’ is closed to new replies.