I keep recieving this error
warning: htmlspecialchars() expects parameter 1 to be string, array given in portal/demo/includes/bootstrap.inc on line 597.
Not sure what I can do about it but it does lock out those options just displays that error also!
~Simon
Comments
Comment #1
Cainan commentedcan you give me more info on what types of fields you are locking, so that i can reproduce the error?
Comment #2
AmirTheSeventh commentedthe same error here! type of field is date. it looks other fields without problem, when i add the date field, the error apears.
Comment #3
AmirTheSeventh commentedBy the way here is the exact error message:
warning: htmlspecialchars() expects parameter 1 to be string, array given in /public_html/am/includes/bootstrap.inc on line 609.
Comment #4
dave kopecekIs this PHP version related ? I'm getting different errors using PHP 4 and 5.
On form /user/n/edit submit, for non-admin user. Only happens with with signature denied (name,email,password,theme, language, picture,timezone can all be denied)
On PHP 4.3 Using Drupal 5 patch submitted by nkoponen on January 28, 2007 - 04:57 I get the following error:
warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/httpd/..removed../includes/bootstrap.inc on line 588.
htmlspecialchars /home/httpd..removed../includes/bootstrap.inc: 588
check_plain /home/httpd..removed../includes/form.inc: 1448
theme_textarea
call_user_func_array /home/httpd..removed../includes/theme.inc: 170
theme /home/httpd..removed../includes/common.inc: 2160
drupal_render /home/httpd..removed../includes/common.inc: 2150
drupal_render /home/httpd..removed../includes/common.inc: 2150
drupal_render /home/httpd..removed../includes/form.inc: 474
drupal_render_form /home/httpd..removed../includes/form.inc: 99
drupal_get_form
call_user_func_array /home/httpd..removed../includes/menu.inc: 418
menu_execute_active_handler /home/httpd..removed../index.php: 15
On PHP 5.0 Using Drupal 5 patch submitted by nkoponen on January 28, 2007 - 04:57
Can not deny: timezone , signature
Can Deny: picture
Fatal error: Cannot use string offset as an array in C:\www\drupal5\sites\all\modules\user_readonly\user_readonly.module on line 205
line 205: $form[$group][$key]['#attributes']['disabled']= true;
Comment #5
Cainan commentedi have corrected this issue, though probably not in the best means possible.
more complex fields, password anbd date fields are now simply removed from the form.
this will be a part of teh 5.0 release in a day or so.
Comment #6
pablo_j_gm commentedDrupal 4.7.5
Apache 2.2.x
PHP 5.1
Still getting htmlspecialchars error. I think is just when deny date fields. Was is totally solved?