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 11.40 hours from now. Thank you for your understanding.

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

Problem: When trying to configure WPML, the third step encountered problems:

Warning: include(*/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/../../lib/twig/src/Cache/FilesystemCache.php): failed to open stream: No such file or directory in */wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444
 
Warning: include(): Failed opening '*/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/../../lib/twig/src/Cache/FilesystemCache.php' for inclusion (include_path='.:/opt/alt/php73/usr/share/pear') in */wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444
 
Fatal error: Uncaught Error: Class 'WPML\Core\Twig\Cache\FilesystemCache' not found in */wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php:265 Stack trace: #0 */wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php(130): WPML\Core\Twig\Environment->setCache('*') #1 */wp-content/plugins/sitepress-multilingual-cms/classes/wpml-wp/class-wpml-wp-api.php(1240): WPML\Core\Twig\Environment->__construct(Object(WPML\Core\Twig\Loader\FilesystemLoader), Array) #2 */wp-content/plugins/sitepress-multilingual-cms/classes/templating/class-wpml-templates-factory.php(117): WPML_WP_API->get_twig_environment(Object(WPML\Core\Twig\Loader\FilesystemLoader), Array) #3 */wp-content/plugins/sitepress-multilingual-cms/classes/templating/class-wpml-templates-factory.php(67): WPML_Templates_Factory->maybe_init_twig() #4 */wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php on line 265

Solution: It seems that the issue was caused because some files were missing from the plugin's folder. I updated the plugin's files and now the issue is solved.

Relevant Documentation:

This topic contains 4 replies, has 2 voices.

Last updated by Carlos Rojas 1 month ago.

Assigned support staff: Carlos Rojas.

Author Posts
September 17, 2019 at 12:25 pm #4588437

Pablo

When trying to configure WPML, the third step encountered problems:

Warning: include(*/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/../../lib/twig/src/Cache/FilesystemCache.php): failed to open stream: No such file or directory in */wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444

Warning: include(): Failed opening '*/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/../../lib/twig/src/Cache/FilesystemCache.php' for inclusion (include_path='.:/opt/alt/php73/usr/share/pear') in */wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444

Fatal error: Uncaught Error: Class 'WPML\Core\Twig\Cache\FilesystemCache' not found in */wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php:265 Stack trace: #0 */wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php(130): WPML\Core\Twig\Environment->setCache('*') #1 */wp-content/plugins/sitepress-multilingual-cms/classes/wpml-wp/class-wpml-wp-api.php(1240): WPML\Core\Twig\Environment->__construct(Object(WPML\Core\Twig\Loader\FilesystemLoader), Array) #2 */wp-content/plugins/sitepress-multilingual-cms/classes/templating/class-wpml-templates-factory.php(117): WPML_WP_API->get_twig_environment(Object(WPML\Core\Twig\Loader\FilesystemLoader), Array) #3 */wp-content/plugins/sitepress-multilingual-cms/classes/templating/class-wpml-templates-factory.php(67): WPML_Templates_Factory->maybe_init_twig() #4 */wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php on line 265

I use:
WPML 4.2.8
WP 5.2.3
PHP 7.3

September 18, 2019 at 11:26 am #4595559

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Kind regards,
Carlos

September 18, 2019 at 12:25 pm #4596547

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for the information provided.

It seems that the issue was caused because some files were missing from the plugin's folder. I updated the plugin's files and now the issue is solved.

Regards,
Carlos

September 18, 2019 at 12:32 pm #4596573

Pablo

My issue is resolved now. Thank you!

September 18, 2019 at 2:13 pm #4597351

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,

I'm glad to hear that the issue is solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos