You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are cases where the generated captcha image url is wrong hence the captcha img not showing.
The form_properties['assets_url'] which is used to construct the url might be broken.
In some environments, $_SERVER['DOCUMENT_ROOT'] might be resolved using realpath in order to match the directory root path returned by dirname(FILE).
There are cases where the generated captcha image url is wrong hence the captcha img not showing.
The form_properties['assets_url'] which is used to construct the url might be broken.
In some environments, $_SERVER['DOCUMENT_ROOT'] might be resolved using realpath in order to match the directory root path returned by dirname(FILE).
Below is an example on 1&1 shared hosting .
Resulting on returning a broken path in assets_url (Zebra_Form.php line 179)
Replacing $_SERVER['DOCUMENT_ROOT'] by realpath($_SERVER['DOCUMENT_ROOT'])."/"
in the expression above fixed the problem for me.
If someone have a better idea ?
The text was updated successfully, but these errors were encountered: