This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to add a custom language to their WordPress site using the WPML plugin. They are looking for a way to enable custom languages manually. Solution: We recommend manually adding the languages to the database. Here are the steps to follow:
INSERT INTO `wp_icl_locale_map` (`code`, `locale`) VALUES ('es-pe2', 'es_pe');
INSERT INTO `wp_icl_flags` (`lang_code`, `flag`, `from_template`) VALUES ('es-pe2', 'es-pe2.png', '0');
Please replace 'es-pe2', 'es_PE', 'es_pe', and 'English Name' with your desired language code, locale, and language title. Ensure you have a backup before proceeding as this is a delicate process. If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
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.
also adding on what the developer just sent you I spoke to the hoster and the confirmed there is server side caching but only if the litespeed plugin is activated. If its disabled there is no server side caching.
He asked if you can provide any error message that he can look into.
I just check both sites (staging + live site) both dont have it enabled currently. Even though we need to have it enabled in the future as its our optimization plugin.
P.S.: please do not share access credentials directly as messages, since this Forum might become public in the future.
I've tried accessing your live website, but none of the credentials I have work. Can you please share access to it again? Please use the proper form and don't send it as messages. This way, I can manually create the languages. If I can't, I'll tell you how you can do it yourself.
Unfortunately, again you shared your credentials publicly on your last message. Please change or delete this user, as the access to your website has been made public at least 2 times on this ticket, and your website might be compromised.
I'm looking into the website and will get back shortly about the issue.
how can i enter private data? i dont have the option right now. Its really confusing your ticket system. Also I just received another critical error via email.
Can we get this fixed now? i am waiting for weeks now. If we dont get this moving i want to request a refund and we switch to translatepress. Thank you for your understanding!
I've enabled the fields, let me know if it worked this time.
I understand your frustration. I'm pushing on second tier as hard as I can, but I haven't received a working-workaround from them. The steps they gave me to add the languages via DB didn't work, and now I'm currently waiting for their feedback. I'll update you ASAP.
Regarding the fatal error, I've created a new ticket for it. This way, we can keep things organized and work the issues in parallel. I'll answer you there:
This is my PHP My Admin folder. You didn't show in the video which folder I should put the code inside.There are many databases here. Do I have to select the database for the website I am working on?
I apologize, I was not aware of your DB structure. You need to run the command inside the brokercheck.co's DB.
One easier way to follow the steps, is that you use the WP Adminer plugin, which is the one I used. Install it on your website, and it should look a lot more like the video, and will be easier to follow the steps. It's accessible from the Tools tab, once active.
I'm not sure where this can be run from the PhpMyAdmin interface. You can reach out to your hosting support as well, they can indicate the best way to apply the solution on your server. Let me know if you still have any questions.
I need to run the command inside the brokercheck.co's DB also I know PhpMyAdmin interface but But there is a specific folder or file in which I can place the custom codes you gave me.I need to know the name of that folder or file.Can you tell me this?
I am able to find the database of my desired website but after selecting the database I need to confirm in which folder or file I will write the codes you have given. It needs to be written for WPML so can my hosting providers also tell me in which folder I have to write the codes?
Honestly, I don't totally understand the questions about the folder. The commands need to be run for specific tables, which are specified in the command itself already. Just run the command on the DB (of course it's necessary to adjust the prefix).
I can do that for you, sure. The fields are enabled for you to share access privately.