View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20867 | Bug reports | Expression Manager | public | 2026-11-19 03:53 | 2026-11-19 03:53 |
| Reporter | macwinnie | Assigned To | |||
| Priority | none | Severity | crash | ||
| Status | new | Resolution | open | ||
| Product Version | 7.11.x | ||||
| Summary | 20867: PHP 8.5 deprecation: preg_match() receives null during validation of an irrelevant question group | ||||
| Description | When navigating through a survey, ExpressionScript may call
The error occurs in:
The relevant code is:
The function does not handle One reproducible scenario involves a question group that becomes irrelevant based on an answer in a preceding group. The irrelevant group contains a mandatory question with a regular-expression validation rule. | ||||
| Steps To Reproduce | Steps To Reproduce
Actual ResultThe survey navigation triggers a PHP deprecation warning:
The stack trace includes:
Expected ResultIrrelevant question groups should be skipped without PHP warnings. Regardless of whether validation expressions are evaluated for irrelevant questions, Suggested FixAdd an explicit null check before calling
This prevents the deprecation warning without changing the behavior for non-null inputs. Additional InformationThe issue was observed while skipping an irrelevant group containing mandatory questions with validation expressions. The underlying problem is not specific to the regular expression or question names. Any call to | ||||
| Tags | No tags attached. | ||||
| Bug heat | 0 | ||||
| Complete LimeSurvey version number (& build) | 7.11.0+261116 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | MariaDB 13.0.2 | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 8.5.12 | ||||
| Git branch / Pull Request URL | |||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-19 03:53 | macwinnie | New Issue |