PHP SSL warnings with exif_imagetype() and file_get_contents()

What issue or error are you experiencing?

I am getting the following PHP warnings specifically when using the BuddyBoss theme in local development. Can anyone offer some explanation about what could be happening here so I can either troubleshoot on my end or pass along notes to the theme developers? Thanks!

Warning: exif_imagetype(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3332

Warning: exif_imagetype(): Failed to enable crypto in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3332

Warning: exif_imagetype(https://gofor.ltd/wp-content/plugins/buddyboss-platform/bp-core/images/cover-image.png): Failed to open stream: operation failed in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3332

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3352

Warning: file_get_contents(): Failed to enable crypto in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3352

Warning: file_get_contents(https://gofor.ltd/wp-content/plugins/buddyboss-platform/bp-core/images/cover-image.png): Failed to open stream: operation failed in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3352

Warning: exif_imagetype(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3332

Warning: exif_imagetype(): Failed to enable crypto in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3332

Warning: exif_imagetype(https://gofor.ltd/wp-content/plugins/buddyboss-platform/bp-core/images/cover-image.png): Failed to open stream: operation failed in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3332

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3352

Warning: file_get_contents(): Failed to enable crypto in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3352

Warning: file_get_contents(https://gofor.ltd/wp-content/plugins/buddyboss-platform/bp-core/images/cover-image.png): Failed to open stream: operation failed in /Volumes/EvanExtSSD/Local Sites/gofor/app/public/wp-includes/functions.php on line 3352```

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

System Details

  • Local Version:
    Version 9.1.0+6719

  • Operating System (OS) and OS version:
    MacOS 14.6.1

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

local-lightning.log (557.8 KB)
local-lightning-verbose.log (615.1 KB)

Hi @evanltd

Are you using the Preferred Local Environment? Or do you have a different configuration? I’m wondering if there is an issue with the version of PHP that the site is using.

Yes I am using the preferred environment currently, but I have also tried switching through every available PHP version and none resolve the issue.

Since the errors are calling out SSL/HTTPS, is your site secured? Here are some things you’ll want to check:

  • Using Site Domains as your Router Mode (Preferences>Advanced>Router Mode)

  • SSL is Trusted in Local

  • No plugins are conflicting

Thanks, yes to the site domains setting. Yes SSL is trusted. All plugins are disabled except for BuddyBoss Platform, which is required by the BuddyBoss Theme.

Kind of in a tough spot as far as tech support goes. I know it could be considered a “theme issue” but really it’s a theme issue that only occurs when running on Local.

I have experienced similar SSL errors in Local, specifically when using file_get_contents in a custom-developed theme. In that case I was able to work around it somehow…I believe I had to wrap file_get_contents inside another function, but can’t recall the details.

But this being a retail theme I don’t have the luxury/ability to mess around with it. I’m hoping something can either be fixed on the Local end, or that I can get a tip to relay back to the BuddyBoss developers if it’s something they would have to change.

To me it looks like the errors are unable to validate the SSL. You might try reaching out to the theme’s team and asking if there is a way to load resources locally or disable SSL verification during development. I would imagine many users develop with these items using other applications or Dev environments that aren’t secured. For example if you change your Router Mode to Localhost does the behavior continue? Preferences>Advanced>Router Mode