sadams101 Posted August 8, 2022 Posted August 8, 2022 For the past couple of days I've seen this error repeat over and over in my php error logs. Does anyone know what could be causing it? [08-Aug-2022 00:10:59 UTC] PHP Deprecated: Optional parameter $votes declared before required parameter $pagination is implicitly treated as a required parameter in /home/mysite/public_html/uploads/template_cache/template_161_7a734b11232065691bc1176040cb26ad_topics.php on line 3174 [08-Aug-2022 00:10:59 UTC] PHP Deprecated: Optional parameter $nextUnread declared before required parameter $pagination is implicitly treated as a required parameter in /home/mysite/public_html/uploads/template_cache/template_161_7a734b11232065691bc1176040cb26ad_topics.php on line 3174 [08-Aug-2022 00:11:04 UTC] PHP Deprecated: Optional parameter $question declared before required parameter $pagination is implicitly treated as a required parameter in /home/mysite/public_html/uploads/template_cache/template_161_7a734b11232065691bc1176040cb26ad_topics.php on line 3174
Marc Posted August 9, 2022 Posted August 9, 2022 I would suggest first of all switching to a default theme and checking if these are logged then, as it looks to be coming from your custom theme
Ryan Ashbrook Posted August 9, 2022 Posted August 9, 2022 As Marc mentioned, this is likely an out of date theme. Specifically, the forums > topics > topic template. If you open that template in your theme, click the Variables button and make sure it looks like this: $topic, $comments, $question=NULL, $votes=array(), $nextUnread=NULL, $pagination=NULL, $topicVotes=array() Daniel F and sadams101 2
Recommended Posts