Hallo again,
I just played a bit:
Actually, I'm getting the following stacktrace (line numbers may be incorrect, I added debugging statements):
#0 /kunden/153079_80335/webseiten/core/vb/api/content.php(429): vB_Api_Content->getFullContent('40540', false)
#1 /kunden/153079_80335/webseiten/core/includes/functions_digest.php(189): vB_Api_Content->getContent('40540')
#2 /kunden/153079_80335/webseiten/core/includes/cron/digestdaily.php(29): exec_digest(2)
#3 /kunden/153079_80335/webseiten/core/includes/functions_cron.php(248): include_once('/kunden/153079_...')
#4 /kunden/153079_80335/webseiten/core/vb/api/cron.php(34): exec_cron()
#5 [internal function]: vB_Api_Cron->run()
#6 /kunden/153079_80335/webseiten/core/vb/api/wrapper.php(199): call_user_func_array(Array, Array)
#7 /kunden/153079_80335/vbcron-abs.php(38): vB_Api_Wrapper->__call('run', Array)
#8 /kunden/153079_80335/vbcron-abs.php(38): vB_Api_Wrapper->run()
#9 {main}
Since the call to the validate function (which on content.php(445)) does not provide a userid, the validate function uses the session's userid. I assume(!) that this is a guest's userid, since this entire call is launched by the scheduled tasks.
Now, I changed functions_digest.php(189) such that it hands over the following parameters to content.php(429):
1. $post['nodeid'] (unchanged)
2. false (default of the pre-existing permissions parameter)
3. $post['userid'] (the new one): this is the userid of the user who is get the email
The nodeid and userid gets handed over to the validate function.
Result: it works
I'm now having trouble creating the Array functions_digest.php(191). Sorry guys, but have you ever tested this thing?
Thanks.
Stefan
I just played a bit:
Actually, I'm getting the following stacktrace (line numbers may be incorrect, I added debugging statements):
#0 /kunden/153079_80335/webseiten/core/vb/api/content.php(429): vB_Api_Content->getFullContent('40540', false)
#1 /kunden/153079_80335/webseiten/core/includes/functions_digest.php(189): vB_Api_Content->getContent('40540')
#2 /kunden/153079_80335/webseiten/core/includes/cron/digestdaily.php(29): exec_digest(2)
#3 /kunden/153079_80335/webseiten/core/includes/functions_cron.php(248): include_once('/kunden/153079_...')
#4 /kunden/153079_80335/webseiten/core/vb/api/cron.php(34): exec_cron()
#5 [internal function]: vB_Api_Cron->run()
#6 /kunden/153079_80335/webseiten/core/vb/api/wrapper.php(199): call_user_func_array(Array, Array)
#7 /kunden/153079_80335/vbcron-abs.php(38): vB_Api_Wrapper->__call('run', Array)
#8 /kunden/153079_80335/vbcron-abs.php(38): vB_Api_Wrapper->run()
#9 {main}
Since the call to the validate function (which on content.php(445)) does not provide a userid, the validate function uses the session's userid. I assume(!) that this is a guest's userid, since this entire call is launched by the scheduled tasks.
Now, I changed functions_digest.php(189) such that it hands over the following parameters to content.php(429):
1. $post['nodeid'] (unchanged)
2. false (default of the pre-existing permissions parameter)
3. $post['userid'] (the new one): this is the userid of the user who is get the email
The nodeid and userid gets handed over to the validate function.
Result: it works
I'm now having trouble creating the Array functions_digest.php(191). Sorry guys, but have you ever tested this thing?
Thanks.
Stefan
Comment