vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Problem with Crons (https://vborg.vbsupport.ru/showthread.php?t=177404)

Bellardia 04-28-2008 01:41 PM

Problem with Crons
 
I made a script that uses image id's stored in MySQL to create custom images, save them to a file, and then put the file url back into the table.

The problem comes from the cron job. I've set it to run every 10minutes, which it seems to do just fine, however when it runs on its own the result is an empty file consisting of just the background layer. The thing I don't understand is that if I go to vbulletin options > scheduled tasks, and 'Run Now' the images are created perfectly.

Anyone know a possible cause for this problem?

Thanks a lot!

Lynne 04-28-2008 02:16 PM

I have had this happen, and I don't know that there is any one answer. For me, I think it was a permissions thing (check your file permissions), but another time I think it was the file format.

It sounds like it is getting part way through your script and then not finishing, is that correct? Maybe post the code and we can see if there is something wrong.


All times are GMT. The time now is 07:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01062 seconds
  • Memory Usage 1,700KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete