• WordPress version: 3.5–pt_BR

    WordPress SEO version: 13.4.1

    I did this: i’m using relatives urls
    $filters = array(‘home_url’,’post_link’,’post_type_link’,’page_link’,
    ‘attachment_link’,’get_shortlink’,’post_type_archive_link’,’get_pagenum_link’,’get_comments_pagenum_link’,’term_link’,’search_link’,’day_link’,’month_link’,’year_link’);
    foreach( $filters as $filter ){
    add_filter( $filter, ‘wp_make_link_relative’ );
    }

    I expected the plugin to do this: what it usualy do

    Instead it did this: it’s returning 2 errors
    – Undefined index: scheme in \wp-content\plugins\wordpress-seo\frontend\class-opengraph.php on line 232
    – Undefined index: host in \wp-content\plugins\wordpress-seo\frontend\class-opengraph.php on line 232

    I’ve make this change:

    // $img = $parsed_url[‘scheme’] . ‘://’ . $parsed_url[‘host’] . $img; // line 232
    $img = ‘http’. ( isset($_SERVER[‘HTTPS’]) && (‘on’ == strtolower($_SERVER[‘HTTPS’]) || ‘1’ == $_SERVER[‘HTTPS’] || ‘443’ == $_SERVER[‘SERVER_PORT’]) ? ‘s’ : ” ) .’://’ . $_SERVER[‘HTTP_HOST’] . $img;

    this is ok or there’s a better way to fix it?

    Thanks,

    Raphael Ramos

    http://wordpress.org/extend/plugins/wordpress-seo/

  • The topic ‘Problem with Undefined index: scheme and Undefined index: host’ is closed to new replies.