Skip Navigation

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

Problem:
The client was unable to scan their customized roots.io Starter theme for new strings in the WPML settings. Despite trying to disable all plugins and switching to the default theme, the issue persisted. The client confirmed that the style.css was set up correctly and that the issue was not present in their local environment, suggesting a server configuration problem.

Solution:

We asked the client to provide temporary access to their WP-admin for further investigation and to confirm if their theme would work in a standard WordPress folder installation. We set up a sandbox site for the client to upload their theme to test if the issue persisted there. We also suggested setting up a staging site with a default WP folder structure to check if the issue was related to the custom configuration of the client's server.

It was confirmed that the issue wasn't happening on a WordPress default folder setup, but only in the custom folder configuration.

If you're experiencing a similar issue, we recommend checking your theme's style.css header, disabling any redirections, and testing your theme in a standard WordPress folder installation. If these steps do not resolve the issue, please consider setting up a staging site with a default WP folder structure to rule out server configuration issues on the client's server.

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

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.

This topic contains 14 replies, has 2 voices.

Last updated by Marsel Nikolli 10 months, 2 weeks ago.

Assisted by: Marsel Nikolli.

Author Posts
February 22, 2024 at 8:36 am #15331671

matejK-16

Hi,
We're unable to scan our theme for new strings in WPML settings. We currently have two themes on our website, we tried to disable all plugins and switch to the default theme, but this didn't help.
Can you help please?
Thanks

Screenshot 2024-02-22 at 09.23.49.png
February 22, 2024 at 12:16 pm #15333437

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you.

Could you please check that your WordPress theme style.css header is set correctly?

You can find more information here:
https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/#:~:text=Here%20is%20an%20example%20of%20the%20header%20part%20of%20style.css.

The style.css header needs to be set as per WordPress standard in order to show up on the WPML -> Theme and plugins localization for strings scanning.

Let me know if this works out,
Marsel

February 23, 2024 at 8:13 am #15336301

matejK-16

Hi,
Yes, our style.css is set up correctly, I've just double checked that.
Any other ideas?
Thanks

February 23, 2024 at 8:42 am #15336460

Marsel Nikolli

Hi,

Thank you for the update.

When I try to go to hidden link, I notice a 301 redirection going on, which seems to be coming from RankMath plugin.

---

In order to investigate this issue and understand it better, I would need a temporary access to your site's WP-admin (you can create an administrator user, using any email address you prefer).

Please make a full backup of your site (files and database) and confirm it in your next reply.

Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

February 26, 2024 at 9:30 am #15343046

Marsel Nikolli

Hi,

Thank you for the access, I was able to check and I noticed that your website's folder have a custom configuration. Is that a default configuration from the hosting provider or you made that configuration?

Would it be possible to test if the issue persist on a WordPress default folder configuration?

* I just checked the website, didn't make any change nor on the dashboard or the FTP account.

Looking forward to your reply,
Marsel

February 26, 2024 at 11:36 am #15343856

matejK-16

Hi,
we've been using this configuration since the site was launched and the issue I've just reported only started happening recently (even with this configuration).
It's roots.io Starter theme which was heavily customised (hidden link), but still it should work. If you look at our strings, you'll be able to see 'sage' related strings, these were all scanned and added for translation before this functionality broke.
Hope that helps? Any other ideas?
Thank you!

February 26, 2024 at 3:41 pm #15345160

Marsel Nikolli

Hi,

Thank you for the update.

1) Could you please tell me if the issue started after any specific update or change on your website?

2) Unfortunately, WPML has no out of the box support for Blade Templates (hidden link). You may need to look into following solutions:

- Try "auto register" function as prescribed at https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#auto-register-strings-for-translation.

- See this thread at hidden link, although its older it may give you some pointers.

3) Also, could you make a test by adding a single string in your blade file to check if it will be registered on WPML String Translation?

Let me know if any of the suggestions works for you.

February 27, 2024 at 12:02 pm #15348985

matejK-16

Hi,
Thank you for looking into this.
1.) Not sure, it's been broken since July/August 2023 but this definitely worked before. Our theme was developed in 2022.
2.) "Auto register" will significantly slow down our website, this isn't something that will work for us.
Re the thread you shared, we already register strings using the suggested method, although going back to the screenshot I shared originally, our theme isn't showing in WPML admin. Neither is showing the default WP theme we currently have installed but disabled.
3.) Not sure this suggestion is what we're after. See my response above. We already have many strings in our theme but we can't scan the theme. This is the problem we need to resolve.
Can you please escalate this higher up?
Thanks

February 27, 2024 at 2:08 pm #15349475

Marsel Nikolli

Hi,

Thank you for the update.

Would the configuration of your theme work in a standard WordPress folder website?
So I could setup a sandbox site to check the issue persists before escalating it.

February 28, 2024 at 6:05 am #15351865

matejK-16

Hello,

Yes, our theme should still work in a standard WP folder installation.

Let me know if you need anything from us.

Thank you

February 28, 2024 at 6:37 am #15351878

Marsel Nikolli

Hi,

To further check I've setup a sandbox site, would it be possible to upload your theme there and check if the issue persists?

Link to sandbox (one-click login):hidden link

- WPML plugins are installed and activated
- please upload your theme and only must have plugins to run the theme (if any is needed)

* Please do not import your website on the sandbox site.

Let me know if you have any question,
Marsel

February 28, 2024 at 7:08 am #15351953

matejK-16

Hi Marsel,
I've just uploaded our theme.
Thanks

February 28, 2024 at 8:46 am #15352491

Marsel Nikolli

Thank you.
I've checked and it seems that the theme appears on the WP-Admin ->WPML ->Theme and plugins localization -> Strings in the themes.

Would it be possible to set a staging site on your server with a default WP folder structure and check if the issue persists?

theme-string-scan.png
March 3, 2024 at 7:58 am #15366403

matejK-16

Hi,
I've just checked and it appears this issue isn't happening on my local env which indicates the issue could be related to our server set up.
We'll continue investigating.
Thanks

March 4, 2024 at 9:01 am #15368157

Marsel Nikolli

Hi,

Thank you for the update.
Let me know if you have any question or need any assistance.

Kind regards,
Marsel