Skip Navigation

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

Last updated by eloiC-2 1 year, 2 months ago.

Assisted by: Dražen.

Author Posts
February 7, 2024 at 11:26 am #15276319

eloiC-2

Hi there,
I have a site with different custom post types, all of them with has_archive. I've translated the slugs in WPML Settings but I can't see the translation. When changing to the "suposed" url in another language, there's a "Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request" message.

I resaved the permalinks, etc.
Any idea?

February 7, 2024 at 12:29 pm #15276605

Dražen
Supporter

Languages: English (English )

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

Hello,

difficult to say without further information, please let me know next:

1) How did you create this CPT?

2) Does the issue still happen when using the WP default theme and only WPML plugins and ACF activated?

3) Please check the server and WP debug log for further information error message.

4) Do posts in 2nd language exist and are translated from the default language?

Let me know.

Thanks,
Drazen

February 7, 2024 at 12:33 pm #15276628

eloiC-2

Hi Drazen,
1) How did you create this CPT?

I've created this CPT with Advanced Custom fields.

2) Does the issue still happen when using the WP default theme and only WPML plugins and ACF activated?

Yes, I've tested these before. It crashes ONLY when WPML is activated.

3) Please check the server and WP debug log for further information error message.

There's this error:
PHP Warning: Undefined array key "file" in /home/nexaula/public_html/wp-includes/media.php on line 1723

4) Do posts in 2nd language exist and are translated from the default language?

Yes.

February 7, 2024 at 1:39 pm #15276832

eloiC-2

Checking the issue, i see that it only happens when in WPML > Language URL format the active option is "Different languages in directories". Resaving permalinks etc... but happens when this option is selected. With "Language name added as a parameter" works fine.
Any idea?

February 7, 2024 at 2:07 pm #15277007

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back, difficult to say, but it should work fine in both cases. I can only suspect some hosting-specific issue / some additional code or a bug with WPML.

That being the case I created a minimal installation of WordPress, WPML, ACF and all necessary WPML add-ons.

You can access the WordPress dashboard using the link below:
- hidden link

Kindly follow the steps below:
- Try to replicate the issue with 1 simple example dummy case
- Please do not install any other plugins / themes or migrate content here
- Share with me step by step guide on how can I check the issue

Regards,
Drazen

February 7, 2024 at 2:12 pm #15277035

eloiC-2

If I have the problem with custom post types and WPML, how can i replicate anything without installing anything? That's useless, sorry to say.