Undefined index: QUERY_STRING in viewer_functions.php on line 289

5 posts by 2 authors in: Forums > CMS Builder
Last Post: August 31, 2010   (RSS)

By rcrofoot - August 31, 2010

Hello-

I am executing a php file containing cms builder code via the linux shell and get this error for every record processed:

Notice: Undefined index: QUERY_STRING in /usr/www/users/decaro/kellyassociates/decaro/cmsAdmin/lib/viewer_functions.php on line 289

When the php code is run as a url in my browser, everything is fine...

In either case the desired result is correct, so I'm not all that concerned about the errors, but was wondering if you knew offhand what this is all about...

Thanks, Rick

Re: [rcrofoot] Undefined index: QUERY_STRING in viewer_functions.php on line 289

By Chris - August 31, 2010

Hi Rick,

Which version of CMS Builder are you using?
All the best,
Chris

Re: [chris] Undefined index: QUERY_STRING in viewer_functions.php on line 289

By rcrofoot - August 31, 2010

Version 1.09

Re: [rcrofoot] Undefined index: QUERY_STRING in viewer_functions.php on line 289

By Chris - August 31, 2010

Hi Rick,

Wow, that's an old version! :)

I believe this is fixed in the latest version of CMS Builder, but if you'd like you can make the change to your own installation. Open up cmsAdmin/lib/viewer_functions.php in a text editor and find line 298. It'll look like this:

$urlDataFields = array(@$_SERVER["PATH_INFO"], $_SERVER["QUERY_STRING"]);

... add an @ here:

$urlDataFields = array(@$_SERVER["PATH_INFO"], @$_SERVER["QUERY_STRING"]);

I hope this helps! Please let me know if you have any questions.
All the best,
Chris