"Hello, sorry for the delay but this is a difficult one.
We have figured out that this is not a theme problem but indeed a bug with WordPress. The bug is identified here https://core.trac.wordpress.org/ticket/35344
The safest and recommended solution would be to wait for the next WordPress update which will patch this issue.
A temporary solution would be to set your permalinks to Plain under Settings > Permalinks, until WordPress updates.
You can fix it yourself, but this isn't something we would recommend, editing core files is not a very good idea.
If you choose to patch it make sure you have a backup of the database and installation files before attempting it.
Below is the suggested solution, which as stated in the bug description, needs more testing, so again, we can't safely recommend it. Proceed at your own risk.
Edit the /wp-includes/canonical.php
In line 175 locate this
} elseif ( is_page() && !is_feed() && isset($wp_query->queried_object) && 'page' == get_option('show_on_front') && $wp_query->queried_object->ID == get_option('page_on_front') && ! $redirect_url ) {
and change it to
} elseif ( is_page() && !is_feed() && 'page' == get_option('show_on_front') && get_queried_object_id() == get_option('page_on_front') && ! $redirect_url ) {
then in line 264 locate this
// Post Paging
if ( is_singular() && ! is_front_page() && get_query_var('page') ) {
if ( !$redirect_url )
$redirect_url = get_permalink( get_queried_object_id() );
$redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( get_query_var( 'page' ), 'single_paged' );
$redirect['query'] = remove_query_arg( 'page', $redirect['query'] );
}
and modify to
// Post Paging
if ( is_singular() && get_query_var('page') ) {
if ( !$redirect_url )
$redirect_url = get_permalink( get_queried_object_id() );
$page = get_query_var( 'page' );
if ( $page > 1 ) {
if ( is_front_page() ) {
$redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( "$wp_rewrite->pagination_base/$page", 'paged' );
} else {
$redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( $page, 'single_paged' );
}
}
$redirect['query'] = remove_query_arg( 'page', $redirect['query'] );
}
these two modifications should fix the issue."
şu metni çevirebilir misiniz kodlar dışında ne demek istendiğini pek anlamadım.