I'm writing my thesis, and recently I noticed that I have a warning that I can't get rid of:
name{chapter*.2} has been referenced but does not exist, replaced by a fixed one
I created a minimal working example that you can use to reproduce the warning. I wasn't able to reduce it further since the warning seems to only occur if you use a table of contents, bibliography, hyperref and an acronym glossary at the same time. It also seems to only occur after the first compilation run of the document. Since this is my thesis I'm scared that this warning could result in some errors down the line. I would be very grateful if you could help me getting rid of this warning.
Edit: I also just noticed that after the first compilation run the acronym glossary is also missing in the table of contents. After another compilation round it appears in the table of contents.
Edit: You can find the log file contents here: https://pastebin.com/Hu8Hm3ng
MWE.tex
\documentclass[
12pt,
DIV=12,
paper=A4,
listof=totoc,
parskip=half,
bibliography=totoc,
]{scrreprt}
\usepackage[
backend = biber,
]{biblatex}
\addbibresource{MyBib.bib}
\usepackage[
toc,
nomain,
acronym,
nopostdot,
nonumberlist,
]{glossaries}
\loadglsentries{MyAcronym}
\makeglossaries
\usepackage[
bookmarks = true,
bookmarksnumbered = true,
pdfpagemode = {UseOutlines},
pdfpagelabels = true,
]{hyperref}
\begin{document}
\tableofcontents
\chapter{Lorem Ipsum}
This is a citation \cite{Test.2023}. This is a \acrfull{Test}
\printglossary[title={Acronyms}, type=\acronymtype]
\printbibliography
\end{document}
MyBib.bib
@book{Test.2023,
author = {Lorem Ipsum},
year = {2023},
title = {Strange Warning},
}
MyAcronym.tex
\newacronym{Test}{Test}{Test Full}