Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
PHP Fatal error:  Call to undefined method PostInput::filter()
Avatar
Stephen J #1
Member since Apr 2012 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: PHP Fatal error:  Call to undefined method PostInput::filter()
Here is the full error.

[Thu Jul 26 16:20:47.814597 2018] [:error] [pid 14147] [client IP:53203] PHP Fatal error:  Call to undefined method PostInput::filter() in /usr/share/dokuwiki/lib/exe/ajax.php on line 18, referer: https://itwiki.ourdomain.com/itwiki:in…?do=media&ns=…

This was triggered when I'm trying to load various things in the Media Manager which isn't functional at this point. I recently upgraded to the latest version of Turnkey Dokuwiki and I think this has been a problem since then. I'm not super versed in the code behind Dokuwiki and I'm not a trained programmer. Can anyone give me an idea what is going on? Google has given me nothing.

Thanks,
Stephen
Avatar
Stasy #2
Member since Aug 2018 · 2 posts
Group memberships: Members
Show profile · Link to this post
Hi,

I have a similar problem. When switching to the editing mode of an article, 2 Javascript alerts are shown ("error" and "Internal Server Error").
I also use the TurnKey Dokuwiki Appliance (which regularly updates in the background). When I edited an article about a month ago, no errors were shown, so this must have been introduced in the last few weeks.

2 lines from /var/log/apache/error.log:

[Fri Aug 03 08:41:44.376902 2018] [:error] [pid 720] [client 192.168.100.23:62116] PHP Fatal error:  Call to undefined method GetInput::filter() in /usr/share/dokuwiki/lib/exe/ajax.php on line 20, referer: http://dokuwiki.abc.local/wiki:blablubb?do=edit&rev=0

[Fri Aug 03 08:44:51.394929 2018] [:error] [pid 681] [client 192.168.100.23:62168] PHP Fatal error:  Call to undefined method PostInput::filter() in /usr/share/dokuwiki/lib/exe/ajax.php on line 18, referer: http://dokuwiki.abc.local/wiki:blablubb?do=edit&rev=0

Thank you,
Andreas
Avatar
captainhero #3
Member since Oct 2018 · 2 posts
Group memberships: Members
Show profile · Link to this post
Hey,

did you guys find anything regarding this issue? I've the same error when I'm trying to add a media-file or even when I'm tying to open the media manager.

In the apache error.log I found the same error-message:
[Thu Oct 04 14:01:33.791508 2018] [:error] [pid 2382] [client 10.0.0.65:55349] PHP Fatal error:  Call to undefined method PostInput::filter() in /usr/share/dokuwiki/lib/exe/ajax.php on line 18, referer: https://<my.local.domain>/dokuwiki/doku.php?id=start&do=media&ns=

line 18 from the ajax.php says:
$call = $INPUT->post->filter('utf8_stripspecials')->str('call');

Another thing is that behind the "ns="-parameter nothing is showing up in the error.log which maybe could also be the issue.

Login or editing articles works just fine.

Any ideas?

Thanks,
Mike
Avatar
Michaelsy #4
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Maybe better than nothing, "Turnkey Linux" has its own support forum:
https://www.turnkeylinux.org/forum/support

A certain "Jeremy Davis" (one person???) tries to answer all questions as well as possible.

Tagged with "dokuwiki":
https://www.turnkeylinux.org/forum/tags/dokuwiki

And in addition, you can try these search strings:
site:www.turnkeylinux.org/forum dokuwiki
site:forum.dokuwiki.org turnkey

Feedback welcome...

HTH - Michael Sy.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited 3 times, last on 2018-10-05, 08:36 by Michaelsy.
Avatar
turnermm (Moderator) #5
Member since Oct 2009 · 4781 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #3
This could be a faulty install of dokuwiki.  Make sure you have inc/Input.class.php and that it's current, that is for  your distribution.  If the error persists open an issue on the dokuwiki site at github or check with the turnkey distros and make sure they are uptodate.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
JeremyDavis #6
Member since Oct 2018 · 1 post
Group memberships: Members
Show profile · Link to this post
In reply to post #4
Quote by Michaelsy:
A certain "Jeremy Davis" (one person???) tries to answer all questions as well as possible.

That'd be me! Yep, one person... :)

FWIW @captainhero posted on our forums:
https://www.turnkeylinux.org/forum/support/thu-20181004-19…

I've responded over there, but for completeness, I figured I'd cross post here too.

As I noted, the bug appears to be in the Debian (Jessie) Dokuwiki package:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903948

Workarounds are noted in the bug thread, but at the time of writing, the buggy binary package remains unpatched in the Debian repos:
https://packages.debian.org/jessie/dokuwiki
Avatar
captainhero #7
Member since Oct 2018 · 2 posts
Group memberships: Members
Show profile · Link to this post
Just to let you guys know:

As Jeremy already mentioned I posted on turnkeylinux.org and Jeremy did a very good job in helping me very fast. You'll find a working solution on the linked thread.

What I did was installing a fixed deb-file linked in the other thread which did the trick. The media manager and the sitemap on my dokuwiki is working again.

Big thanks to Jeremy once again for the great support! :)

Best regards,
Mike
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 4781 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
There is nothing intrinsically wrong with the debian dokuwiki package, as long as the user understands and can adapt to its limitations.  First of all, it is designed for single user use on the desktop, and has strict limits as to access and updating.  If it is only meant to be used in this limited way, then it's ok.  But if it is to be used on the open Internet, then the user must be comfortable with linux permissions and familiar with the non-standard directory structure of the debian installation of dokuwiki.  And this would eventually be the case if the user ever wants to update dokuwiki.  Because of these issues, even the ubuntu/debian instructions at dokuwiki.org suggests by-passing the package manager and using  a standard install. 

But the most significant shortcoming of the debian package is currency.  Debian 8(Jessie) is still at Ponder Stibbons, which is four years out-of-date, and the previous package was 2 years older than that.  These outdated packages are not safe for use on the open Internet unless they are updated, because they may not be able to use security hotfixes.  The most recent version of Debian (Stretch) does not supply a Dokuwiki package.  So it may be coming to an end, either because of some or all of these issues or because the maintainer is no longer able to maintain it. 

I am taking the time to write this because Jeremy Davis from turnkey is involved in this thread and because I've been aware of  debian package-based issues coming up on the forum.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2018-10-09, 22:15 by turnermm.
Avatar
Stasy #9
Member since Aug 2018 · 2 posts
Group memberships: Members
Show profile · Link to this post
Hi,

here are the steps that finally brought my DokuWiki back to life ;-)

1. Login as root
2. Backup your data directory (in my case '/var/lib/dokuwiki/data/'), because data may be purged by package removal if this was set during the last setup
3. apt-get remove dokuwiki
4. wget https://non-gnu.uvt.nl/debian/jessie/dokuwiki/dokuwiki_0.0…
5. dpkg -i dokuwiki_0.0.20140505.a+dfsg-4+deb8u2_all.deb

Installation in step 5 will ask if DokuWiki data shall be purged on package removal (if you later decide to remove the package again). Default answer is "no" and must be selected if you want to keep your data on next package removal.

Thanks @JeremyDavis for pointing me in the right direction!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-17, 07:12:24 (UTC +01:00)