This thread is resolved. Here is a description of the problem and solution.
When trying to add a custom flag, I get an message:
Fatal error: Out of memory (allocated 143392768) (tried to allocate 83 bytes)
Please try increasing the WP Memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:
/** Memory Limit */
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
Add it above the line /* That's all, stop editing! Happy blogging. */
This is the technical support forum for WPML - the multilingual WordPress plugin.