CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • Preg match error when non-admin user clicks webform submissions tab
Pages: [1]

Author Topic: Preg match error when non-admin user clicks webform submissions tab  (Read 401 times)

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Preg match error when non-admin user clicks webform submissions tab
March 19, 2015, 02:59:47 pm
Hi all,

Strange error today.
Using Webform 7.x-4.4 (upgrading tonight).  Same error after upgrade.
Webform Civicrm integration 7.x-4.10.

Webform has civicrm integration enabled just to display the display name instead of the username.

When admin clicks on a webform submission tab, all results display normally including column with civicrm display name.
When a non-admin user clicks on a webform submission tab, all results display normally except for the blank column with civicrm display name.

For every submission, I get the error:
Warning: preg_match() expects parameter 2 to be string, array given in webform_civicrm_preprocess_webform_results_submissions() (line 402 of /sites/all/modules/webform_civicrm/webform_civicrm.module).

So since the form was submitted 11 times, I get the error 11 times.

All other submission info displays correctly and there are no issues with the administrator, even if I change themes.

Any ideas?

Upon further inspection, this may or may be a duplicate (or related) to this:
http://forum.civicrm.org/index.php/topic,35111.0.html
« Last Edit: March 20, 2015, 07:28:15 am by pmoz »

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Preg match error when non-admin user clicks webform submissions tab
March 20, 2015, 05:11:13 am
After more testing, discovered that if I give the user "Edit All Webform Submissions" permission, the errors go away.  Which would explain why the admin sees no errors.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • Preg match error when non-admin user clicks webform submissions tab

This forum was archived on 2017-11-26.