Skip Navigation

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

Problem:
The client encountered a PHP Fatal error indicating that the class

WPML\Core\Twig_Loader_Filesystem

was not found, even after attempting to reinstall the WPML plugin via FTP.

Solution:
We recommend the following steps to resolve the issue:
1. Ensure you have a backup of your website files and database.
2. Deactivate all WPML plugins if any are active.
3. Access your site via FTP and navigate to the

wp-content/plugins/

folder.
4. Delete all WPML-related folders.
5. Download the latest WPML Multilingual CMS Plugin from your WPML account downloads page.
6. Extract the downloaded plugin and upload it via FTP to the

wp-content/plugins/

folder. Alternatively, you can upload the .zip file using your WordPress Dashboard under Plugins > Add New > Upload.
7. Activate the WPML plugin through your WordPress Dashboard under Plugins.
8. Complete the setup and register WPML for your site, generating a key at the end of the setup.
9. Navigate to Dashboard > Plugins, locate WPML Multilingual CMS, and click on the link that says “Registered” to download and activate all necessary WPML Add-on Plugins.
10. Ensure that the

WP_MEMORY_LIMIT

in your

wp-config.php

file is set to at least 128M.

If this solution does not resolve your issue, please open a new support ticket with us.

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 1 reply, has 2 voices.

Last updated by Marsel Nikolli 1 year, 5 months ago.

Assisted by: Marsel Nikolli.

Author Posts
January 11, 2024 at 8:59 am #15172820

Claus

PHP Fatal error: Uncaught Error: Class "WPML\Core\Twig_Loader_Filesystem" not found in /plugins/sitepress-multilingual-cms/classes/templates/wpml-twig-template-loader.php:29

Plugin installed via FTP.
I tried disabled the other plugins and restored the default wordpress template. I removed the WPML plugin from FTP and re-added it to FTP, but the problem still exists.

January 11, 2024 at 9:20 am #15173019

Marsel Nikolli

Hi,



Thank you for contacting WPML Support, I will be happy to help you.


According to your debug information, there are some files missing in your WPML folder.

"Fatal error: Uncaught Error: Class 'WPML\Core\Twig_Loader_Filesystem' not found"

Could you try again uninstalling and installing your WPML package manually?

Important: Backup your website files and database.

- Deactivate all WPML plugins (If any is active).
- Login via FTP to your wp-content/plugins/ folder.
- Delete all WPML folders.
- Go to http://wpml.org/my-account/downloads/ and download the latest WPML Multilingual CMS Plugin, then extract it.
- Upload the plugin via FTP to wp-content/plugins/ folder.
(alternatively you could upload the .zip folder using Dashboard -> Plugins -> new -> upload)
- Activate the WPML plugin via WP Dashboard -> plugins.
- Complete the setup, if needed.
- Register WPML for your site (at the end of setup, click on “generate key” button).
- Navigate to Dashboard > Plugins and locate WPML Multilingual CMS.
- Click on the blue link that says “Registered”.
- Download and activate all needed WPML Add-on Plugins.

* Please make sure that the WP_MEMORY_LIMIT on the wp-config.php file is set to at least 128M.

Please let me know if this works,
Marsel

January 12, 2024 at 2:20 pm #15179580

Claus

I did all steps earlier.

My problems was solved by the new release WPML v 4.6.9 (4.6.8 didn't work).