Skip to content Skip to sidebar

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

Problem:
If you're experiencing a 404 error when trying to create a new page with WPML activated, and your server logs indicate a warning about exceeding 'max_user_connections', this might be due to WPML causing many connections on the server.
Solution:
We recommend checking with your hosting provider to increase the server limits, as this has resolved similar issues in the past. It's important to ensure that your server can handle the additional load that might come with using WPML. If increasing server limits does not resolve the issue, we suggest you visit our known issues page to check for any related problems or updates.

If this solution does not apply to your case, or if it seems outdated, please open a new support ticket. We also highly recommend verifying that you have installed the latest versions of themes and plugins. For further assistance, you can contact us directly through our support forum.

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

Last updated by Andrey 1 year, 5 months ago.

Assisted by: Andrey.

Author Posts
November 1, 2024 at 4:05 pm #16355580

margotM-4

Background of the issue:
I am trying to create a new page, but when I attempt to do so, it directs me to a 404 page. This issue only occurs when WPML is activated. Here is a link to a video showing what happens: hidden link

Symptoms:
I can't create a page. It directs me to a 404 page, and the created page does not show up.

Questions:
Why does activating WPML cause a 404 error when creating a page?
How can I resolve the issue of not being able to create a page with WPML activated?

November 1, 2024 at 4:52 pm #16355662

Andrey
WPML Supporter since 06/2013

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

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

I'm sorry to hear that you're experiencing trouble with this.

Have you tried temporarily deactivating all plugins except WPML? If so, what were the results?

If the issue persists, there may be an underlying error. To investigate further, please enable the debug log. You can do this by adding a few lines to your site's wp-config.php file. With the error log enabled, you'll be able to see what the actual problem is.

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 );

The errors will be saved to a debug.log log file inside the /wp-content/directory.

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

After saving the page, please let me know what you find in the debug.log.

November 5, 2024 at 10:23 am #16365383

margotM-4

Hey,

This is the log:
[03-Nov-2024 06:57:05 UTC] PHP Warning: mysqli_real_connect(): (HY000/1203): User margotmoy_vwae1 already has more than 'max_user_connections' active connections in /home/margotmoy/domains/studiommooy.com/public_html/staging/wp-includes/class-wpdb.php on line 1982

I asked my hostingcompany and this is what they said: It seems that WPML is causing many connections on the server, for instance, by not closing them and therefore keeping the connections open. This results in the error message you're seeing. My advice is to check if WPML is aware of this issue and to work on closing those connections if necessary.

November 5, 2024 at 3:46 pm #16367964

Andrey
WPML Supporter since 06/2013

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

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

Thank you for your feedback. I searched for similar reports and found only one. In that case, the issue was resolved by increasing the server limits.

Our development team consistently follows coding standards to ensure that WPML meets all necessary requirements. Unfortunately, our assistance can only extend to the WPML side of things. If the issue is related to the server, I’m unable to help.