Jump to content

Recommended Posts

Posted

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?

Posted

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

  • 3 months later...
  • 2 weeks later...
Posted
On 8/28/2020 at 8:38 PM, sobrenome said:

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;

 

  • 9 months later...
Posted (edited)

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 by sadams101
Posted (edited)

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 by sadams101
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...