Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 20, 20204 yr I changed my PHP version to 7.4 and my current IPS version is 4.4.6. Do this version supports PHP 7.4? What are the drawbacks of upgrading to PHP 7.4 with my current IPS version? What things will break?
May 20, 20204 yr If I recall correctly, PHP 7.4 is not fully supported until our 4.5 version is released.
May 20, 20204 yr Author Currently everything seems working fine for me with PHP 7.4 as of now. I upgraded to 7.4 yesterday itself. Also changed my forum from http to https. Currently experiencing user profile picture broken as its still loading from http link
August 29, 20204 yr The only problem I have noticed so far is that the upload limit is 7MB, even if I set higher values in php config file.
September 15, 20204 yr You need to check other options, such as the post_max_size limit. Yes, it is set to 8MB. And max_file_uploads set to 20.
September 15, 20204 yr The only problem I have noticed so far is that the upload limit is 7MB, even if I set higher values in php config file. The behavior has changed in 4.5 as uploading supports chunking now. This was how 4.4.x handled the max size. $potentialValues = array(); if( (float) ini_get('upload_max_filesize') > 0 ) { $potentialValues[] = \IPS\File::returnBytes( ini_get('upload_max_filesize') ); } if( (float) ini_get('post_max_size') > 0 ) { $potentialValues[] = \IPS\File::returnBytes( ini_get('post_max_size') ) - 1048576; } if( (float) ini_get('memory_limit') > 0 ) { $potentialValues[] = \IPS\File::returnBytes( ini_get('memory_limit') ); } $this->maxChunkSize = min( $potentialValues ) / 1048576;
September 16, 20204 yr Great! Just waiting Mail Bouncer to upgrade to 4.5! Will Gallery have the same benefit?
July 13, 20213 yr I tried switching my site to use PHP 7.4 in cPanel but got 500 server errors. Strangely, it worked fine on my test site on the same server, but there is no load or traffic on the test site. Any ideas about what could be the issue? Does anyone know what PHP.INI settings I should use for things like memory_limit , post_max_size, etc? PS - I'm using Invision Community v4.5.4.2 Edited July 13, 20213 yr by sadams101
July 19, 20213 yr I got it going, finally, on PHP 7.4. The issue I had is that Redis was not properly set up for PHP 7.4, which caused the 500 server errors. Once I fixed that, it switched over without issues. Edited July 20, 20213 yr by sadams101