Skip Navigation

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

Problem:
The client is experiencing a critical error when trying to access wp-admin/edit.php or wp-admin/edit.php?post_type=page with WPML active, despite setting the memory limit to 256M in wp-config.php. WordPress still reports a memory limit of 40M, and a missing icl_background_task table was identified, which likely disappeared during a move to new hosting.
Solution:
We recommend enabling debugging to identify the specific errors causing the issue. To do this, modify your wp-config.php file:

define('WP_DEBUG', true);

define('WP_DEBUG_LOG', true);

This will save error logs to a debug.log file in the /wp-content/ directory. Additionally, ensure that your WPML plugin and add-ons are updated to the latest version, currently 4.6.14, to benefit from recent fixes and improvements. You can update WPML by following the instructions here: http://wpml.org/faq/install-wpml/. Before updating, please back up your database.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us for further assistance.

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

Last updated by brigitteB-9 3 days, 17 hours ago.

Assisted by: Dražen Duvnjak.

Author Posts
November 18, 2024 at 12:32 pm #16414801

brigitteB-9

Background of the issue:
I am trying to access wp-admin/edit.php or wp-admin/edit.php?post_type=page with Active WPML. I have added these lines to the wp-config.php file: /* Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); define('WP_MAX_MEMORY_LIMIT', '256M');

Symptoms:
I get a critical error message when trying to access the specified pages. Despite setting the memory limit in wp-config.php, WordPress still reports a memory limit of 40M.

Questions:
How can I fix the critical error when accessing wp-admin/edit.php?
Why does WordPress still report a memory limit of 40M despite changes in wp-config.php?

November 18, 2024 at 1:34 pm #16414998

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support. While one of my teammates takes care of your ticket, I will provide you with the first debugging steps.

It would help if you saw what the errors are. Guessing what might be the problem and trying different solutions may lead to even more trouble. The first step is to enable debugging. You can add a few lines to the site’s wp-config.php file. With the error log enabled, you will see the actual problem.

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

To enable the error logging to a file on the server, you need to add yet one more similar line:

define( 'WP_DEBUG_LOG', true );

In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.

https://wpml.org/documentation/support/debugging-wpml/

But first, please update your WPML plugin and add-ons to the latest version, 4.6.14, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the latest code to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please remember to backup your database before you proceed.

Let us know what you see after the debug mode has been enabled.

November 19, 2024 at 5:35 am #16417463

brigitteB-9

All WPML plugins are up to date and I cannot see anything in the debug log after refreshing the hidden link page. Debug mode is already enabled.

This issue immediately goes away after I disable the plugin.

PHP memory limits are defined using the PHP setting in cPAnel. Please check the Screenshots.

ns10.PNG
ns9.PNG
ns10.PNG
November 19, 2024 at 9:10 am #16418308

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks for getting back,

1) Maybe your hosting saves error in some other location. Please try to check with them also and make sure you have added the correct code to wp-config.php. You can also check the admin email for an error message, as it is necessary so we can know what exactly is causing the issue.

2) Does the issue happen only on specific pages or any page?

3) Does the issue happen when you keep active only WPML plugins and Elementor, while all others are disabled and use WP default theme? Please test this if possible on the staging site not on the production one.

Please make sure to create a backup, before doing any actions, just in case.

Regards,
Drazen

November 23, 2024 at 6:40 am #16435591

brigitteB-9

1. Yes I spoke to them and they cannot find any issues on their side.
2. Any post type that is set as translatable gives this issue, post or page for example
3. When I disable the WPML, the issue will go away.

Also please check below Screenshots

Screenshot 2024-11-21 at 09-38-17 IMMIGOPRO Client Requirements & Quotation Questionnaire – Immifocus.png
ImmiGoPro (2).png
November 25, 2024 at 7:00 am #16437943

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hi,

please share the access details of your website, wp-admin and FTP access, so I can log in and take a look. Please note that I would need to disable plugins / themes.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/


- Please backup the site files and database before providing us access. 


- If you have a staging site where the problem is happening it is better to share access to the staging site, so I can safely check it.

Thanks,
Drazen

November 26, 2024 at 6:52 am #16442686

brigitteB-9

I have noticed that one table (icl_background_task) belongs to WPML was missing form the database. this is probably happened when we moving the website to a new hosting location.
after restoring this table on a staging version, the issue seems to be gone.