View Issue Details

This bug affects 2 person(s).
 18
IDProjectCategoryView StatusLast Update
19017Bug reports_ Unknownpublic2024-03-10 15:08
Reportertassoman Assigned To 
PrioritynormalSeverityminor 
Status acknowledgedResolutionopen 
Product Version5.6.x 
Summary19017: Various PHP 8.1 deprecations in 5.6.x
Description

After installing 5.6.x latest zip under PHP 8.1 thereare lot of PHP warning deprecations

Steps To Reproduce

Steps to reproduce

  1. launch a PHP 8.1 installation
  2. start limesurvey having a 3.x database
  3. start upgrade process (but you can find it directly inside homepage)
  4. must have not English as default language
  5. try to change user's password
  6. visit admin homepage

Expected result

No PHP warnings

Actual result

I got PHP Warnings during procedure.

Homepage and upgrade process:

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /opt/app-root/src/vendor/yiisoft/yii/framework/i18n/gettext/CGettextMoFile.php on line 117

Change password process:
Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/app-root/src/application/libraries/PluginManager/Storage/DbStorage.php on line 27

Admin Homepage:
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /opt/app-root/src/application/models/Survey.php on line 1171

Survey Administration page:

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /opt/app-root/src/vendor/yiisoft/yii/framework/i18n/gettext/CGettextMoFile.php on line 117

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/app-root/src/application/helpers/common_helper.php on line 4740

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/app-root/src/application/models/Survey.php on line 856

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/app-root/src/application/helpers/common_helper.php on line 4740

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/app-root/src/application/controllers/SurveyAdministrationController.php on line 2817

TagsNo tags attached.
Attached Files
Bug heat18
Complete LimeSurvey version number (& build)5.6.33+230808
I will donate to the project if issue is resolvedNo
Browserany
Database type & versionmariadb 10
Server OS (if known)Docker ubi9/php81
Webserver software & version (if known)apache 2.4
PHP Version8.1.14

Users monitoring this issue

mikerogerz, tassoman

Activities

tassoman

tassoman

2023-08-08 18:51

reporter   ~76493

I found this, for example:
https://github.com/LimeSurvey/LimeSurvey/pull/2878/files#diff-cb9c50e9bd94ff7c5ca1ce797fea3af200200ee2ab1363659aa1d0169ae1c458R27

Maybe can be backported to 5.x branch?

c_schmitz

c_schmitz

2023-08-15 09:15

administrator   ~76588

It is currently not planned to support PHP 8.1 for version 5.
See https://manual.limesurvey.org/Installation_-_LimeSurvey_CE/en#Make_sure_you_can_use_LimeSurvey_on_your_website

tassoman

tassoman

2023-08-22 11:23

reporter   ~76666

LS 5.x branch is planned to be supported all around 2024, in this case, at last PHP8.1 is needed, will go EOL in the end of 2024.
PHP8.0 is going to be EOL eary in 3 months, 26 Nov 2023.

Skotos

Skotos

2023-09-20 02:12

reporter   ~77192

Version 6.2.5 still has the issue with Survey:php line 1171.

image.png (24,543 bytes)   
image.png (24,543 bytes)   
DenisChenu

DenisChenu

2023-09-20 08:44

developer   ~77193

@Skotos : you must report it separatly for 6.X please.

Issue History

Date Modified Username Field Change
2023-08-07 13:44 tassoman New Issue
2023-08-07 13:44 tassoman File Added: Screenshot 2023-08-07 at 13-36-31 Questionari e sondaggi.png
2023-08-07 13:44 tassoman Issue Monitored: tassoman
2023-08-07 13:44 tassoman Bug heat 0 => 2
2023-08-07 13:47 ollehar Priority none => normal
2023-08-08 18:51 tassoman Note Added: 76493
2023-08-08 18:51 tassoman Bug heat 2 => 4
2023-08-15 09:15 c_schmitz Note Added: 76588
2023-08-15 09:15 c_schmitz Bug heat 4 => 6
2023-08-22 11:23 tassoman Note Added: 76666
2023-08-23 15:03 gabrieljenik Status new => acknowledged
2023-09-20 02:12 Skotos Note Added: 77192
2023-09-20 02:12 Skotos File Added: image.png
2023-09-20 02:12 Skotos Bug heat 6 => 8
2023-09-20 08:44 DenisChenu Note Added: 77193
2023-09-20 08:44 DenisChenu Bug heat 8 => 10
2024-03-10 15:08 mikerogerz Issue Monitored: mikerogerz
2024-03-10 15:08 mikerogerz Bug heat 10 => 12
2024-03-10 15:09 guest Bug heat 12 => 18