I'm trying to get a figure to float beside text but I keep getting the error "wrapfigure used inside conflicting environment," and the figure floats down to the bottom. I'm pretty sure it's not in a list unless sections count as a list, and I've tried commenting out just about everything to see what's conflicting and I can't find it.
\documentclass[12pt]{article}
\usepackage[hidelinks]{hyperref}
\usepackage{datetime}
\usepackage{graphicx}
\usepackage{wrapfig}
\begin{document}
\section{Task Management Structure}
\begin{flushleft}
In order to efficiently utilize JIRA for task management, the general structure of
site’s components must be understood. This section discusses JIRA's structure and how
it will be used.
\begin{center}
\includegraphics[width=0.85\textwidth]{JIRATaskManagementStructure}
\end{center}
\section{Navigating Dashboard}
\subsection{Introduction}
\begin{wrapfigure}{R}{.5\textwidth}
\centering
\includegraphics[width=0.5\textwidth]{image}
\end{wrapfigure}
The \emph{Introduction} section provides a link to the
\texttt{\href{http://tex.stackexchange.com}{Valid Link}}.
\subsection{Introduction2}
\begin{wrapfigure}{R}{.5\textwidth}
\centering
\includegraphics[width=0.5\textwidth]{image2}
\end{wrapfigure}
\end{flushleft}
\end{document}
The first graphic works, but it isn't a wrapfig, so I don't think it matters to what's happening. I've been looking through stuff for about an hour and not finding anything that helps. The second wrapfig takes in the image from the first.

wrapfigis extremely particular. You're lucky - at least your figure appears somewhere! Mine tend to just disappear. ;) Remember that you need to make sure there is enough text in the paragraphs. You've got one quite short sentence which is likely nowhere near enough for the height of the graphic. – cfr Jun 04 '14 at 23:45