Hi!
I have already posted this as a support issue to the video project, but they asked me to post it here as well.
I'm using the video module with automatic video conversion done through ffmpeg. In my development site, everything works ok, but in my production site I am getting two errors in the Drupal logs everytime the cron job is run.
My cron job is set this way:
0 * * * * sh /home/mostmcom/public_html/mostreodom/converte_video.sh
converte_video.sh contains the following commands:
cd /home/mostmcom/public_html/mostreodom;
php -f video_scheduler.php
video_scheduler.php is a video conversion job provided by the video module.
The errors are the following:
- array_keys(): The first argument should be an array em /home/mostmcom/public_html/mostreodom/modules/logintoboggan/logintoboggan.module na linha 422.
in_array(): Wrong datatype for second argument em /home/mostmcom/public_html/mostreodom/modules/logintoboggan/logintoboggan.module na linha 422.
Can you help me on this?
Regards,
Carlos.
Comments
Comment #1
hunmonk commentedhere is the relevant code:
it appears that the global $user object is not being populated. in a properly bootstrapped drupal page load, this should never be an issue, so the problem is with the
video_scheduler.phpscript.Comment #2
zottmann commentedThanks!
I'll post this answer to the thread in the video project!
Regards,
Carlos.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.