CMS Builder v2.53 Released (Apr 4)

6 posts by 4 authors in: Forums > CMS Builder
Last Post: May 31, 2013   (RSS)

By gkornbluth - April 11, 2013

Hi Dave,

I just upgraded to 2.53 on a number of sites and when click on save details in a single record editor’s field list, (on at least the 3 sites I checked) I get the following error (with different path info of course) in both FireFox 20 and IE9:

Notice: Undefined index:  _listPage in /hsphere/local/home/a878277/strykinggourds.com/cmsAdmin/lib/menus/database/editTable_functions.php on line 218

Just thought you’d like to know.

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Dave - April 16, 2013

Thanks Jerry, 

I've fixed that for the next version.  If you want to try and apply the fix yourself just follow these steps:

- Open lib/menus/database/editTable_functions.php
- Search for: startsWithHttpOrSlash
- Add a @ before $_REQUEST[$name] (shown in red in the following code):

    $startsWithHttpOrSlash = preg_match("|^(\w+:/)?/|", @$_REQUEST[$name]);
    if (@$_REQUEST[$name] && !$startsWithHttpOrSlash) { $errors .= t("$label must start with /") . "<br/>\n"; }

Let me know if that works for you.  Thanks!

Dave Edis - Senior Developer
interactivetools.com

By gkornbluth - April 17, 2013 - edited: April 17, 2013

Thanks Dave,

Doesn't look like it breaks anything so I'll wait for 2.54

Jerry

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By degreesnorth - May 27, 2013

Hi

I've tried to find this in the code as per your details and can't find it.  I've just upgraded to v2.53 and am getting this message (and the website page isnt' displaying correctly"

Notice: Undefined index: _listPage in
/clientdata/n5200-2-dynamic/a/w/awesomechurch.com/www/cmsAdmin/lib/menus/database/editTable_functions.php
on line 218 Warning: Cannot modify header information - headers already sent by
(output started at
/clientdata/n5200-2-dynamic/a/w/awesomechurch.com/www/cmsAdmin/lib/menus/database/editTable_functions.php:218)
in
/clientdata/n5200-2-dynamic/a/w/awesomechurch.com/www/cmsAdmin/lib/menus/header.php
on line 2



Any ideas on how to fix this?




Thanks

By Jason - May 31, 2013

Hi,

Here is a patch to resolve this issue.

Open up cmsAdmin/lib/menus/database/editTable_functions.php

On line 218, you should see this line:

$startsWithHttpOrSlash = preg_match("|^(\w+:/)?/|", $_REQUEST[$name]);

Add an "@" to the $_REQUEST variable like this:

$startsWithHttpOrSlash = preg_match("|^(\w+:/)?/|", @$_REQUEST[$name]);

This should take care of the error for you.  This fix will be available in the next release.

Hope this helps

---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/