Error 500 if captcha box is not ticked
Closed this issue · 3 comments
bigheadsmith commented
If the user does not tick the captcha box, instead of alerting the user it still tries to create the ticket but produces an internal server error.
mod_fcgid: stderr: thrown in public_html/include/class.forms.php on line 688, referer: https://example.com/open.php
mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined method DynamicFormEntry::addError() in public_html/include/class.forms.php:688, referer: https://example.com/open.php
mod_fcgid: stderr: Stack trace:, referer: https://example.com/open.php
mod_fcgid: stderr: #0 public_html/include/plugins/recaptchav2/recaptcha.php(33): FormField->addError('Your response d...'), referer: https://example.com/open.php
mod_fcgid: stderr: #1 public_html/include/class.forms.php(664): reCaptchaField->validateEntry(false), referer: https://example.com/open.php
mod_fcgid: stderr: #2 public_html/include/class.forms.php(920): FormField->getClean(), referer: https://example.com/open.php
mod_fcgid: stderr: #3 public_html/include/class.dynamic_forms.php(1189): FormField->getFilterData(), referer: https://example.com/open.php
mod_fcgid: stderr: #4 public_html/include/class.ticket.php(3972): DynamicFormEntry->getFilterData(), referer: https://example.com/open.php
mod_fcgid: stderr: #5 public_html/include/class.ticket.php(4173): Ticket::filterTicketData('Web', Array, Array, NULL, false), referer: https://example.com/open.php
mod_fcgid: stderr: #6 public_html/open.php(45): Ticket::create(Array, Array, 'Web'), referer: https://example.com/open.php
mod_fcgid: stderr: #7 {main}, referer: https://example.com/open.php
mod_fcgid: stderr: thrown in public_html/include/class.forms.php on line 688, referer: https://example.com/open.php
DavidMarquezF commented
coder66 commented
This is for 1.16.x releases, throws an internal server error 500 when the plugin is active (running on PHP8.0). Please fix so that the plugin can be used again.
DavidMarquezF commented
I am unable to reproduce this issue on my side. Make sure that the input is marked as required. Also, check if it works with the latest version, which is compatible with osTickets 1.17
I'll close the issue because I cannot reproduce it in any way. If this still happens in the new version and you know how to replicate it, feel free to reopen it