vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   crons not working (https://vborg.vbsupport.ru/showthread.php?t=299778)

NeXuM 07-03-2013 11:24 PM

crons not working
 
This has been annoying me since years. Crons are not working on my forum (vb 3.6.4) i don't remember if they ever worked but it doesn't since many years.

I have to login in admincp and manually launch the crons jobs if i want my users to be promoted to the correct groups (i have a promotion set to promote users to a different group when they reach 150 posts).
It works fine when i launch them manually from admincp but it doesn't work when i set it to be launched automatically once every X minutes.

I am 100% sure that everything is correctly setup in the ACP crons section.

I have also tried to reset my footer template to default to ensure the function to launch crons is still there, but it doesn't change anything.

Any clue where i should look to fix this bug ?

Another "solution" would be to write my own PHP code to launch the cron jobs and include this code in the footer.
I have tried copying "admincp/cron.php" and just keeping the "runcron" function then including the page inside an hidden iframe to trigger it every time a user visit the forum. But it will only works if the user is a logged-on admin.

NeXuM 07-08-2013 03:04 AM

any help ?

crons not working cause all sort of problems, for example from time to time my users can't login anymore because the session sql table gets full and i have to manually empty it.

tbworld 07-08-2013 08:56 AM

You have all sorts of 404 errors on your site. Including files that cron is trying to reach.
If you can do a little php you can run a backtrace from the call in your footer and log the data. Tracing through that data will tell you if it is being executed, but I don't believe that is your problem.

I would look at a file permission problem or url rewriting problem.


All times are GMT. The time now is 02:45 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.01009 seconds
  • Memory Usage 1,708KB
  • 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
  • (3)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