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.
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?
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.
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.
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.
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.
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.
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.