Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Undefined index: QUERY_STRING in viewer_functions.php on line 289

 

 


rcrofoot
User

Aug 31, 2010, 9:18 AM

Post #1 of 5 (1915 views)
Shortcut
Undefined index: QUERY_STRING in viewer_functions.php on line 289 Can't Post

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


Chris
Staff


Aug 31, 2010, 11:33 AM

Post #2 of 5 (1909 views)
Shortcut
Re: [rcrofoot] Undefined index: QUERY_STRING in viewer_functions.php on line 289 [In reply to] Can't Post

Hi Rick,

Which version of CMS Builder are you using?
Chris


rcrofoot
User

Aug 31, 2010, 2:08 PM

Post #3 of 5 (1900 views)
Shortcut
Re: [chris] Undefined index: QUERY_STRING in viewer_functions.php on line 289 [In reply to] Can't Post

Version 1.09


Chris
Staff


Aug 31, 2010, 2:50 PM

Post #4 of 5 (1898 views)
Shortcut
Re: [rcrofoot] Undefined index: QUERY_STRING in viewer_functions.php on line 289 [In reply to] Can't Post

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:


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


... add an @ here:


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


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


rcrofoot
User

Aug 31, 2010, 5:30 PM

Post #5 of 5 (1889 views)
Shortcut
Re: [chris] Undefined index: QUERY_STRING in viewer_functions.php on line 289 [In reply to] Can't Post

Thanks Chris...That did it...!!!

Rick