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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

This topic contains 1 reply, has 0 voices.

Last updated by Bruno Kos 2 months ago.

Assisted by: Bruno Kos.

Author Posts
November 18, 2024 at 12:13 pm #16414755

lukasP-26

Background of the issue:
I am working on a site under development, 'cargoisking.com', and I want to change the hreflang from 'de-at' to 'de-AT'. I am trying to do this in the WPML settings under 'WPML -> languages -> Site Languages -> edit language'. I am following the documentation at https://wpml.org/forums/topic/modify-hreflang-tags/.

Symptoms:
When I attempt to change the hreflang tag, I receive an error message: 'There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.'

Questions:
Is it possible to change the hreflang from 'de-at' to 'de-AT'?
Does the error have something to do with limited access to WPML because it's a copy of our website?

November 18, 2024 at 1:51 pm #16415093

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

Thank you for contacting WPML support!

Please enable the WordPress debug log. This will allow us to see if any PHP errors are being produced.

1. Edit wp-config.php and insert the following lines (just before /* That's all, stop editing! Happy publishing. */ part)

define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true);
define( 'WP_DEBUG_DISPLAY', false);

2. Reproduce the issue.

3. Locate the debug log in: /wp-content/debug.log

4. Paste the latest lines here. No need to paste the entire log file, just 20 lines or so will do. Please censor any sensitive information.

https://codex.wordpress.org/Debugging_in_WordPress

Regards,
Bruno Kos

The topic ‘[Closed] hreflang’ is closed to new replies.