solved PHP upgrade issue

sbhadauria
@sbhadauria
7 years ago
129 posts
On updating PHP from 5.5.9 to7.1 we are getting error:

"error: jrCore_checktype: unable to load checktype plugins"
updated by @sbhadauria: 03/13/18 06:10:45AM
brian
@brian
7 years ago
10,136 posts
You need to make sure the jrCore/lib/checktype.php file exists on your server, or you need to restart your web server to reset the opcode caches.

I develop on PHP 7.1 and am aware of no issues with it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
sbhadauria
@sbhadauria
7 years ago
129 posts
Hi @brian After debugging I found that "mb_internal_encoding" is not set in php config that's why init function of jrCore include file was terminating before local config setup and register module features was not setting in global array. After setting "mb_internal_encoding" in php config site is working.

This code is not executing so I think you should use die:
jrCore_notice('Error', 'required PHP Multibyte String function (mb_internal_encoding) not found - enable in PHP config)');
brian
@brian
7 years ago
10,136 posts
sbhadauria:
This code is not executing so I think you should use die:
jrCore_notice('Error', 'required PHP Multibyte String function (mb_internal_encoding) not found - enable in PHP config)');

That means the function_exists() is true, so my guess is the multi byte functions were compiled in your PHP but had not been enabled. I'll see about checking for that.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags