Memory limit raised gives new error

Hi, so I had this warning in my nextcloud overview setup page:
De PHP geheugenlimiet is onder de aanbevolen waarde van 512MB.
Which means that the memory limit is below the recommended memory limit

I raised the memory_limit in php.ini to 1G.
Now, this worked except there was a error message in the overview page and the nextcloud log gave me this:
{"reqId":"EmVpnRJh4NR9j4uBZkzT","level":3,"time":"2019-10-29T15:09:46+00:00","remoteAddr":"145.94.183.156","user":"mart","app":"index","method":"GET","url":"\/index.php\/settings\/ajax\/checksetup","message":{"Exception":"Exception","Message":"Return value of OC\\MemoryInfo::memoryLimitToBytes() must be of the type int, float returned","Code":0,"Trace":[{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/AppFramework\/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Settings\\Controller\\CheckSetupController"},"check"]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Settings\\Controller\\CheckSetupController","check",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"settings.CheckSetup.check"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"settings.CheckSetup.check"}]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"settings.CheckSetup.check"}]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/settings\/ajax\/checksetup"]},{"file":"\/mnt\/ssd\/nextcloud\/server\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":109,"Previous":{"Exception":"TypeError","Message":"Return value of OC\\MemoryInfo::memoryLimitToBytes() must be of the type int, float returned","Code":0,"Trace":[{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/MemoryInfo.php","line":55,"function":"memoryLimitToBytes","class":"OC\\MemoryInfo","type":"->","args":[2147483648]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/MemoryInfo.php","line":39,"function":"getMemoryLimit","class":"OC\\MemoryInfo","type":"->","args":[]},{"file":"\/mnt\/ssd\/nextcloud\/server\/settings\/Controller\/CheckSetupController.php","line":695,"function":"isMemoryLimitSufficient","class":"OC\\MemoryInfo","type":"->","args":[]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":170,"function":"check","class":"OC\\Settings\\Controller\\CheckSetupController","type":"->","args":[]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Settings\\Controller\\CheckSetupController"},"check"]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/AppFramework\/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Settings\\Controller\\CheckSetupController"},"check"]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Settings\\Controller\\CheckSetupController","check",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"settings.CheckSetup.check"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"settings.CheckSetup.check"}]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"settings.CheckSetup.check"}]},{"file":"\/mnt\/ssd\/nextcloud\/server\/lib\/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/settings\/ajax\/checksetup"]},{"file":"\/mnt\/ssd\/nextcloud\/server\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/mnt\/ssd\/nextcloud\/server\/lib\/private\/MemoryInfo.php","Line":79},"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko\/20100101 Firefox\/70.0","version":"17.0.0.9"}

What is going wrong? i can make-up something about floats and ints but not sure how to fix this.

There is a search function available in the upper right corner of the screen which helped me to find this solution :wink:

1 Like