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.

Our next available supporter will start replying to tickets in about 3.80 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 -
- 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 9 replies, has 3 voices.

Last updated by Nicolas V. 1 month, 2 weeks ago.

Assisted by: Nicolas V..

Author Posts
September 20, 2024 at 4:13 pm #16203758

corinnaD-2

Background of the issue:
I've installed the WPML plugin on my site hidden link and I'm trying to activate it.

Symptoms:
When I select Activate, I get the following error: Plugin could not be activated because it triggered a fatal error.

Questions:
What should I do?

September 20, 2024 at 4:35 pm #16203814

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

Before this ticket gets assigned to one of my colleagues, I will try to help.

That is a general error message and we can't know what is causing the error until we don't dig a bit deeper.

Let us share the steps that you can use to find out more about what is the actual error when you see a general error message like that one.

We can enable the WordPress debug log and recreate the issue to see if we are getting a longer error message that is more specific.

This will allow us to see if any PHP errors are being produced.

In order to do that, we can edit the wp-config.php file inside our WordPress directory and insert the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Now, we can try to reproduce the issue once again.

We should now be able to locate the debug log in: /wp-content/debug.log

Paste the content (if any) on a site like pastebin.com and then share the link with us (only you and us will see the URL you are sharing, it is automatically hidden for anyone else).

Relevant Documentation:
https://codex.wordpress.org/Debugging_in_WordPress

Please let us know how things go.

Mihai Apetrei

September 26, 2024 at 2:46 pm #16226076

corinnaD-2

Hi, here is the error I'm receiving: https://pastebin.com/gViY6d26

September 26, 2024 at 4:05 pm #16226739

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

Welcome to the WPML support forum.

It appears that a file is missing from the plugin, as indicated by this error message:

[26-Sep-2024 14:36:46 UTC]No such file or directory in /wp-content/plugins/sitepress-multilingual-cms/inc/lang-data.php on line 10

Could you please try manually re-uploading the plugin? You can easily download our plugins from your WPML account:

- Go to https://wpml.org/account/downloads/
- Click on "Download WPML manually" to see all plugins and download the core plugin WPML CMS
- In your WP dashboard, go to "Plugins > Add new" and use the button at the top of your screen to upload the .zip file

Alternatively, you can upload the plugin via FTP. Here is an online tutorial: hidden link

September 26, 2024 at 4:55 pm #16226855

corinnaD-2

I see the lang-data.php file in the directory in wpconfig. Could it be something else?

image (5).png
September 26, 2024 at 8:10 pm #16227489

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

Perhaps the file is corrupted or it could be a permission issue.

1. I would still recommend to reupload the plugin.

2. Make sure that the files have a permission 644 and your folders 755.
For more information: https://developer.wordpress.org/advanced-administration/server/file-permissions/

September 27, 2024 at 3:58 pm #16230642

corinnaD-2

The lang-data.php has all the right permissions. But on line 10, it calls for a file named "languages.json": hidden link
which does not exist inside the plugin: hidden link
The file languages.json is not available in the source code as well.

September 27, 2024 at 4:35 pm #16230697

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

Could you please provide me with a temporary admin access and FTP access.

I've activated a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

September 27, 2024 at 6:46 pm #16231142

corinnaD-2

Unfortunately, my company will not all me to grant you a login. Can you send the json file instead? We can continue to work through our end on whatever troubleshooting you might suggest, but this seems to be the current issue, so if the file is shareable, that would be great. Otherwise, maybe we screenshare to work through it?

September 27, 2024 at 7:02 pm #16231155

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

As I mentioned you can get a fresh copy of WPML CMS directly from your WPML account.
- Go to https://wpml.org/account/downloads/
- Click on "Download WPML manually" to see all plugins and download WPML CMS
- Re-upload all the files to your server via FTP

The topic ‘[Closed] Activating Plugin Triggers Fatal Error’ is closed to new replies.