The use of hCaptcha (maybe reCaptcha as well) causes a fatal error if the CURL module for PHP is not installed #184

Closed
opened 2021-03-12 04:13:25 +00:00 by christophercormier · 2 comments
christophercormier commented 2021-03-12 04:13:25 +00:00 (Migrated from gitlab.com)

After filling out the hCaptcha and clicking the post button, I was given this error:

Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/inc/functions.php:245 Stack trace: #0 /var/www/html/imgboard.php(235): checkCAPTCHA() #1 {main} thrown in /var/www/html/inc/functions.php on line 245

This was fixed, at least on Debian, by installing the php-curl package. This should probably just be a trivial fix of mentioning that it's a required dependency in the README.md file, and/or checking if the function is available before calling it so that the administrator can be informed in a more friendly way if it's missing.

After filling out the hCaptcha and clicking the post button, I was given this error: `Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/inc/functions.php:245 Stack trace: #0 /var/www/html/imgboard.php(235): checkCAPTCHA() #1 {main} thrown in /var/www/html/inc/functions.php on line 245` This was fixed, at least on Debian, by installing the php-curl package. This should probably just be a trivial fix of mentioning that it's a required dependency in the README.md file, and/or checking if the function is available before calling it so that the administrator can be informed in a more friendly way if it's missing.
Squarepusher2 commented 2021-03-12 06:53:26 +00:00 (Migrated from gitlab.com)

It's also needed for embeds so probably handy to mention in the readme as dependency, yes.

It's also needed for embeds so probably handy to mention in the readme as dependency, yes.
tslocum commented 2021-03-13 08:08:54 +00:00 (Migrated from gitlab.com)

Thanks for reporting this.

Thanks for reporting this.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#184
No description provided.