mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #04383
[Bug 794490] Re: Cron is not running
Hi Michael,
Thanks for reporting this bug. Someone will look into this soon.
For whoever looks into it:
There are a few things:
-The function
get_relative_script_path() (htdocs/lib/web.php:2434 (on master))
uses substr against get_script_path but giving the length of
get_mahara_install_subdirectory(), need to work out which one is needed
-The function
get_mahara_install_subdirectory (htdocs/lib/mahara.php:1993 (master))
uses strpos($wwwroot, '/'). This will return -1 if the wwwroot is
something like
https://localhost (ie. no trailing /)
This case should get picked up, because init.php adds a '/' at end if
there isn't one.
Cheers,
Hugh
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/794490
Title:
Cron is not running
Status in Mahara ePortfolio:
Confirmed
Bug description:
Mahara v1.4rc3
Linux 2.6.26-2
PHP 5.2.6
Apache-Server 2.2.9
postgresql-Server 8.4
I was trying to setup the cronjob for mahara explained like in the
wiki:
https://wiki.mahara.org/index.php/System_Administrator%27s_Guide/Cron_Job.
But it do not work.
See the entry in the /etc/crontab:
*/5 * * * * www-data php -c /etc/php5/apache2/php.ini /data/srv/www/mahara/lib/cron.php >> /var/log/mahara/cron.log 2>&1
and the output of log-file in /var/log/mahara/cron.log:
"A nonrecoverable error occured. This probably means you have encountered a bug in the system[WAR] 1f (lib/web.php:2291) redirect() should be called with either /[something] for local redirects or http[something] for absolute redirects
Call stack (most recent first):
* redirect("ar/www/mahara/lib/cron.php") at /var/www/mahara/init.php:192
* require("/var/www/mahara/init.php") at /var/www/mahara/lib/cron.php:33
A nonrecoverable error occured. This probably means you have
encountered a bug in the system".
Has anybody an idea?
Thanx,
michael wuttke
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/794490/+subscriptions
References