Announcement

#1 2023-12-21 16:59:37

OpenPicture
Member
2023-12-19
44

[Plugin] Crypto Captcha

Hello,

I have the following error with the extension Crypto Captcha in Piwigo 140.0 with PHP 8.1:

PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /plugins/CryptograPHP/securimage/securimage.php on line 2202

Here is the line 2202 :
for($i = 0; $i < $length; ++$i) {
    $letter    = $code['display']{$i};
    $letters[] = $letter;
}

I replaced the code with:

for ($i = 0; $i < $length; ++$i) {
    $letter    = $code['display'][$i];
    $letters[] = $letter;
}

and the error dispappeared.

But there are more errors with PHP 8.1 (in PHP 7.4, there is no error):

PHP Deprecated:  Implicit conversion from float 61.54649236782528 to int loses precision in /plugins/CryptograPHP/securimage/securimage.php on line 2061 :

Here is the line 2061 :
for ($i = 0; $i < $n; ++ $i) {
     $x = $x0 + $i * $dx + $amp * $dy * sin($k * $i * $step + $phi);
     $y = $y0 + $i * $dy - $amp * $dx * sin($k * $i * $step + $phi);
     imagefilledrectangle($this->im, $x, $y, $x + $lwid, $y + $lwid, $this->gdlinecolor);
}

Could you help with this one?

Offline

 

#2 2023-12-27 15:05:00

OpenPicture
Member
2023-12-19
44

Re: [Plugin] Crypto Captcha

Would anyone here have time to say something about this or maybe help resolve the issue with this plugin?

Offline

 

#3 2023-12-27 21:00:24

OpenPicture
Member
2023-12-19
44

Re: [Plugin] Crypto Captcha

When I switch on and off in admin/Plugins the Crypto Captcha plugin I also get the following error:

PHP Deprecated:  Using php-function "trim" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in /include/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php on line 114
PHP Deprecated:  Using php-function "strtolower" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in /include/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php on line 114
PHP Deprecated:  Using php-function "md5" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in /include/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php on line 114

Offline

 

#4 2024-02-06 23:13:03

rocket
Translation Team
2012-07-06
12

Re: [Plugin] Crypto Captcha

Hi! Did you resolve this issue?
In my case there are no errors in logs at all. It just not rendering on user registration page.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact