Ultimate SEO Urls

Undefined Query String - Ultimate SEO Urls

Undefined Query String

by radhavallabh » Fri Jul 15, 2022 9:42 am

Hi;
I am getting below error in logs-
Undefined index: QUERY_STRING in /xx/xx/includes/apps/ultimate_seo_urls/main/bootstrap.php on line 131

Regds./
radhavallabh
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Contact:

Re: Undefined Query String

by Piernas » Mon Jul 18, 2022 12:31 am

Is it happening on an specific page?
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: Undefined Query String

by radhavallabh » Sat Jul 23, 2022 6:20 am

Piernas wrote:Is it happening on an specific page?
It occurs in the error logs randomly when a link is clicked.
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Contact:

Re: Undefined Query String

by Piernas » Mon Jul 25, 2022 8:04 am

I would need to know what linsk are causing the issue to track what's happening. Do you have an idea?
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: Undefined Query String

by radhavallabh » Mon Jul 25, 2022 8:37 am

Piernas wrote:I would need to know what linsk are causing the issue to track what's happening. Do you have an idea?
It appears mostly on the index.php , product listing pages for me...
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Contact:

Re: Undefined Query String

by Piernas » Mon Jul 25, 2022 9:40 pm

Will look at the code. I'm not seeing it anywhere at the logs.
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: Undefined Query String

by Piernas » Mon Jul 25, 2022 9:46 pm

Can you change that line to:

Code: Select all

      $get_array = ( isset ($_SERVER['QUERY_STRING']) && strlen( $_SERVER['QUERY_STRING'] ) > 0 ) ? explode( '&', $_SERVER['QUERY_STRING'] ) : false;
and report back if error persists?
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: Undefined Query String

by radhavallabh » Fri Jul 29, 2022 6:16 am

Piernas wrote:Can you change that line to:

Code: Select all

      $get_array = ( isset ($_SERVER['QUERY_STRING']) && strlen( $_SERVER['QUERY_STRING'] ) > 0 ) ? explode( '&', $_SERVER['QUERY_STRING'] ) : false;
and report back if error persists?
Still the same errors appear dear
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Contact: