New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.php gives fatal error for random_int without PHP 7 #1852

Closed
iainhallam opened this Issue Feb 19, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@iainhallam
Contributor

iainhallam commented Feb 19, 2017

As per https://forum.dokuwiki.org/thread/14245, the latest stable release of DokuWiki (Frusterick Manners) gives a fatal error when trying to save from install.php:

Fatal error: Call to undefined function random_int() in /var/www/public/inc/PassHash.class.php on line 630

vendor/paragonie/random_compat/lib/random_int.php is in-place, but it's not being found.

OS: Ubuntu 16.04 image from https://box.scotch.io/ containing PHP 5.6.

@yousong

This comment has been minimized.

Show comment
Hide comment
@yousong

yousong Feb 20, 2017

Contributor

Same here

[yousong@sq1 dokuwiki]$ uname -a
Linux sq1 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[yousong@sq1 dokuwiki]$ php -v
PHP 5.4.16 (cli) (built: Nov  6 2016 00:29:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[yousong@sq1 dokuwiki]$ cat VERSION
2017-02-19 "Frusterick Manners"
Contributor

yousong commented Feb 20, 2017

Same here

[yousong@sq1 dokuwiki]$ uname -a
Linux sq1 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[yousong@sq1 dokuwiki]$ php -v
PHP 5.4.16 (cli) (built: Nov  6 2016 00:29:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[yousong@sq1 dokuwiki]$ cat VERSION
2017-02-19 "Frusterick Manners"

@splitbrain splitbrain added the Bug label Feb 20, 2017

@splitbrain splitbrain closed this in #1856 Feb 20, 2017

splitbrain added a commit that referenced this issue Feb 20, 2017

Fix calling undefined function random_int() when doing install.php
Otherwise the it will fail with the following error:

	2017/02/20 14:34:57 [error] 16242#0: *59 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to undefined function random_int() in /var/www/dokuwiki/inc/PassHash.class.php on line 630" while reading response header from upstream, client: 172.18.35.245, server: _, request: "POST /dokuwiki/install.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "10.5.234.170", referrer: "http://10.5.234.170/dokuwiki/install.php"

Fixes #1852

bug added a commit that referenced this issue Feb 20, 2017

Hotfix merge:
  Fix calling undefined function random_int() in install.php (#1852)
  Check for overwrite in media manager (#1853)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment