PiRSquared17 / wiki2latex

Automatically exported from code.google.com/p/wiki2latex
0 stars 0 forks source link

W2L sometimes uses wrong reference-definitions (was: Detected bug in an extension! Hook Wiki2LaTeXHelper::UnknownAction failed to return a value; should return true to continue hook processing or false to abort.) #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
after installing currenct RC of W2L I get following error message when
trying to use the extension:

Detected bug in an extension! Hook Wiki2LaTeXHelper::UnknownAction failed
to return a value; should return true to continue hook processing or false
to abort.

Backtrace:

#0 /opt/lampp/htdocs/wiki/includes/Wiki.php(526):
wfRunHooks('UnknownAction', Array)
#1 /opt/lampp/htdocs/wiki/includes/Wiki.php(63):
MediaWiki->performAction(Object(OutputPage), Object(Article),
Object(Title), Object(User), Object(WebRequest))
#2 /opt/lampp/htdocs/wiki/index.php(116):
MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage),
Object(User), Object(WebRequest))
#3 {main}

What is the expected output? What do you see instead?
The expected output is, that I get a Tex-Output. Instead I see the posted
error message

What version of Wiki2LaTeX are you using? On which Mediawiki version?
W2L 0-10 RC 
Mediawiki 1.15.1

Original issue reported on code.google.com by Hartmann...@googlemail.com on 18 Sep 2009 at 1:25

GoogleCodeExporter commented 9 years ago
I will look into it. It might be a compatibility issue for W2L hasn't been 
tested
with MW 1.15.

Thank you for reporting the issue. It will be solved with in the next version.

Original comment by hansgeorg.kluge@gmail.com on 2 Oct 2009 at 8:04

GoogleCodeExporter commented 9 years ago
Any workaround?

Original comment by fagu...@gmail.com on 8 Jan 2010 at 12:13

GoogleCodeExporter commented 9 years ago
I ran into the same issuu when installing Wiki2LaTeX. Newer versions of PHP are
stricter when it comes to arguments being incorrectly passed (by reference vs by
value). Here is a quick fix:

In w2lHelper.php, line 121, replace

    public function UnknownAction($action, &$article) {

by

    public function UnknownAction($action, $article) {

There are probably other similar errors, for example in line 21 of 
contrib/math.php.

Original comment by frank.wi...@gmail.com on 30 Mar 2010 at 7:39

GoogleCodeExporter commented 9 years ago
fixed the same "bug" in contrib/math.php and hat to add
$link=$title;
at line 922 of file w2lParser.php (after line
case NS_IMAGE:
)

Original comment by philipp....@googlemail.com on 31 May 2010 at 12:56

GoogleCodeExporter commented 9 years ago
Changes have been implemented. Thank you all very much!

Original comment by hansgeorg.kluge@gmail.com on 26 Aug 2010 at 9:11

GoogleCodeExporter commented 9 years ago
closing the bug for now

Original comment by hansgeorg.kluge@gmail.com on 26 Aug 2010 at 9:33

GoogleCodeExporter commented 9 years ago

Original comment by hansgeorg.kluge@gmail.com on 26 Aug 2010 at 9:54

GoogleCodeExporter commented 9 years ago

Original comment by hansgeorg.kluge@gmail.com on 29 Aug 2010 at 9:44

GoogleCodeExporter commented 9 years ago
Dear All, I downloaded w2l in March 2010 and made some modifications on it. The 
final version is available here: 
http://wmi.math.u-szeged.hu/~kovzol/w2l-0.10rc+kovzol20101015.zip. The .zip 
contains the following minor changes:

* Table handling (ltablex)
* Images
* Configuration changes:
  - disable references in the printed version
  - frenchspacing
* Colored verbatim paragraphs
  - lavender color for input (first block)
  - skyblue color for output (last block)
* Hungarian language support
* Math formulas displayed properly (fix)

The changes are not intended to be perfect, however they should work in most 
cases.

Best regards,
Zoltan Kovacs <kovzol@matek.hu>
http://wmi.math.u-szeged.hu/~kovzol

Original comment by kov...@gmail.com on 15 Oct 2010 at 8:54