*

Ajit Sahane

  • ****
  • 158 posts
  • https://bestclassifiedsusa.com
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.

Code: [Select]
// 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);
    }
  } 
}

*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on Today at 01:36:02 PM
*

Ajit Sahane

  • ****
  • 158 posts
  • https://bestclassifiedsusa.com
After upgrade php 8.1 issue auto resolved.

Maybe php 7.4 have some bug. So, this error log generated.

Still 8.2 not fully compatible, because using few old plugins.

But 8.1 have a good compatibility compare to 8.2.

Anyway, this issue has been resolved now by upgrading.

Thanks for answering.

*

MB Themes

Looked like more related to SSL library.
Great to hear issue is resolved for you ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots