Skip Navigation

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

Problem:
The client changed the language string for the portfolio archive page from Lithuanian ('projektai') to English ('projects'), causing an error in displaying portfolio single items.
Solution:
We resolved the issue by translating the slug via WPML's String Translation tool. After updating the slug, it functioned correctly in both languages. We recommend checking if the portfolio items now work as expected in both languages.
If the problem reoccurs, we suggest replacing the .htaccess file with the default WordPress version and resaving the permalinks using the following code:

# BEGIN WordPress<br /><ifmodule mod_rewrite.c><br />RewriteEngine On<br />RewriteBase /<br />RewriteRule ^index\.php$ - [L]<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteRule . /index.php [L]<br /></ifmodule><br /># END WordPress

If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if needed.

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 0 replies, has 0 voices.

Last updated by arturasJ-2 1 day, 21 hours ago.

Assisted by: Osama Mersal.

Author Posts
March 3, 2025 at 9:08 am #16767519

arturasJ-2

Background of the issue:
I changed the string for the portfolio archive page from LT(projektai) to EN(projects), and now the portfolio single items are showing an error. The issue can be seen on this page: hidden link.

Symptoms:
The portfolio single items are displaying an error after changing the language string from LT to EN.

Questions:
Why are the portfolio single items showing an error after changing the language string?
How can I fix the error on the portfolio single items page?

March 4, 2025 at 4:01 am #16771343

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please back up your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

March 4, 2025 at 5:47 am #16771441

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I translated the slug via WPML-> hidden link">String Translation. After that, the slug worked correctly in both languages. (Kindly check this hidden link">screenshot)

Please check if the proftfolio items work as expected in both languages.

If the issue happens again, please replace your .htaccess with the default WordPress one and resave the permalinks.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Best regards,
Osama

March 4, 2025 at 7:49 am #16771712

arturasJ-2

for not working project even in lithuania language now, please check

March 4, 2025 at 8:10 am #16771810

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I changed the .htaccess file to the WordPress default one, which fixed the issue for a few minutes.

Please try the following test:

1- Deactivate all the plugins except WPML CMS and String Translation.
2- Switch to your parent theme
3- Resave the permalinks
4- Check the portfolio (hidden link)

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please back up your database before the above test ❌

Best regards,
Osama

March 4, 2025 at 9:04 am #16772333

arturasJ-2

Contact Form 7 Multilingual - does the error.
Just tryed to disable/enable all plugins and found error comes from this plugin.

March 4, 2025 at 9:14 am #16772401

arturasJ-2

Problem still exist when all plugins deactivated.

March 4, 2025 at 3:58 pm #16775086

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check this hidden link">video. The issue doesn't happen with the parent theme with WPML CMS and String Translation activated.

Best regards,
Osama

March 4, 2025 at 6:47 pm #16775670

arturasJ-2

Thank you, my issue is resolved.