MyBB Community Forums

Full Version: task write empty string in log
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi, i create a custom task, at the end of the elaboration this code write to task log

add_task_log($task, "*".$lang->task_removevip_ran);


i added the key task_removevip_ran into both global.lang.php in the folders

/inc/languages/english/admin
/inc/languages/italiano/admin

if i run the task manually it write correctly the string in the task log

when the task run from scheduler it write only *

Thanks.
lang might not be loaded properly in the task. You need to add the key to the non-admin language folders too. So not just inc/languages/*/admin but also inc/languages/*/.
thanks!
(2017-07-18, 02:58 PM)fdb Wrote: [ -> ]thanks!

No problem! Did that fix your issue?