-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paypal module wrongfully state cURL is not enabled #173
Comments
It looks like the message is wrong, cURL is okay but it fails the TLS test which is different, but blames cURL (and is still wrong, TLS 1.2 is enabled according to ssllabs.com) The test function only returns meaningful error in case of HTTP 401 response. |
nginx error logs returns
And nginx is correct, the file is in "controllers/front", not in the root of the directory. Again, there are no nginx documentation specific to this module or specific web server requirements. There are no specific .htaccess file within the module that would redirect such calls properly, the only htaccess rule procided is for media files : |
Manually accessing the curl tls url (where the file is, not module's root, within controllers/front) returns an error 500 because of line 30
|
Hi,
|
Hello,
|
Found out I forgot this location block, but adding it did not resolve the issue. (And no reasons it would resolve it, you're not trying to access dot files)
I see #58 was closed without resolution, which is cumulative to blame cURL for the error since having the store in maintenance mode makes your test file not reachable, while the real problem isn't cURL itself. |
@Zulgrib If you have generic rules from PrestaShop configuration, you'll not have a 404 error and the TLS check will be OK. |
Okay, it doesn't resolve cURL is blamed while there are no cURL errors. (Even if someone force disable TLS 1.2 and 1.3, cURL isn't at fault and the text shouldn't blame cURL). It also doesn't resolves #58 that blames cURL too, while cURL suceeded but got a non HTTP 200 response. I'm insisting not to be annoying, but because lots of users on the Prestashop forum are pulling their hairs out trying to figure out what is wrong with cURL while cURL is not the fault. |
#58 issue is about maitnenance mode that return a 503 error not a 404 error. In your case your the nginx configuration is not OK. In my mind your URL is: /fr/module/paypal/tlscurltestserver I already configured a multishop (mono domain in sub directory) with nginx and in this case, I've specific rules to manager properly nGinx. Perhap's you can check to enable only one language ? |
Yes I can, but the string in the files will still blame cURL in case of errors while the fault isn't on cURL. edit : since help is wanted, I can at least modify the string for english and french for it to not blame wrongfully cURL. |
For your information, the check in the back-office is not mandatory to receive payments by Paypal. Perhaps, the feature could change in case of 404 or 503 to hide this check and add a message like "TLS cannot be check now because your server response an error 404 (or 503) on the check request" |
It is minimal but would be better than blaming cURL. Can't we verify TLS version using the home page? It should be possible to catch the TLS mismatch error then ? |
Hi @Zulgrib |
Describe the bug and add screenshots
cURL and php-cURL are installed and up to date, but the module wrongfully report they are not.
nginx is configured to only accept tls 1.2 and 1.3.
Official userguide do not state additional configuration is required for nginx.
Expected behavior
The module should show a green checkmark instead of a red cross for the cURL status.
If the problem is different, it should show a different error message. cURL is properly installed.
Steps to reproduce
PrestaShop version(s) where the bug happened
1.7.8.8
PHP version(s) where the bug happened
7.4.33
The text was updated successfully, but these errors were encountered: