Resolved
Reported for: WPML Multilingual CMS 3.5.1.1
Resolved in: WPML Multilingual CMS 3.6.0
Overview of the issue
In some cases, depending on the theme size and strings included in it, there might be an issue when activating the Translate the theme and plugins using WPML’s String Translation option, on the WPML -> Theme and plugins localization page.
This happens because activating that option triggers a string-processing scan at the same time. In case the theme has a lot of strings, it can lead to an error with reaching the maximum execution time limit, or memory limit being exhausted.
Workaround
It is enough to define the constant:
define( 'WPML_DISABLE_AUTOMATIC_THEME_SCANNING', true);
in wp-config.php. This will turn off the theme auto-scanning feature.
This will allow you to save the option. Afterward, if you want, you can manually re-scan the theme for strings.