Fatal error in template-tags.php
-
Hi all,
I found a bug in template-tags.php that was blocking my wp feed (error 500).
[20-Dec-2017 15:45:39 UTC] PHP Notice: Trying to get property of non-object in /var/.../wp-content/plugins/leaguemanager/template-tags.php on line 766 [20-Dec-2017 15:45:39 UTC] PHP Fatal error: Call to a member function getTitle() on boolean in /var/.../wp-content/plugins/leaguemanager/template-tags.php on line 796
Original code:
//template-tags.php:793 function the_match_title($show_logo = true) { global $match; echo $match->getTitle($show_logo); }
Quick fix:
//template-tags.php:793 function the_match_title($show_logo = true) { global $match; if(is_object($match)) // DFK echo $match->getTitle($show_logo); }
- The topic ‘Fatal error in template-tags.php’ is closed to new replies.