Extension talk:Bibtex

About this board

Archive 1


MW Kappa (talkcontribs)

tested: does work in a MW 1.32

Reply to "running in MW 1.32"

change line 353 in file bibtex.php

1
MW Kappa (talkcontribs)

original line:

if($wbibmacros[$field_text] != ""){

changed line:

if(isset($wbibmacros[$field_text]) != ""){


The original line causes a lot of warning entries in the error logs, such as

  • PHP Notice: Undefined offset: 2011 in .../extensions/BibTex/BibTex.php on line 353
  • PHP Notice: Undefined index: Pittsburgh, PA in .../extensions/BibTex/BibTex.php on line 353
Reply to "change line 353 in file bibtex.php"
Loizbec (talkcontribs)

Did not work on my 1.28.2 mediawiki (The special:Version page did not even load anymore) --Loizbec (talk) 15:32, 29 August 2017 (UTC)

Bsplu (talkcontribs)

Mine works well. (mediawiki : 1.29.1 PHP : 5.6.30 MariaDB : 10.0.32 OS : Raspbian GNU/Linux 8 )

  1. add require_once "$IP/extensions/BibTex/BibTex.php"; to your LocalSettings.php notice : do not use wfLoadExtension
  2. and update mediawiki by $ cd wiki/maintenance $ php update.php

You could add

# debug echo for datebase

$wgShowExceptionDetails = true;

$wgShowDBErrorBacktrace = true;

# debug echo for php

error_reporting( -1 );

ini_set( 'display_errors', 1 );

to your LocalSettings.php to check out the error.

Reply to "1.28 Compatibility"
There are no older topics