I have the problem that I cannot call cron.php with something like Wget. I have to use following call:
/usr/local/bin/php /home/deb14666/domains/qorc.nl/public_html/cron.php

With this call the domain isn't known. Therefore the specific domain modules and themes aren't known.

So when cron.php runs my theme is disabled in my website.

Comments

vm’s picture

Component: update system » other
Status: Active » Postponed (maintainer needs more info)

You may get better response to this in the forums where someone else may have had this problem.

Listing your environment may help as wel.

Local machine? if so; using what stack?

shared server? if so; what components? Have you spoken to the host about the issue. As they are in control of the way cron is set and run on their server.

vm’s picture

Title: cron.php » running cron.php removes theme

title change to better reflect problem.

vm’s picture

Title: running cron.php removes theme » running cron.php unsets theme

yet a better wording of title.

jork_zijlstra@hotmail.com’s picture

Title: running cron.php unsets theme » running cron.php on a multisite unsets theme

i did look at the forum but I didnt see a group for this type of posts.

Im running running Drupal 6.9 at a shared environment for the provider Antagonist.
The provider Antagonist doesn't give the admin the option to use Wget or Lynx. It isn't installed.

I have to use following call. In my opinion this is also the better way since there are no firewall issues involved.

/usr/local/bin/php /home/debxxxxxx/domains/www.example.com/public_html/cron.php
Themes are located in /sites/www.example.com/themes/theme1 and /sites/sub.example.com/themes/theme2

Because con.php is executed locally with /usr/local/bin/php there is no domain available. Therefore the domain specifics like themes and modules aren't seen during the cron run.
As a result of the cron run the themes aren't registered in the system table anymore and so the theme is unset in the website and all the cron methods in the modules aren't run.

ainigma32’s picture

Have you tried this http://drupal.org/node/246091 ? Make sure you read all the comments too.

- Arie

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

Looks like jork won't be posting any feedback so I'm setting this to fixed.

Feel free to reopen if you think that is wrong.

- Arie

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jork_zijlstra@hotmail.com’s picture

I did not have time to develop for a while, so thats why I didn't post.

As said I created my own version of what is described in http://drupal.org/node/246091.

I'm looping threw an array whih contains the domain. And then call then with curl.