[ad_1]
I am surprised that your programmer is telling you the wrong line number, maybe you are modifying the files on your end. Correct line number is 266 and it is not producing any error, I would request you to come up with a solution instead of reporting these things, troubleshooting takes time my friend.
Anyways, please replace that line with the following one and let me know about the outcomes. And please ask your programmer to understand this line, we are storing the value, which can be zero, not null, into the $term_id variable. We need it further, there is no return thing is being used.
$term_id = (int)(is_archive()?get_queried_object_id():0);