# [Tex/LaTex] empty ’thebibliography’ environment

bibliographiesbibtexerrors

I get this error and I really don't know how to handle it.
I saw similar questions here and I've tried the solutions, but it didn't work.

\documentclass[a4paper,12pt,fleqn]{book} %{scrartcl}

\usepackage{fullpage}
\usepackage[latin1]{inputenc}
\usepackage[ngerman, english]{babel}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsbsy}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{dsfont}
\usepackage{enumerate}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{placeins}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{natbib}
\usepackage[most]{tcolorbox}
\usepackage{subcaption}
\usepackage{url}

\begin{document}

\bibliographystyle{plainnat}
\bibliography{Bibliografy}

\end{document}


Bib-file:

@article{wikipedia1,
title = "Scripting language",
author = "[1]",
url = "http://en.wikipedia.org/wiki/Scripting_language"
}


ERROR – message:

Underfull \hbox (badness 10000) in paragraph at lines 902--904

[47] (/tmp/.thesis.tex.bbl [48]
Chapter 5.

Package natbib Warning: Empty thebibliography' environment on input line 8.


What should I do?
Thanks!

If you don't provide any \cite commands, then BibTeX (and LaTeX) won't know which entries in Bibliografy.bib to typeset: All of them? Just a few of them -- and, if so, which ones?

The consequence of having a \bibliography directive but no \cite commands is the warning -- not an error, by the way, "just" a warning -- about

Empty thebibliography environment on input line <line number>


or its natbib-based equivalent, viz.,

Package natbib Warning: Empty thebibliography' environment on input line <line number>


The upshot: Do provide \cite commands!

By the way, if you want all entries in the bib file to be typeset but, for some reason, do not want to \cite the entries explicitly, you could type

\nocite{*}


prior to executing \bibliography{Bibliografy}.

\documentclass[a4paper,12pt]{article} %{scrartcl}

\usepackage{filecontents}
\begin{filecontents*}{Bibliografy.bib}
@misc{wikipedia1,
title = "Scripting language",
author = "Wikipedia",
url = "http://en.wikipedia.org/wiki/Scripting_language",
year = 2014,
}
\end{filecontents*}

\usepackage[numbers]{natbib}
\usepackage{url}

\begin{document}
\cite{wikipedia1}
\bibliographystyle{plainnat}
\bibliography{Bibliografy}
\end{document}