File_get_contents() not working

Issue Summary

file_get_contents() (trying to get an svg uploaded to the media library) is throwing the following error:

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 ...

I’m on the latest version of Local on macOS Big Sur 11.6

Any idea how to fix this?

edit: a workaround is file_get_contents(get_attached_file($file));

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.