Skip to content Skip to sidebar

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 2 voices.

Last updated by Mateus Getulio 1 year, 11 months ago.

Assisted by: Mateus Getulio.

Author Posts
May 22, 2024 at 7:21 pm

ahmede-36

Background of the issue:
I am experiencing issues with the WPML Multilingual CMS plugin on a site currently under development. I am trying to configure WPML settings and languages but am encountering limitations and errors.
they give me this error
we are dedicated issues on the wpml settings/languages I am inserting this img screenshot
hidden link
only this 2 options are available
site Language
Language URL format
this is details for the case error

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, WPML Multilingual CMS.

First, visit your website (hidden link) and check for any visible issues. Next, visit the page where the error was caught (hidden link) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.5.3
Active theme: XTRA (version 4.8.5)
Current plugin: WPML Multilingual CMS (version 4.6.11)
PHP version 8.2.18

Error Details
=============
An error of type E_ERROR was caused in line 58 of the file /home/awshussein/public_html/wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Cache/FilesystemCache.php. Error message: Uncaught Error: Call to undefined function umask() in /home/awshussein/public_html/wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Cache/FilesystemCache.php:58
Stack trace:
#0 /home/awshussein/public_html/wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php(433): WPMLCoreTwigCacheFilesystemCache->write('/home/awshussei...', '

Symptoms:
The WPML settings page only shows two options: 'Site Language' and 'Language URL format'. Additionally, a fatal error was detected by WordPress, specifically with the WPML plugin, which caused an E_ERROR in the FilesystemCache.php file.

Questions:
Why are only two options ('Site Language' and 'Language URL format') available in the WPML settings?
How can I resolve the fatal error caused by the WPML plugin as indicated in the error message?

May 23, 2024 at 11:23 am #15662543

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hi,

Thanks for contacting us.

Can you please test minimal, using a default theme(if applicable) and with all non-WPML and essentials plugins disabled to see if the error persists. If possible make a backup of the site before doing it or test on a staging copy.

Also, according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

If the issue persists, 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.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

May 23, 2024 at 9:27 pm #15665277

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello there,

Thank you for sharing that access.

I checked it and the issue is that the function umask has been disabled in the PHP versions 8.1 and 8.2 in your environment.

I also tried running a default phpinfo() to check the PHP settings and directives enabled for your site and I got the following error outside WPML :

Fatal error: Uncaught Error: Call to undefined function phpinfo() in /info.php:3 Stack trace: #0 {main} thrown in /info.php on line 3

The same issue doesn't seem to be happening with the PHP version 7.4, I temporarily switched to PHP 7.4 so you can see that it is working, please let me know if you want me to switch back to PHP 8.2. You can do it inside the cPanel > MultiPHP Manager.

Please reach out to the host support or the server administrator and ask them to review why the PHP function umask is disabled in the PHP 8.1 and 8.2, and if it is possible to re-enable it:

hidden link

Once umask is available again, you can switch back to PHP 8.2 and use WPML normally.

Thank you, please let me know.
Mateus

May 24, 2024 at 7:20 pm #15669039

ahmede-36

thank you sir for your help thank a lot