[Tex/LaTex] TexStudio: Biber claims biblatex version is wrong

biblatexcompilingmiktex

I use MiKTeX 2.9 and TexStudio 2.10.8 as my editor.
And I try to use biblatex/Biber

I have installed Biber with the packackge manager of MiKTeX and configured TexStudio to use Biber.

This is the important part of my LateX file, which is about Biber:

\usepackage[style=authoryear, backend=biber]{biblatex}
\addbibresource{referenzen.bib}

So when compiling TexStudio shows me this error:

INFO - This is Biber 2.3
INFO - Logfile is '<mylatexfile>.blg'
INFO - Reading '<mylatexfile>.bcf'
WARN - Warning: Found biblatex control file version 2.6, expected version 2.9
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'referenzen.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'referenzen.bib'
INFO - Overriding locale '' defaults 'normalization = NFD' with 'normalization = prenormalized'
INFO - Overriding locale '' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting list 'nyt' of type 'entry' with scheme 'nyt' and locale ''
INFO - No sort tailoring available for locale ''

\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber/SortLists.pm line 77.

Use of uninitialized value $pre in regexp compilation at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber/Internals.pm line 1000. Use of uninitialized value $thislocale in concatenation (.) or string at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber.pm line 2856. Use of uninitialized value $thislocale in concatenation (.) or string at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber.pm line 2943. Use of uninitialized value $thislocale in concatenation (.) or string at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber.pm line 2948. Use of uninitialized value $lname in concatenation (.) or string at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber.pm line 1979. Use of uninitialized value $lssn in concatenation (.) or string at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber.pm line 1979. Use of uninitialized value $lssn in concatenation (.) or string at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber.pm line 1993. Use of uninitialized value $lssn in concatenation (.) or string at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber.pm line 2008. Can't use an undefined value as an ARRAY reference at D:\Users\<username>\AppData\Local\Temp\par-<num>\cache-19a661c7206c3f371c207b98ac69231301395587\inc\lib/Biber/Internals.pm line 990.

I noticed the warning about the biblatex control file and therefore I looked in the package manager MiKTeX what's the version of biblatex:
Biblatex version 2.9a

And surprisingly it is called v2.9 and not 2.6 there.
So to verify this version error I looked into my .bcf file and it indeed is labeled v2.6 there:

<?xml version="1.0" encoding="UTF-8"?>
<bcf:controlfile version="2.6" xmlns:bcf="https://sourceforge.net/projects/biblatex">
  <!-- BIBER OPTIONS -->
[...]

So why is there this version discrepancy and how can I get it to compile correctly?

Best Answer

Okay, the issue was an outdated biblatex version. According to the Biber doc you need Biblatex v3.2 to work with Biber v2.3. Unless you don't have these versions it's not going to work.

And Biblatex v3.2 creates a .bcf file with the version number 2.9:

<?xml version="1.0" encoding="UTF-8"?>
<bcf:controlfile version="2.9" xmlns:bcf="https://sourceforge.net/projects/biblatex">

Basically I solved my problem by just reinstalling MiKTeX. You can also use the package manager to install the latest packages, but in my case it created just more problems.

Related Question