XF 2.0 Upgrade Error

JamesBrown

Well-known member
Upgrading a forum from 1.5 to 2.

I've uploaded the files but when I point to the install directory I get the following error. Can anyone help me with this? Thanks

Exception: There is no suitable CSPRNG installed on your system in src/vendor/paragonie/random_compat/lib/random.php at line 213
  1. random_bytes() in src/XF/Util/Random.php at line 84
  2. XF\Util\Random::_genRandomBytes() in src/XF/Util/Random.php at line 29
  3. XF\Util\Random::getRandomBytes() in src/XF/Util/Random.php at line 55
  4. XF\Util\Random::getRandomString() in src/XF.php at line 703
  5. XF::generateRandomString() in src/XF/Session/Session.php at line 73
  6. XF\Session\Session->start() in src/XF/App.php at line 713
  7. XF\App->XF\{closure}() in src/XF/Container.php at line 28
  8. XF\Container->offsetGet() in src/XF/Install/App.php at line 38
  9. XF\Install\App->XF\Install\{closure}() in src/XF/Container.php at line 28
  10. XF\Container->offsetGet() in src/XF/App.php at line 2250
  11. XF\App->session() in src/XF/Install/App.php at line 174
  12. XF\Install\App->setupUpgradeSession() in src/XF/Install/Controller/Upgrade.php at line 20
  13. XF\Install\Controller\Upgrade->preDispatchController() in src/XF/Install/Controller/AbstractController.php at line 11
  14. XF\Install\Controller\AbstractController->preDispatchType() in src/XF/Mvc/Controller.php at line 117
  15. XF\Mvc\Controller->preDispatch() in src/XF/Mvc/Dispatcher.php at line 248
  16. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 89
  17. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
  18. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
  19. XF\App->run() in src/XF.php at line 328
  20. XF::runApp() in install/index.php at line 14
 
This is a kind of known issue which is fixed in XF 2.0.10 which is yet to be released.

However, the simplest way of resolving it is to upgrade your server so it runs at least PHP 7.0 (though we'd recommend PHP 7.2 if possible). Often it is simple to change the PHP version in your hosting panel or your host may be able to do it for you.
 
This is a kind of known issue which is fixed in XF 2.0.10 which is yet to be released.

However, the simplest way of resolving it is to upgrade your server so it runs at least PHP 7.0 (though we'd recommend PHP 7.2 if possible). Often it is simple to change the PHP version in your hosting panel or your host may be able to do it for you.

Thanks, Chris, I for some reason still had that domain sat at php5. Sorted it's now installing as I type. Cheers
 
Back
Top Bottom