\documentclass[12pt, a4paper]{article}
\usepackage{amsmath}
\usepackage{adjustbox} % uses graphicx
\usepackage[top=1.8cm,bottom=1.8cm,left=0.88cm,right=0.88cm]{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage}
%\usepackage[
% type={CC},
% modifier={by-nc-nd},
% version={4.0}
%]{doclicense}
%%
% \usepackage{doclicense}
\usepackage{lipsum}
\usepackage{hyperref}
\pdfsuppressptexinfo=-1
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{qrcode}
%\usepackage{background}
\usepackage{multicol} % cover page multicol
\begin{document}
% \doclicenseImage
\cleardoublepage
\pagestyle{fancy}
\lipsum[1-5]
\end{document}
It was working fine when I installed and updated up to 17th Sep 2020.
Not sure which package casued it, but after the most recent update, if I add (put it back)\usepackage{doclicense}, I got this error now.


totpagesclaims to offer everything whichlastpageoffers, too, so why not switch fromlastpagetototpages? – Oct 10 '20 at 15:53lastpagedoes not really produce thelastpage. I don't thinktotpagesfunctions at all in that case... – CasperYC Oct 15 '20 at 15:25