Support » Plugin: Open Graph and Twitter Card Tags » PHP File not found warning with local image in post

  • I have wordpress setup, such that the site home URL is http://www.abc.com while the site url is http://www.abc.com/wp

    This leads to a problem with a single image in a post that I referenced as local image
    /wp/wp-content/uploads/…/image.jpg

    This gives me an error message from the plugin because the plugin inserts a second /wp/ into the path taken from the site url which already contains the /wp/

    i hotfixed the code around line 640 of the main plugin php to something like this:

    `else {
    //Partial URL – we guess it’s onsite because no http(s)://
    //SOS –> FIX use home_url instead of site_url
    $imagetemp=home_url().$image;
    $imagetempsize=(`

    I would of course hope that you will fix the plugin to contain this change.

    https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/

  • The topic ‘PHP File not found warning with local image in post’ is closed to new replies.