View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20056Bug reportsOtherpublic2025-10-23 17:56
ReporterDenisChenu Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status ready for testingResolutionopen 
Product Version6.6.x 
Summary20056: debug:1 still send deprecated error
Description

When set debug 1 : in theory we have error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); but finally we get error_reporting(E_ALL)

Steps To Reproduce

Steps to reproduce

Import included plugin
Set debug 0 : OK
Set debug 2 : get error str_contains(): Passing null to parameter #2 ($needle) of type string is deprecated : OK
Set debug 1 :

Expected result

No error

Actual result

Show Deprecated
: str_contains(): Passing null to parameter #2 ($needle) of type string is deprecated in
/media/shnoulle/data/webdev/noplugin/upload/plugins/CheckDebug/CheckDebug.php

TagsNo tags attached.
Attached Files
CheckDebug.zip (1,241 bytes)
Bug heat4
Complete LimeSurvey version number (& build)6.12.3
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2025-04-09 17:03

developer   ~82405

Code of plugin

<?php
/**
 * CheckDebug 1 
 */
class CheckDebug extends PluginBase
{
    protected static $description = 'Check debug 1 : too test plugin : set debug 1 on config and load settings : no error must happen (deprecated function call)';
    protected static $name = 'CheckDebug';

    /** The settings : update in beforeSurveySettings **/
    protected $settings = array(
        'isDebug' => array(
            'type'=>'info',
            'content'=>'OK',
        )
    );

    /**
     * @see getPluginSettings
     */
    public function getPluginSettings($getValues = true)
    {
        str_contains('foobar', null);
        return parent::getPluginSettings($getValues);
    }
}
DenisChenu

DenisChenu

2025-07-11 18:38

developer   ~83075

https://github.com/LimeSurvey/LimeSurvey/pull/4363

tibor.pacalat

tibor.pacalat

2025-10-23 17:36

administrator   ~83653

How do I test this? I have installed the plugin and activated it. I have also set debug=2. Where should I go to trigger the error?

DenisChenu

DenisChenu

2025-10-23 17:56

developer   ~83654

  1. set debug= 1
  2. go to plugin manager/ configure plugin
  3. Since it's debug 1 : must not shown any error

But show deprecated error

debug=2 : error page : it's OK

Issue History

Date Modified Username Field Change
2025-04-09 17:02 DenisChenu New Issue
2025-04-09 17:02 DenisChenu File Added: CheckDebug.zip
2025-04-09 17:03 DenisChenu Note Added: 82405
2025-04-09 17:03 DenisChenu Bug heat 0 => 2
2025-04-09 17:03 DenisChenu Assigned To => DenisChenu
2025-04-09 17:03 DenisChenu Status new => assigned
2025-07-11 17:59 DenisChenu Summary debuig:1 still send deprecated error => debug:1 still send deprecated error
2025-07-11 18:38 DenisChenu Note Added: 83075
2025-07-11 18:39 DenisChenu Assigned To DenisChenu => gabrieljenik
2025-07-11 18:39 DenisChenu Status assigned => ready for code review
2025-10-23 00:18 gabrieljenik Assigned To gabrieljenik => tibor.pacalat
2025-10-23 00:18 gabrieljenik Status ready for code review => ready for testing
2025-10-23 17:36 tibor.pacalat Note Added: 83653
2025-10-23 17:36 tibor.pacalat Bug heat 2 => 4
2025-10-23 17:56 DenisChenu Note Added: 83654
2025-10-23 17:56 DenisChenu File Added: Capture d’écran du 2025-10-23 17-56-08.png