Hi, this problem I have found when I updated jetpack. I see many people get this warning
Warning: array_key_exists(): The first argument should be either a string or an integer in /srv/http/domain.com/wp-content/plugins/jetpack/modules/photon.php on line 183
I try to fix it then I did it ! but … I not sure the plugin can run smootly ( I mean work complete like it was before update ) or not. ok let’s check it out.
1. you have to download the file name ‘photon.php’ form the path that in the warning.
2. open it and find the line 183. you will see the code something like this:
if ( false == $width && false == $height ) {
$width = $src_per_wp[1];
$height = $src_per_wp[2];
$transform = 'fit';
} elseif ( isset( $size ) && array_key_exists( $size, $image_sizes ) && isset( $image_sizes[ $size ]['crop'] ) ) {
$transform = (bool) $image_sizes[ $size ]['crop'] ? 'resize' : 'fit';
}3. you put this code before that code in the second
f(gettype($size) == 'array')
{
$size = 'full';
}that’s it. easy
I hope this help you and I apologize my english skill. I try to do the best




