Skip Navigation

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

Problem:
You are trying to install the WPML multilingual CMS and encountering errors such as 'Could not copy file' during installation and a fatal error upon activation. These issues persist even after attempting installation through different methods including OTGS, WordPress interface, and manual installation via cPanel.
Solution:
The issue appears to be related to your server rather than WPML itself. Here are the steps we recommend:
1. Check file permissions: Ensure that the

wp-content

folder and its subdirectories have the correct write permissions. Directories should generally have 755 permissions and files should have 644. You can set these using an FTP client or via SSH with the commands:

chmod -R 755 wp-content

(for folders)

chmod -R 644 wp-content/*

(for files)
2. Check disk space: Verify that your hosting account has sufficient disk space to complete the installation. Insufficient disk space can cause file copy operations to fail.
3. Consult your hosting provider: Since the problem persists even after ensuring file permissions and disk space, it might be related to specific server settings or PHP configurations. Discuss these issues with your hosting support.

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 problems persist, please open a new support ticket.

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.

This topic contains 2 replies, has 0 voices.

Last updated by Andreas W. 1 week, 3 days ago.

Assisted by: Andreas W..

Author Posts
January 16, 2025 at 10:52 am #16601388

sumeshD

Background of the issue:
I am trying to install the WPML multilingual CMS on a site under development. I initially attempted installation through OTGS, which resulted in an error. I then manually downloaded the plugin and tried installing it via the WordPress interface, encountering another error. Finally, I manually installed it through cPanel, but activation resulted in a fatal error.

Symptoms:
Error messages during installation: 'Could not copy file. (sitepress-multilingual-cms/vendor/otgs/installer/includes/class-translation-service-info.php)' and 'Could not copy file. sitepress-multilingual-cms/vendor/otgs/installer/includes/class-otgs-installer-plugins-page-notice.php'. Fatal error upon activation. and 'Plugin could not be activated because it triggered a fatal error.'

Questions:
How can I resolve the installation errors for WPML?
What steps should I take to successfully activate WPML after manual installation?

January 16, 2025 at 11:24 pm #16604150

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Can you please confirm if you have similar issues when trying to upload other plugins?

Does your server still have enough disk space available?

It would also be very helpful if you could send us the WPML debugging information.
More information here:
https://wpml.org/de/faq/provide-debug-information-faster-support/

Best regards
Andreas

January 18, 2025 at 11:57 am #16608998

sumeshD

The issue is exclusive to the mail WPML Plugin, all other plugins instal just fine. Even the supporting plugins from WPML install one. Disk space is adequate. I am unable to provide debug information as wpml has not installed yet. Please help.

January 18, 2025 at 3:36 pm #16609344

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hi,

I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the site to investigate the issue further.

The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may need to install a plugin called "All In One WP Migration" here to create a copy of the site that I can use to investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/de/account/websites/.

If you are not able to provide such a copy of the website for testing, please let me know on this ticket.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.

Best regards
Andreas

January 21, 2025 at 2:26 pm #16619228

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

This is not a WPML problem. Even when I disable all plugins and try to reinstall WordPress, I get also an error:

Downloading update from hidden link

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) in /home2/webbiesc/public_html/stage/stage92/wp-includes/functions.php on line 5464

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) in /home2/webbiesc/public_html/stage/stage92/wp-includes/functions.php on line 5464
Unpacking the update…

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) in /home2/webbiesc/public_html/stage/stage92/wp-includes/functions.php on line 5464

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) in /home2/webbiesc/public_html/stage/stage92/wp-includes/functions.php on line 5464
Could not copy file.: wordpress/wp-includes/blocks/footnotes/style.css

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) in /home2/webbiesc/public_html/stage/stage92/wp-includes/functions.php on line 5464

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) in /home2/webbiesc/public_html/stage/stage92/wp-includes/functions.php on line 5464

Installation failed.

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) in /home2/webbiesc/public_html/stage/stage92/wp-includes/functions.php on line 5464

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (1) in /home2/webbiesc/public_html/stage/stage92/wp-includes/functions.php on line 5464

Please consult hosting support, as I am not sure what is causing the issue and it appears to be server-related.

More on the topic:
This error generally occurs due to problems with file permissions or insufficient disk space on the server.

Example:
The file wordpress/wp-includes/blocks/footnotes/style.css could not be copied.

Steps to fix:

Check file permissions: Make sure the wp-content folder and its subdirectories have the correct write permissions. Normally, WordPress directories should have 755 permission and files should have 644 permission. You can set these permissions using an FTP client or via SSH:

chmod -R 755 wp-content (for folders)

chmod -R 644 wp-content/* (for files)

Check disk space: Make sure the hosting account has enough disk space to complete the update. Sometimes the copy operation fails due to insufficient disk space.

January 23, 2025 at 2:23 pm #16628556

sumeshD

We set the necessary permissions as stated by you, however I still receive the fatal error issue on installing post that. All other plugins install just fine from ehe WP dashboard. So it makes me believe it is indeed just a wpml issue. Please investigate further.

January 23, 2025 at 5:41 pm #16629309

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

As I mentioned earlier, even when I disable all plugins and try to reinstall WordPress, I get a similar error:

Could not copy file: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php

Installation failed.

This must be related to the server setup and I suggest you consult the hosting support about it.

Maybe it is a specific PHP settings, like File Size Upload Limit.

Example:
https://stackoverflow.com/questions/2184513/change-the-maximum-upload-file-size

January 24, 2025 at 5:17 am #16630228

sumeshD

the max limits are set to the max size already, please see screenshot. Andreas I think you are missing something, how are all other plugins installing just fine. Please reinvestigate and see.

844986f04ee1d596db214a543e213200db0acc5e.png
January 24, 2025 at 12:32 pm #16631323

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

On your staging currently only the Twenty Twenty One Theme is enabled. There is no plugin active.

If I try to reinstall WordPress on this setup I get a similar error.

As soon I try to upload different plugins that is bigger than 7MB I am getting the same error.

Example_
Could not copy file. the-events-calendar/src/Tribe/Editor/Compatibility.php

This is not a WPML issue. Please contact your hosting company.