bugphpGroupWare - Bugs: bug #10797, asyncservices broken


You are not allowed to post comments on this tracker with your current authentication level.

bug #10797: asyncservices broken

Submitted by:  JM López-Cepero <andvaranaut>
Submitted on:  Mon 25 Oct 2004 05:25:54 PM UTC  
Item Group: Category:  API - phpGroupware API
Severity:  3 - Normal Priority:  7 - High
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  TGZ Operating System:  GNU/Linux - RedHat/Fedora
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Tue 26 Oct 2004 11:24:20 AM UTC, comment #3:

Oops - it seems that what is broken is the TestJob. I set up an alarm and went off fine. I'll keep experimenting.

JM López-Cepero <andvaranaut>
Tue 26 Oct 2004 10:16:20 AM UTC, comment #2:

Thanks for your reply, but...

1) I have set every variable to what php-configuration advises (including the dreaded register_globals) and tested with phpinfo that they are indeed well set up, and the error still appears. The SMTP setup itself is fine; I can send emails from the E-Mail app with no problem.

2) What I'm talking about is the 'Fatal error' (I can live with the notices). Changing my errorlevel would get rid of the notices, but not of the fatal error. Also, ignoring notices instead of fixing them (what they are warning about is use of undefined literal constants as indices, I think, which is deprecated in PHP4) does not seem like a good philosophy, but I'm no developer to argue...

3) My config is a stock Fedora one with minimal changes and several rather complex PHP applications run OK. I don't think it's that 'broken'. And I was not suggesting phpgw was broken either - I love what I have seen of it, I just found something that does not work as expected.

Thanks for your time - CP

JM López-Cepero <andvaranaut>
Tue 26 Oct 2004 07:30:11 AM UTC, comment #1:

Have a read of /path/to/phpgroupware/docs/php-configuration.txt

You error level is too high, which causes those message. It is your config which is broken not phpgw.

Mon 25 Oct 2004 05:25:54 PM UTC, original submission:

I have recently installed phpgw and set it up as described in the web page documentation. Everything seems to be working fine except for the asynchronous services. The crontab is correctly set up and asyncservices is called OK, but if I add the TestJob I get the following PHP output:

PHP Notice: Use of undefined constant MCRYPT_TRIPLEDES - assumed 'MCRYPT_TRIPLEDES'
in /var/www/phpgroupware/phpgwapi/inc/common_functions.inc.php on line 533
PHP Notice: Use of undefined constant MCRYPT_MODE_CBC - assumed 'MCRYPT_MODE_CBC'
in /var/www/phpgroupware/phpgwapi/inc/common_functions.inc.php on line 533
PHP Notice: Undefined index: HTTP_HOST in
/var/www/phpgroupware/phpgwapi/inc/class.sessions.inc.php on line 419
PHP Fatal error: Call to a member function on a non-object in
/var/www/phpgroupware/email/inc/class.mail_msg_base.inc.php on line 888

The notices are there whenever I run the script (they are rather annoying, by the way), but the fatal error only appears when an e-mail was supposed to be sent. It seems that the email sending method is correctly invoked.

The offending line (really 887) is

$this->so->prep_db_session_compat('begin_request LINE '.__LINE__);

Maybe the $this->so is not initialized properly when the line is reached?

My setup: Apache 2.0.51, php 4.3.8 (module), mysql 3.23.58 (all the db stuff seems to be working fine).

Thanks for your time. I have found a few similar errors by searching in forums/google/bugs, but none had any valid solution.

Best regards - CP

JM López-Cepero <andvaranaut>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.3