Support » Plugin: ImageInject » cURL Error Number 77 when trying to inject an image

  • When I’m trying to inject an image, I get:

    flickr error: cURL Error Number 77: error setting certificate verify locations: CAfile: /wordpress/core/4.6.1/wp-content/plugins/wp-inject/cert/cacert.pem CApath: /etc/ssl/certs/

    According to :

    – – – – –
    Problem with reading the SSL CA cert (path? access rights?)
    – – – – –

    At first I thought there was something wrong with my web host (Pressable), but they investigated this issue and came to the following conclusion:

    – – – – –

    The problem is that this plugin is trying to load the cert relative to ABSPATH.
    With Pressable, ABSPATH only contains WordPress core files, and doesn’t include the plugin files.

    CAfile: /wordpress/core/4.6.1/wp-content/plugins/wp-inject/cert/cacert.pem

    This issue needs to be corrected by the plugin developer, as it is a design flaw.

    They either need to use WP_PLUGIN_DIR or plugin_dir_path() or even better use the WordPress built in cacert bundle in wp-includes/certificates/ca-bundle.crt

    It works on your other host only because most hosts have the plugins directory beneath ABSPATH, but not all hosts do.

    Using WP_PLUGIN_DIR will guarantee compatibility with all path configuration across different hosts.

    – – – – –

    So posting this in the support forum because 1) I want to help others with the same problem 2) I do not know of any other way to submit a feature request to the developers of this plugin.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘cURL Error Number 77 when trying to inject an image’ is closed to new replies.