Module config save results in 500 if no HTTPS-URL is provided

Created on 7 October 2023, about 1 year ago

At the moment the Matomo-HTTPS-URL field is not marked as mandatory in the module settings, but leaving the field blank results in a 500 error as valideUrl is called even if the field is kept blank. This results in a URL of 'matomo.php' which is obviously not valid and therefore Guzzle throws a ConnectException which is currently not catched in the valideUrl function.

So if it's not planned to make the HTTPS-URL mandatory I'd suggest to skip the validation if no value is provided.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany joe.P

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024