Fatal error for custom template after upgrading 5.27.2
-
Hi I have run a custom template for years with no problems, but after the latest upgrade it fires a fatal error and the entire page content can not be displayed
[16-Aug-2021 00:24:29 UTC] PHP Fatal error: Uncaught Error: Call to a member function have_posts() on null in /path/wp-content/themes/mytheme/yarpp-template-MYTEMPLATE-thumb.php:1 Stack trace: #0 /path/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php(1589): include() #1 /path/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php(1513): YARPP->get_template_content(53572, Array, 5) #2 /path/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php(1380): YARPP->display_related(53572, Array, false) #3 /path/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php(1956): YARPP->display_basic() #4 /path/wp-includes/class-wp-hook.php(303): YARPP->the_content('<div class="lea...') #5 /home/path in /path/wp-content/themes/MYTHEME/yarpp-template-MYTEMPLATE-thumb.php on line 1
line: 1 of the template is
<?php if ($related_query->have_posts()):?>
can you please help ?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Fatal error for custom template after upgrading 5.27.2’ is closed to new replies.