I Tried to change the following files:
1) wp-config.php
define(‘WP_MEMORY_LIMIT’, ’64M’);
2) /wp-includes/cache.php
ini_set(‘memory_limit’,’96M’); // set memory to prevent fatal errors
3) create a file wp-includes/.htaccess
# set memory limit for cache.php php_value memory_limit 96M
4) wp-includes/php.ini
;; set memory limit for cache.php memory_limit = 96M
5) increase the value of server php.ini:
memory_limit = 96M
Now the error is gone, but the create template button is not working, it doesn't enable the green stage to click whem I type the name of new template.