Page 1 of 1

deprecation warnings

Posted: Sat Dec 16, 2023 11:47 pm
by rotezecke
Hi,
i just updated to 2.2.19 and Php8.1

I now log these 4 messages with every request

Code: Select all

PHP Deprecated:  Return type of Captcha\config::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rpccomau/agents.rpc.com.au/modules/Captcha/lib/class.config.php on line 130
PHP Deprecated:  Return type of Captcha\config::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rpccomau/agents.rpc.com.au/modules/Captcha/lib/class.config.php on line 135
PHP Deprecated:  Return type of Captcha\config::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rpccomau/agents.rpc.com.au/modules/Captcha/lib/class.config.php on line 147
PHP Deprecated:  Return type of Captcha\config::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rpccomau/agents.rpc.com.au/modules/Captcha/lib/class.config.php on line 152
Is this a known issue or have I missed something?

----------------------------------------------

Cms Version: 2.2.19

Installed Modules:

CMSContentManager: 1.1.12
CMSMSExt: 1.4.5
CMSMailer: 6.2.14
Captcha: 1.0.1
DesignManager: 1.1.10
FileManager: 1.6.16
FilePicker: 1.0.7
FormBuilder: 1.2
LISE: 1.5.6
LISEaccommodationdb: 1.5.6
LISEcgblog: 1.5.6
MAMS: 1.0
ModuleManager: 2.1.9
Navigator: 1.0.10
RPCTools: 1.0.b.2
Search: 1.53
SmartImage: 1.1.0
SmartyExt: 1.3.0

Config Information:

php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Brisbane
permissive_smarty: true

Php Information:

phpversion: 8.1.26
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 30711
E_STRICT: 0
E_DEPRECATED: 8192
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 384M
max_execution_time: 90
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: Off (False)
curl: On

Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 0
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: On (True)
auto_clear_cache_age: On (True)
Server Information:

Server Software: Apache
Server Api: litespeed
Server Os: Linux 2.6.32-954.3.5.lve1.4.87.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.2.44
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:

tmp: /home/rpccomau/agents.rpc.com.au/tmp (0777)
tmp_cache: /home/rpccomau/agents.rpc.com.au/tmp/cache (0755)
templates_c: /home/rpccomau/agents.rpc.com.au/tmp/templates_c (0755)
modules: /home/rpccomau/agents.rpc.com.au/modules (0755)
uploads: /home/rpccomau/agents.rpc.com.au/uploads (0755)
File Creation Mask (umask): /home/rpccomau/agents.rpc.com.au/tmp/cache (0755)
config_file: 0444
----------------------------------------------

Re: deprecation warnings

Posted: Sun Dec 17, 2023 1:29 am
by DIGI3
Those don't appear to be from the core, it looks like they're from the Captcha third-party module. I don't know if the author has released a PHP 8.1 compatible version yet but you could post a BR here: http://dev.cmsmadesimple.org/bug/list/191

That said, it's generally recommended to disable deprecated warnings on production sites.