0

I have a craft 2 set with different locales. I deleted one locale and now some of chinese entires seem to be missing the proper url paths. As soon as I open and save the english version the chinese url is corrected. So I open and saved the section to force a resave - this resulted in a stalled task but no 404 error log. There too many to do by hand so I had a standalone script Brendan gave me and used it like below to set a background task:

$app->tasks->createTask('ResaveElements', 'Resaving entries', array(
    'elementType' => ElementType::Entry,
    'criteria' => array(
        'locale' => 'en',
        'status' => null,
        'limit' => '600',
        'localeEnabled' => false,
    )
));

This runs for a little while then produces errors like below. I have set the php memory limit to unlimited (64GB ram server) but it still errors every time.
I don't want to open all by hand and save. Any ideas?

[13-Nov-2019 16:16:44 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 65013912 bytes) in /home/staging/kelp.stagingbox/craft/app/etc/logging/FileLogRoute.php on line 65
[13-Nov-2019 16:17:47 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 65013904 bytes) in /home/staging/kelp.stagingbox/craft/app/etc/logging/FileLogRoute.php on line 65
[13-Nov-2019 16:18:49 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 65013912 bytes) in /home/staging/kelp.stagingbox/craft/app/etc/logging/FileLogRoute.php on line 65
[13-Nov-2019 16:20:02 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 147456 bytes) in /home/staging/kelp.stagingbox/craft/app/vendor/elvanto/litemoji/src/LitEmoji.php on line 112
[13-Nov-2019 16:20:02 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/staging/kelp.stagingbox/craft/app/framework/YiiBase.php on line 513
[13-Nov-2019 16:22:28 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 147456 bytes) in /home/staging/kelp.stagingbox/craft/app/vendor/elvanto/litemoji/src/LitEmoji.php on line 112
[13-Nov-2019 16:22:28 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/staging/kelp.stagingbox/craft/app/framework/YiiBase.php on line 507
[13-Nov-2019 17:26:26 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/staging/kelp.stagingbox/craft/app/etc/logging/Logger.php on line 61
[13-Nov-2019 17:26:26 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/staging/kelp.stagingbox/craft/app/framework/YiiBase.php on line 507
[13-Nov-2019 17:30:45 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/staging/kelp.stagingbox/craft/app/etc/logging/Logger.php on line 61
[13-Nov-2019 17:30:45 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/staging/kelp.stagingbox/craft/app/framework/YiiBase.php on line 507
[13-Nov-2019 17:33:58 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 147456 bytes) in /home/staging/kelp.stagingbox/craft/app/vendor/elvanto/litemoji/src/LitEmoji.php on line 112
[13-Nov-2019 17:33:58 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 8388616 bytes) in /home/staging/kelp.stagingbox/craft/app/framework/logging/CLogFilter.php on line 67
[13-Nov-2019 17:40:30 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 27257056 bytes) in /home/staging/kelp.stagingbox/craft/app/etc/logging/FileLogRoute.php on line 65

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.