Installing Version 3.0.4 on a clean CE Phoenix v1.0.8.4 will produce a PHP-notice regarding undefined Index in file:
includes\apps\ultimate_seo_urls\main\bootstrap.php on line 131
To get rid of the notice->
Change the line 131 from:
$get_array = (strlen( $_SERVER['QUERY_STRING'] ) > 0) ? explode( '&', $_SERVER['QUERY_STRING'] ) : false;
to:
$get_array = (isset($_SERVER['QUERY_STRING']) && strlen( $_SERVER['QUERY_STRING'] ) > 0) ? explode( '&', $_SERVER['QUERY_STRING'] ) : false;
Ultimate SEO Urls
Version 3.0.4 on CE Phoenix v1.0.8.4, Undefined Index. - Ultimate SEO Urls
Version 3.0.4 on CE Phoenix v1.0.8.4, Undefined Index.
Long time oscommerce user in transit to phoenix_cart
Are there more Swedish users out there - get in touch!
Are there more Swedish users out there - get in touch!
-
beppe34
- Member
- Posts: 13
- Joined: Thu Apr 01, 2021 7:26 am
- Phoenix Version:
- Contact:
Re: Version 3.0.4 on CE Phoenix v1.0.8.4, Undefined Index.
Thank you. I'm not receiving that error. Under what circunstances does it show up?
-
Piernas
- Member
- Posts: 98
- Joined: Thu Mar 11, 2021 2:16 am
- Phoenix Version:
- Contact:
Re: Version 3.0.4 on CE Phoenix v1.0.8.4, Undefined Index.
Hi,
It is not an error, it is a PHP-Notice.
The notice appears if the array variable $_SERVER does not contain key 'QUERY_STRING'.
In this case the line 131 will produce this notice.
Since the code are trying to get length of the value in $_SERVER with key 'QUERY_STRING' that does not exists.
By adding a check for the existence of the key first with an AND operator the evaluation will return false before checking length of the non existing value.
It is not an error, it is a PHP-Notice.
The notice appears if the array variable $_SERVER does not contain key 'QUERY_STRING'.
In this case the line 131 will produce this notice.
Since the code are trying to get length of the value in $_SERVER with key 'QUERY_STRING' that does not exists.
By adding a check for the existence of the key first with an AND operator the evaluation will return false before checking length of the non existing value.
Long time oscommerce user in transit to phoenix_cart
Are there more Swedish users out there - get in touch!
Are there more Swedish users out there - get in touch!
-
beppe34
- Member
- Posts: 13
- Joined: Thu Apr 01, 2021 7:26 am
- Phoenix Version:
- Contact: