0
Answered

Error When Switching from PHP 7.0 to PHP 7.2

isaac 2 years ago updated by Vlad R 2 years ago 4

Hi,


I'm running the latest version of FileRun on PHP 7.0, and it works with no issue. However, when I try to switch to PHP 7.2, I get the following error:


PHP Fatal error:  Uncaught Error: Call to undefined function mb_strlen() in /system/classes/vendor/FileRun/Utils/Strings.php:149
Stack trace:
#0 /system/classes/vendor/FileRun/Utils/Strings.php(140): _mb_str_replace('?', '|@|', '', 'utf8', NULL)
#1 /system/classes/vendor/FileRun/Utils/Strings.php(37): mb_str_replace('?', '|@|', '')
#2 /system/classes/vendor/FileRun/Auth.php(516): S::fromHTML('')
#3 /system/classes/vendor/FileRun/Auth.php(23): FileRun\authSessions->getRemoteToken()
#4 /system/includes/auth.php(37): FileRun\Auth->hasValidCookie()
#5 /index.php(204): unknown()
#6 {main}
  thrown in /system/classes/vendor/FileRun/Utils/Strings.php on line 149

Any idea how to fix it?

Thank you

Answer

Answer
Answered

Please check this link: https://docs.filerun.com/php7 and follow the step-by-step guidance down the page. The idea is to replace the FileRun application files, with a fresh set, made specifically to work with the newer PHP versions.

Sorry. That was the wrong error. The actual error is: 

PHP Fatal error: The file /system/classes/vendor/FileRun/Utils/Settings.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or later. Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0

Answer
Answered

Please check this link: https://docs.filerun.com/php7 and follow the step-by-step guidance down the page. The idea is to replace the FileRun application files, with a fresh set, made specifically to work with the newer PHP versions.

Thank you Vlad. I will follow the instructions. Is there a configuration file (like database credentials) which I need to keep?

The guide does mention that you will be keeping the entire "system/data" folder.