just install Recruiter without any error in installation, but when press My account link or try to add some personal data to my profile this error appear :

    Warning: Invalid argument supplied for foreach() in element_children() (line 6370 of D:\wamp\www\rec\includes\common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 5837 of D:\wamp\www\rec\includes\common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 5847 of D:\wamp\www\rec\includes\common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 5885 of D:\wamp\www\rec\includes\common.inc).
    Warning: Illegal string offset '#printed' in drupal_render() (line 5892 of D:\wamp\www\rec\includes\common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6370 of D:\wamp\www\rec\includes\common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 5837 of D:\wamp\www\rec\includes\common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 5847 of D:\wamp\www\rec\includes\common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 5885 of D:\wamp\www\rec\includes\common.inc).
    Warning: Illegal string offset '#printed' in drupal_render() (line 5892 of D:\wamp\www\rec\includes\common.inc).
Files: 
CommentFileSizeAuthor
rec_error.png64.95 KBwaleedmohsen

Comments

Same here with these errors when trying to add personal information on my resume. Any help would be appreciated.

Warning: Invalid argument supplied for foreach() in element_children() (line 6400 of C:\wamp\www\recruiter\includes\common.inc).
Warning: Illegal string offset '#children' in drupal_render() (line 5867 of C:\wamp\www\recruiter\includes\common.inc).
Warning: Illegal string offset '#children' in drupal_render() (line 5877 of C:\wamp\www\recruiter\includes\common.inc).
Warning: Illegal string offset '#children' in drupal_render() (line 5915 of C:\wamp\www\recruiter\includes\common.inc).
Warning: Illegal string offset '#printed' in drupal_render() (line 5922 of C:\wamp\www\recruiter\includes\common.inc).

to fix these errors you have to do couple of things:

  1. in profiles\recruiter\themes\cloudy\templates\field-collection-item--field-resume-personal-info.tpl.php
    comment out
    print render($content);
  2. in profiles\recruiter\modules\recruiter_features\recruiter_resume\profile2--resume.tpl.php
    add at the top in php tags
    unset($content['field_resume_state_info']);

errors should go away now. For the first part, everything is rendered when come to the last render($content) and in $content is left some garbage. As for second part, garbage is removed at the beginning.

Audrius

Issue summary:View changes

remove image link

Issue summary:View changes

Related issue: in module commons_events, equivalent error messages were triggered by a migration from PHP 5.3 to 5.4 and fixed in #1995834: PHP 5.4 Attend an Event page errors to screen in comment #13.