Archived topic
Undefined index: scheme error coming from GP Premium
5 replies · Started by Rebecca on February 11, 2022
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?
Hi Leo,
Let me know if this screenshot works:
https://drive.google.com/file/d/1GWVLIeLR_rWjmS8c2amxvP28ZQ8QI36g/view?usp=sharing
I copied the code from line 4975 flagged in the screenshot - not sure if that's correct.
Thanks!
Becki
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.