« Project home page
my little forum
Log in
Register
Search:
Back to the entry by vihuna
Post reply
Reply to the message by
vihuna
Name:
E-mail:
(optional, won't be displayed directly)
Leave this field empty:
Homepage:
(optional)
Leave this field empty:
Location:
(optional)
Remember me (cookie)
Category:
General
Project organisation
Technics
Design/Themes
Features
Development
Todo
Bugs
German / Deutsch
Spanish / Español
French / Français
Accessibility/UX
Subject:
Formatting help
skip to input
format text bold
[b]bold text[/b]
format text italic
[i]italic text[/i]
insert hyperlink
[link=http://example.com/]link text[/link] / [link]http://example.com/[/link]
set text color
[color=#rgb]colored text[/color]
font size
[size=small]small text[/size]
[size=large]large text[/size]
insert list
[list][*]list item[/list]
insert image
[img]http://example.com/image.jpg[/img]
left: [img=left]http://example.com/image.jpg[/img]
right: [img=right]http://example.com/image.jpg[/img]
thumbnail: [img=thumbnail]http://example.com/image.jpg[/img]
thumbnail left: [img=thumbnail-left]http://example.com/image.jpg[/img]
thumbnail right: [img=thumbnail-right]http://example.com/image.jpg[/img]
upload image
upload image ...
insert TeX code
[tex]TeX code[/tex]
insert code
[inlinecode]code[/inlinecode]
[code]code[/code]
[code=css]code[/code]
[code=html]code[/code]
[code=javascript]code[/code]
[code=perl]code[/code]
[code=php]code[/code]
[code=sql]code[/code]
[code=xml]code[/code]
:-)
;-)
:-P
:-D
:-|
:-(
:yes:
:no:
:ok:
:lol:
:lol2:
:lol3:
:cool:
:surprised:
:angry:
:crying:
:waving:
:confused:
:lookaround:
:clap:
:love:
:tick:
Message:
> Hi. > > > I tested the relevant code form /modules/captcha/ myself and on servers I have access to (PHP in versions 7.2.24 and 7.4.32). The rotation of the background images works flawless. So this is in itself not an issue with the PHP version 7.4. > > > > Thanks. I already supposed it was probably not a php7.4 issue, when I was unable to find any comments about it on the web. > > > What happens on your server, what is visible to the visitor in the browser? Do you see no image or maybe only the light grey placeholder image without any text? Do you find the background images in [inlinecode]modules/captcha/backgrounds[/inlinecode] and a TTF-font in [inlinecode]modules/captcha/fonts[/inlinecode] (at least [inlinecode]Tahoma.ttf[/inlinecode] should be present)? > > > > I think your questions are quite relevant. In fact, checking the `false` return value will not fix the issue in my case. Specifically, I get a "Service Unavailable" and 503 Error. > > [img]images/uploaded/2023010414385163b58f7bd2a97.png[/img] > > `imagerotate` doesn't return a `false` value, and I couldn't catch the error, no matter what I have tried. > > I have done additional tests on the hosting: the issue affects some specific angle values and some specific images. This is the code I have used for testing purposes (only for `imagerotate`, not the full captcha): > > [code=php] > <?php > // error_reporting(E_ALL); > // ini_set("log_errors", 1); > // ini_set("error_log", $_SERVER['DOCUMENT_ROOT']."/imgrotate.log"); > // error_log("Testing\n"); > header('Content-type: image/png'); > > $degrees = $_GET['angle']; > $filename = $_GET['img']; > > $source = imagecreatefrompng($filename.'.png'); > $rotate = imagerotate($source, $degrees, 0); > imagepng($rotate); > > // try { > // $rotate = imagerotate($source, $degrees, 0); > // } catch (Exception $e) { > // error_log('Caught exception: '.$e->getMessage()."\n"); > // } > ?> > [/code] > > You can try for the images: "background_1", "background_2", "avatar", "background_1_v2" and "admin-user-date-format": > > https://www.reduccionalabsurdo.es/tests/imagerotate/test.php?img=background_1&angle=180 > > "background_1_v2" is the same as "background_1", I only have opened with Gimp and have changed some values like "image precision". However with "background_1" I get an error for 180 degrees but with "background_1_v2" it works fine. > > Regards.
E-mail notification on reply of this posting
OK - Submit
Preview