Error message after creating new user account

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 17, 2010   (RSS)

Re: [zip222] Error message after creating new user account

By Chris - February 16, 2010

Hi zip222,

We've got a fix for this problem, but it hasn't been released quite yet. I have three options for you in order from slowest to fastest:

(1) Wait until the next CMS Builder is released and upgrade it.

(2) Fill out a second-level support ticket at http://www.interactivetools.com/support/ and mention in the comments "for chris" and the URL to this forum thread post.

(3) Make the change yourself by editing admin/lib/viewer_functions, searching for "http_build_query" to find the right spot, and replacing this code:

// pass query arguments forward in page links - use http_build_query to support multi-value fields, like this: ?colors[]=red&colors[]=blue&etc...
$filteredRequest = $_REQUEST;
unset( $filteredRequest['page'] );
$extraQueryArgs = http_build_query($filteredRequest, '', '&') . '&';
$extraQueryArgs = preg_replace('/%5B\d+%5D/i', '[]', $extraQueryArgs); // replace colors[0], colors[1] with colors[], see: http://php.net/manual/en/function.http-build-query.php#77377
$extraPathInfoArgs = str_replace(array('=','&'), array('-','/'), $extraQueryArgs);


...with this:

// pass query arguments forward in page links - use http_build_query to support multi-value fields, like this: ?colors[]=red&colors[]=blue&etc...
$filteredRequest = $_REQUEST;
unset( $filteredRequest['page'] );
$extraQueryArgs = http_build_query($filteredRequest);
if ($extraQueryArgs) { $extraQueryArgs .= '&'; }
$extraQueryArgs = str_replace('&', '&', $extraQueryArgs); // http_build_query doesn't support 3rd argument until PHP 5.1.2
$extraQueryArgs = preg_replace('/(%5B|\[)\d+(\]|%5D)/i', '[]', $extraQueryArgs); // square brackets get escaped as of PHP 5.1.3 - replace colors[0], colors[1] with colors[], see: http://php.net/manual/en/function.http-build-query.php#77377
$extraPathInfoArgs = str_replace(array('=','&'), array('-','/'), $extraQueryArgs);


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

Re: [chris] Error message after creating new user account

By zip222 - February 17, 2010

That worked. Thanks.