Site logo

Archived topic

Undefined index: scheme error coming from GP Premium

5 replies · Started by Rebecca on February 11, 2022

Viewing posts 1–6 of 6

Hello,

I’m getting an “Undefined index: scheme error message” on the mobile version of my site. According to query monitor it’s coming from GP Premium plugin. I’ve deactivated all plugins and it goes away, and comes back when activating GP Premium only.

Could it be possible that it’s because I’m on a staging site right now? My logo is hosted in my main image folder for the live site, but the URL it links to right now is the staging site.

The code causing the problem appears to be:

if ( isset( $image_path['scheme'] ) && ( $image_path['scheme'] !== $site_url['scheme'] ) ) {
		$path = str_replace( $image_path['scheme'], $site_url['scheme'], $path );
	}

I'm providing private login info below to view staging site.

Thanks!
Becki

Hi Becki,

This sounds strange.

I just searched for the code you've provided above and it isn't part of GP Premium.

Can you confirm?

Can you try fix this issue first and see if helps?

Could it be possible that it’s because I’m on a staging site right now? My logo is hosted in my main image folder for the live site, but the URL it links to right now is the staging site.

I think that was the issue! I changed the logo path and it seems to be working now.

Glad to hear.

This archived topic is closed to new replies.