# A footer at the page which contains a chapter name isn't correct

I want to insert the number of the page, as it is indicated in the code, in a box at the bottom of the page on the left, but in the page which contains the declaration of the chapter, the numbering is changed!

This is a code :

\documentclass[svgnames,french,english,12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{anysize}
\marginsize{22mm}{14mm}{12mm}{25mm}
\usepackage{colortbl}
\usepackage{fancybox}
\usepackage[explicit]{titlesec}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\footskip}{28.44942pt}
\fancyhf{}
\titleformat{\section}[block]{\sffamily\Large\bfseries\color{white}}%
{}{0em}{\colorbox{RoyalBlue!90}{\parbox{\dimexpr\linewidth-2\fboxsep}{\thesection\enspace #1}}}
\titleformat{name=\section, numberless}[block]{\sffamily\Large\bfseries\color{white}}%
{}{0em}{\colorbox{RoyalBlue!90}{\parbox{\dimexpr\linewidth-2\fboxsep}{#1}}}
\titleformat{\subsection}[block]{\sffamily\Large\bfseries\color{white}}%
{}{0em}{\colorbox{RoyalBlue!30}{\parbox{\dimexpr\linewidth-2\fboxsep}{\thesubsection\enspace #1}}}

\titleformat{\subsubsection}{\sffamily\large\bfseries\color{RoyalBlue}}{\thesubsubsection\enspace #1}{1em}{}[{\color{black}\titlerule[1.5pt]}]
\usepackage{tikz}
\usepackage{kpfonts}
\newcommand*\chapterlabel{}
\titleformat{\chapter}
{\gdef\chapterlabel{}
\normalfont\sffamily\Huge\bfseries\scshape}
{\gdef\chapterlabel{\thechapter\ }}{0pt}
{\begin{tikzpicture}[remember picture,overlay]
\node[yshift=-3cm] at (current page.north west)
{\begin{tikzpicture}[remember picture, overlay]
\draw[fill=black] (0,0) rectangle
(\paperwidth,3cm);
\node[anchor=east,xshift=.9\paperwidth,rectangle,
rounded corners=20pt,inner sep=11pt,
fill=MidnightBlue]
{\color{white}\chapterlabel#1};
\end{tikzpicture}
};
\end{tikzpicture}
}
\titlespacing*{\chapter}{0pt}{50pt}{-60pt}
\usepackage{fancyhdr}
\begin{document}
\chapter{Chapitre 1}
\section*{section without numerotation }
\section{section 1}
This page is not correct ,because this number of page is in the center footer ,  but in the code there is declared as a shadowbox in the left footer
\clearpage
\section{section 2}
\section{section without numerotation''}
\end{document}


And this is the result :

The plain style is applied on the first page of a chapter, and you have to redefine it. Add this to your preamble::
\fancypagestyle{plain}{%