Tikiwiki 16.2 注册新用户时出错

Tikiwiki 16.2 Error while registering new user

我全新安装了 16.2,当我尝试注册新用户时出现以下错误。我重新解压了 zip 并重新安装了数据库,但我得到了同样的错误。

Tikiwiki 在 public_html/tiki 文件夹中,我没有对其进行任何调整。

如有任何帮助,我们将不胜感激。

这是错误:

Fatal error: Uncaught exception 'Zend\Math\Exception\RuntimeException' with message 'The RandomLib fallback pseudorandom generator is not installed. Please install it to support secure random numbers' in /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-math/src/Rand.php:75 Stack trace: #0 /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-math/src/Rand.php(60): Zend\Math\Rand getAlternativeGenerator() #1 /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-captcha/src/AbstractWord.php(354): Zend\Math\Rand getBytes(32) #2 /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-captcha/src/AbstractWord.php(340): Zend\Captcha\AbstractWord->generateRandomId() #3 /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-captcha/src/Image.php(447): Zend\Captcha\AbstractWord->generate() #4 /home/ghsfhaco/public_html/tiki/lib/captcha/captchalib.php(150): Zend\Captcha\Image->generate() #5 /home/ghsfhaco/public_html/tiki/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(171) : eval()'d c in /home/ghsfhaco/public_html/tiki/vendor/zendframework/zend-math/src/Rand.php on line 75

前几天我们也遇到了这个问题,这是由于 PHP 5 的旧版本没有启用 mcrypt 扩展,我们最近修复了它,所以有几个选项你我觉得:

  • 升级到 php 7(可能不是一个选项,除非它是您自己的服务器)
  • 为您启用 php-mcrypt php(也可能不可能)
  • 使用 dev.tiki.org
  • 最近的 "daily build" 16.x tarball 再试一次
  • 或在 Control panels->Security->Spam Protection 上启用其他验证码方法之一,例如 ReCaptchaCAPTCHA Questions

HTH