Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is encountering an SSL certificate problem with the error message 'http_request_failed - cURL error 60: SSL certificate problem: unable to get local issuer certificate' when trying to use the 'Use directory for default language' option in WPML.
Solution:
1. Navigate to WPML->Languages.
2. Right-click on the radio button for HTML File and select "inspect".
3. In the inspection tool, locate

type="radio"

and change it to

"checkbox"

.
4. Uncheck the box for HTML File and click "save".
This should allow you to save the settings without encountering the cURL error.

Additionally, if your homepage is not set correctly, please follow these steps:
1. Go to WP -> Settings -> Reading.
2. Under 'Your homepage displays', select 'A static page'.
3. Choose the appropriate page to assign as your homepage and update the settings.

Please note that having your site installed in a directory named 'wordpress' can cause issues when using the language URL format 'Different languages in directories'. We recommend installing WPML directly in the root folder for optimal performance.

If this solution does not seem relevant to your issue, please open a new support ticket with us.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 8 replies, has 3 voices.

Last updated by Bobby 1 year, 1 month ago.

Assisted by: Bobby.

Author Posts
October 30, 2023 at 3:18 pm #14693095

ls

Tell us what you are trying to do?
I'm trying to use the option "Use directory for default language" but when I try to save, it says:

http_request_failed - cURL error 60: SSL certificate problem: unable to get local issuer certificate

Is there any documentation that you are following?
I've tried to download a new ca-bundle.crt from here:
hidden link
but it didn't work.

I also followed the instructions from:
hidden link
and it didn't work either.

Is there a similar example that we can see?
This person is going through exactly the same thing as me.
https://wordpress.stackexchange.com/questions/364092/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate

What is the link to your site?
hidden link

Error.png
October 30, 2023 at 6:11 pm #14694353

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Before this ticket gets assigned to one of my colleagues, I will try to help.

Please take a look at the following existing tickets in the custom search result URL I created for you below (you will need to translate the page into English - if you are using the Google Chrome browser, you can right-click on the empty white area and select "translate in english"):
hidden link

This should help.

Please let us know how things go.

Mihai Apetrei

October 31, 2023 at 8:49 am #14697461

ls

Hello Mihai,

Thank you for providing the search, but I also tried the solution from that ticket, and it didn't work for me.

I'll be waiting for your response or that of your colleague.

Best regards.

WP_Memory.png
Theme.png
November 3, 2023 at 5:02 am #14722331

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Please try the following:

- Go to WPML->Languages

- Right-click on the radio button for HTML File and "inspect"

- locate type="radio" and change it to "checkbox"

-uncheck the box for HTML File and click "save"

It should save without the cURL error now.

Let me know your results, please.

Screen Shot 2023-11-02 at 10.00.44 PM.png
November 3, 2023 at 10:03 am #14724207

ls

Hello Bobby,

I've tried your suggestion, and it allowed me to save, but the result is not what I expected.

I thought that by using this option, it would display the language code in the URL, as mentioned in the following post:
https://wpml.org/forums/topic/default-language-code-in-url/
but all it did was remove my default page.

Best regards.

test_result.png
test.png
November 4, 2023 at 1:07 am #14729723

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

November 8, 2023 at 5:22 pm #14759937

ls

Hello,

I have requested the FTP credentials from our support team. As soon as I have them, I will provide them to you.

Best regards.

November 8, 2023 at 10:04 pm #14761303

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you, I have enabled the private reply

November 14, 2023 at 12:55 am #14793091

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the access details!

Please go to WP -> Settings-> Reading -> Your homepage displays and select -? A static page then select your page to assign the homepage and update.

Also, I did notice that you currently have your site installed in a directory called 'wordpress' which is why /wordpress/ is showing as a directory in the URL.

This is typically not recommended by our team when using the language URL format " Different languages in directories", instead we suggest installing WPML directly in the root folder.

Let me know your results, please.