mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 00:36:00 +03:00
[GH-ISSUE #272] Lost Password Captcha not shown #220
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#220
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @simarilius on GitHub (Sep 13, 2020).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/272
The Reset Password Page doesn't shows a Captcha.
Warning: imageftbbox(): Could not find/open font in /lynn/vimbadmin/pub/vendor/shardj/zf1-future/library/Zend/Captcha/Image.php on line 507
Warning: imagefttext(): Could not find/open font in /lynn/vimbadmin/pub/vendor/shardj/zf1-future/library/Zend/Captcha/Image.php on line 510
I fixed it by adding a directory and the font to /lynn/vimbadmin/pub/data/font/freeserif.ttf
I also had to change the path in library/OSS/Captcha/Image.php:
if( strpos( dirname( FILE ), 'src/' ) === false )
$font = dirname( FILE ) . '/../../../data/font/freeserif.ttf';
else
$font = dirname( FILE ) . '/../../../data/font/freeserif.ttf';
@bradley-jarvis commented on GitHub (Jan 17, 2021):
I had the same problem with pretty much the same fix, I put the font file where it was looking for it though so didn't need to change any code
@alainwolf commented on GitHub (Feb 8, 2021):
My workaround on fresh Ubuntu 20.04 server:
If you use PHP open_basedir restrictions, make sure
/usr/share/fonts/is included.