# A problem with a template file - posttitle

I started writing a thesis and I downloaded this template from my Uni. I am having some problems. firstly, something is wrong with this bit and I wanted to ask what:

\documentclass[a4paper,openany, 11pt]{book}

\usepackage{amsbsy}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{mathrsfs}
\usepackage{color}
\usepackage{cite}
\usepackage{enumitem}
\usepackage{epsfig}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[strict]{changepage}

% Page Margins - Strath Requirement

\usepackage{fancyhdr}
\fancyhf{}
\cfoot{\thepage}
\pagestyle{fancy}

% Draft Watermark
\usepackage[draft=true,allpages=true,fontfamily=cmr,angle=90,scale=0.1,mark={\fboxsep=35pt\fboxrule=0pt\relax\fbox{-- DRAFT -- \today~--}},xcoord=-80,ycoord=-20]{draftmark}

% Line Spacing
%\def\baselinestretch{1.5}
\usepackage{setspace}
\setstretch{1.5}

% Place UoS Logo on Title Page (this package modifies the "\maketitel" command.)
\usepackage{titling}
\pretitle{%
\begin{flushright}
\vspace{-9.5cm}
%\includegraphics[width=5cm,natwidth=472,natheight=531]{logo} \\[7cm]
\includegraphics[width=5cm]{logo} \\[6cm]
\end{flushright}
\begin{center}
\LARGE
}
\posttitle{\end{center}}

\title{PhD Title \\ PhD Thesis}
\author{A. PhD Student
\\ \small Research Group\\[-0.8ex]
\small Department\\[-0.8ex]
\small University of Strathclyde, Glasgow\\
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\maketitle

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Declaration
\topskip0pt
\vspace*{\fill}
\noindent
\begin{quote}
\centering
This thesis is the result of the author's original research. It has been composed by the author and has not been previously submitted for examination which has led to the award of a degree. \\[5pt]
%
The copyright of this thesis belongs to the author under the terms of the United Kingdom Copyright Acts as qualified by University of Strathclyde Regulation 3.50. Due acknowledgement must always be made of the use of any material contained in, or derived from, this thesis. \\[5pt]
%
%Signed: \\
%Date:
\end{quote}
\vspace*{\fill}

\chapter{Abstract}

\tableofcontents

\listoffigures

\listoftables

\chapter{Preface/Acknowledgements}
I would like to acknowledge...

\mainmatter

\chapter{Introduction}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix
\chapter{Stuff That Didn't Fit Anywhere Else}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

• You have to provides us with draftmark. – Sigur Jan 11 at 17:27
• Commenting that package and replacing logo by example-image (since you also didn't show the logo image), the file compiles normally. – Sigur Jan 11 at 17:28