Support » Plugin: Photo Gallery by 10Web - Mobile-Friendly Image Gallery » Undefined index: QUERY_STRING photo_gallery.php line 244

  • Resolved almh

    (@asha2012)


    Gives me the line to fix it, but I have no idea how. It’s definitely referencing this plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • almh

    (@asha2012)

    Here’s the section that’s causing the error. It’s the line that says “$current_relative_url=”…

    ====================================================

    /**
    * Add noindex/nofollow to custom posts to not allow search engines to index custom posts.
    */
    public function robots() {
    if ( isset($this->options->noindex_custom_post) && $this->options->noindex_custom_post ) {
    global $wp;
    $current_relative_url = trailingslashit(add_query_arg($_SERVER[‘QUERY_STRING’], ”, trailingslashit($wp->request)));
    if ( strpos($current_relative_url, ‘bwg_gallery’) !== FALSE
    || strpos($current_relative_url, ‘bwg_album’) !== FALSE
    || strpos($current_relative_url, ‘bwg_tag’) !== FALSE ) {
    echo ‘<meta name=”robots” content=”noindex,nofollow” />’ . “\n”;
    }
    }
    }

    Plugin Support Suzie

    (@suziekh)

    Hi,

    We are sorry for the inconvenience.

    Please be informed that we are going to launch an update this week.

    Thanks for your patience and understanding.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined index: QUERY_STRING photo_gallery.php line 244’ is closed to new replies.