Jump to content

Extension talk:Bibtex

Add topic
From mediawiki.org
Latest comment: 7 years ago by MW Kappa in topic running in MW 1.32

Archive 1



1.28 Compatibility

[edit]

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)Reply

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. Bsplu (talk) 20:51, 24 October 2017 (UTC)Reply

change line 353 in file bibtex.php

[edit]

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 MW Kappa (talk) 18:35, 5 March 2019 (UTC)Reply

running in MW 1.32

[edit]

tested: does work in a MW 1.32 MW Kappa (talk) 14:54, 18 March 2019 (UTC)Reply