Adding new locale - hangs at Step 3 'ResaveAllElements' I've looked at every option I can think of so hoping that someone can assist. We're on a dedicated server with full root access.

We've got a relatively small site that now needs a Spanish locale adding. When I go to add it, everything seems to be smooth running until 'ResaveAllElements - step 3' and 'ResaveElements - step 99 (sometimes around 94 ish too). 

First thing I checked was the error log and found:

Allowed memory size of 268435456 bytes exhausted (tried to allocate 79 bytes)


So, I then changed this to 1024M - no joy. Changed it to -1 and still get exactly the same issue. These settings are reflected in the phpinfo too so they seem to be in place.

I then phoned our server company and ran it by them who suggested placing .user.ini files in there to be sure and so we've done that and now we're at a loss. 

I found another post on here with a similar issue where the suggestion was to examine the craft.log - did that and found:

WHERE (lft = 1) AND (status = :status). Bound with :status='running') 2016/08/12 09:36:53 [trace] [system.CModule] Loading "components" application component in /*/craft/app/etc/web/WebApp.php (593) in /*/craft/app/models/TaskModel.php (81) in /*/craft/app/models/TaskModel.php (39)


Is there anything else we can try to get the locale that we've missed?

Any help would much appreciated.

Thanks!
You probably need to up Craft's internal memory limit, as well – the following should go into the array in your general.php configuration file:

'phpMaxMemoryLimit' =&gt; '1024M',