Latest Google login plugin show error message.
Google Login Plugin v. 1.3.4 | Php 7.4 | Epsilon
Error log - - [03-Dec-2024 01:56:57 Asia/Kolkata] PHP Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A000126:SSL routines::unexpected eof while reading in /home/u9x3x2x1x1/domains/xyz.com/public_html/oc-content/plugins/google_login/model/ModelGGL.php on line 258
How to fix. Currently G login working fine but this error log generated.
// Osclass Profile Picture
if(osc_version() >= 420) {
$user = User::newInstance()->findByPrimaryKey($user_id);
// Do not update profile picture, if one is already defined.
if($user['s_profile_img'] <> '') {
//@unlink(osc_content_path() . 'uploads/user-images/' . $user['s_profile_img']);
return false;
}
$image_name = $user_id . '_' . osc_generate_rand_string(5) . '_' . date('Ymd') . '.' . $ext;
$image_url = osc_content_url() . 'uploads/user-images/' . $image_name;
$image_path = osc_content_path() . 'uploads/user-images/' . $image_name;
//$res = move_uploaded_file($file['tmp_name'], $image_path);
$res = copy($img_url, $image_path); < ---- 258 line code
if($res) {
User::newInstance()->updateProfileImg($user_id, $image_name);
}
}
}