Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Greebo, error trying to login. [Solved]
Avatar
firminmaillard #1
Member since Jul 2017 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: Greebo, error trying to login. [Solved]
Dear community,

I've just reinstalled my machine and now I'm using Greebo on a FreeBSD 11.1 server with PHP 7.2. I've restored the data from my previous installation and I can see all the pages from my browser but without the possibility of logging in, with the following error in nginx/error.log:

Fatal error: Uncaught Error: Call to undefined function hash_equals() in /usr/local/www/dokuwiki/inc/PassHash.class.php:94

Stack trace:

#0 /usr/local/www/dokuwiki/inc/auth.php(1215): PassHash->verify_hash('xxx', 'xxx...')

#1 /usr/local/www/dokuwiki/lib/plugins/authplain/auth.php(69): auth_verifyPassword('xxx', 'xxx...')

#2 /usr/local/www/dokuwiki/inc/auth.php(225): auth_plugin_authplain->checkPass('xxx', 'xxx')

#3 /usr/local/www/dokuwiki/inc/auth.php(177): auth_login('xxx', 'xxx', false, false)

#4 /usr/local/www/dokuwiki/inc/events.php(111): auth_login_wrapper(Array)

#5 /usr/local/www/dokuwiki/inc/events.php(256): Doku_Event->trigger('auth_login_wrap...', true)

#6 /usr/local/www/dokuwiki/inc/auth.php(109): trigger_event('AUTH_LOGIN_CHEC...', Array, 'auth_login_wrap...')

#7 /usr/local/www/dokuwiki/inc/init.php(215): auth_setup()

#8 /usr/local/www/dokuwiki/doku.php(34): require_once('/usr/local/www/...')

#9 {main} thrown in /usr/local/www/dokuwiki/inc/PassHash.class.php on line 94

What could that be? Am I the only one experiencing this?

Thank you very much,
Francesco
This post was edited on 2018-05-06, 00:38 by firminmaillard.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4741 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
hash_equals has apparently been included in php since 5.6, so it should be in 7.2.  Did you restart your web server after installing php?
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
LarsDW223 #3
Member since Sep 2014 · 448 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
In reply to post #1
I also found some web page regarding nginx and different PHP version. Maybe it helps:

https://stackoverflow.com/questions/38014106/how…?utm_me…
Avatar
firminmaillard #4
Member since Jul 2017 · 9 posts
Group memberships: Members
Show profile · Link to this post
Correction: that message in not found in nginx/error.log, but it appears on the web page after I try to login.

I did restart the web server and the server itself many times, and nginx seems to work fine.

Could that be a permissions problem of the files in /inc?

Thanks again,
Francesco
Avatar
turnermm (Moderator) #5
Member since Oct 2009 · 4741 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Could that be a permissions problem of the files in /inc?

The error is a result of a function not found in php, not from something missing in dokuwiki.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
firminmaillard #6
Member since Jul 2017 · 9 posts
Group memberships: Members
Show profile · Link to this post
Yes, I see what you mean, but I hadn't that with Frusterick Manners under php 5.6; the error only appeared once I upgraded to Greebo, first with php 5.6 and now with php 7.2, which I installed trying to solve my problem.

Thanks for your help,
Francesco
Avatar
turnermm (Moderator) #7
Member since Oct 2009 · 4741 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I checked and see that the missing function is not used in Frusterick Manners.  So, either you will have to roll back to FM or possibly reinstall PHP or search on the  freebsd forums to see if someone there can help you with the missing function.  I'd begin by trying to reinstall php.

You can place this code in a file named index.php and access from your browser.  Make sure it is readable by the web server.

<?php
phpinfo();

Then you can check the output to see if the hashng modules have been included in your distribution.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
firminmaillard #8
Member since Jul 2017 · 9 posts
Group memberships: Members
Show profile · Link to this post
Here is the result:

http://firminmaillard.org/phpinfo.php

I don't see anything relating to hashng, am I wrong?
Avatar
firminmaillard #9
Member since Jul 2017 · 9 posts
Group memberships: Members
Show profile · Link to this post
Oh dear, I've found the problem thanks to you: in FreeBSD to use the Greebo release of DokuWiki two more php extensions are needed:

devel/php72-json

and

security/php72-hash

This for the php 7.2, of course, but the same apply for older versions.

I guess that they should be considered dependencies, and I'll write to the maintainer to inform him.

Thanks you very much turnermm for your help and for your patience!

Francesco
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 4741 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Glad it is solved.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
turnermm (Moderator) #11
Member since Oct 2009 · 4741 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
By the way--where did this information come from?  I didn't find it on the freeBSD install page at dowkuwiki.org, and it should be posted there.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
LarsDW223 #12
Member since Sep 2014 · 448 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
This seems to be very different among versions (or maybe I should better say distributions?). I remember I also had to install the JSON module manually but I cannot remember that I did install any hash module manually.

My system: Ubuntu 16.04, PHP version 7.0.28.
Avatar
firminmaillard #13
Member since Jul 2017 · 9 posts
Group memberships: Members
Show profile · Link to this post
Hi Myron,

once you pointed me to the missing function in my php installation I went to the FreeBSD repository to look for a php-hash extension there, just like I had done for the php-json extension: both are missing in a vanilla installation of php as dependency of DokuWiki on FreeBSD, but easily available as ports or packages.

I wrote to the DokuWiki maintainer for FreeBSD and I'll try to improve https://www.dokuwiki.org/install:freebsd with what I've just learned.

Take care,
Francesco
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: 2019-12-14, 09:46:14 (UTC +01:00)