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
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 10 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 10, 2023 at 2:10 pm #14006901

pierreP-7

I am trying to edit homepage (EN version or FR version) in backend.
The url in the address bar seems ok : /wp-admin/post.php?post=1231&action=edit&lang=fr (1231 is the post of FR homepage) but it just automatically display another page (a product custom post type showing the title of the product, the permalink and the yoast slug also but with empty content in the page). I'm able to edit all other pages correctly so it is very strange that it just happening in the homepage... We have a multi-sites : the main site (that don't have products custom post type) works correctly but the 2 others websites have this bug with the homepage edition... everything was correctly before. It seems to be related with the recent wordpress/plug-ins updates (note that we are in php 7.4). Any idea??

July 11, 2023 at 7:39 am #14010917

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

First of all, I'll advise to fix WP Memory Limit. WPML requires a memory limit of at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set WP Memory Limit in your wp-config.php file by adding following code:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Remember to add these lines before the line where it says:
/* That's all, stop editing! Happy publishing. */

See https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php for details. Increasing WP Memory may help improve the performance.

Then, please check if all WPML plugins are up to date? Otherwise please update to latest versions.

Then, try with a minimal setup like only with WPML plugins and a default WordPress theme like 2021 or 2023.

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

Please let me know how it goes.

Regards.

The topic ‘[Closed] Trying to edit homepage in backend automatically redirect to custom page instead’ is closed to new replies.