6.0.0-beta1
7/5/25

[#8808] Call to a member function hasCapability() on a non-object
Summary Call to a member function hasCapability() on a non-object
Queue Vacation
Queue Version 3.2
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester ruben (at) auger (dot) org (dot) ar
Created 12/29/2009 (5667 days ago)
Due
Updated 12/30/2009 (5666 days ago)
Assigned
Resolved 12/30/2009 (5666 days ago)
Github Issue Link
Github Pull Request
Milestone 3.2.1
Patch Yes

History
12/30/2009 06:01:40 PM CVS Commit Comment #5 Reply to this comment
Changes have been made in CVS for this ticket:

MFB:
[jan] Fix driver capability check if users are allowed to change From: headers
(Bug #8808).
http://cvs.horde.org/diff.php/vacation/docs/CHANGES?rt=horde&r1=1.82&r2=1.83&ty=u
http://cvs.horde.org/diff.php/vacation/lib/Driver.php?rt=horde&r1=1.54&r2=1.55&ty=u
12/30/2009 04:23:46 PM Jan Schneider Comment #4
Assigned to Jan Schneider
State ⇒ Resolved
Milestone ⇒ 3.2.1
Reply to this comment
Fixed, thanks.
12/30/2009 04:23:30 PM CVS Commit Comment #3 Reply to this comment
Changes have been made in CVS for this ticket:

[jan] Fix driver capability check if users are allowed to change From: headers
(Bug #8808).
http://cvs.horde.org/diff.php/vacation/docs/CHANGES?rt=horde&r1=1.57.2.25&r2=1.57.2.26&ty=u
http://cvs.horde.org/diff.php/vacation/lib/Driver.php?rt=horde&r1=1.35.2.8&r2=1.35.2.9&ty=u
12/30/2009 11:18:55 AM mviktor (at) valamo (dot) fi Comment #2 Reply to this comment
This bug bite us, too.

When user try set vacation message
------------
PHP Fatal error:  Call to a member function hasCapability() on a 
non-object in /var/www/sslsites/vacation/lib/Driver.php on line 255

And, when user try switch off exsisting vacation message,
------------
PHP Fatal error:  Call to a member function hasCapability() on a 
non-object in /var/www/sslsites/vacation/lib/Driver.php on line 320

Monk Viktor
Valamo monastery

12/29/2009 01:51:51 PM ruben (at) auger (dot) org (dot) ar Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Call to a member function hasCapability() on a non-object
Queue ⇒ Vacation
Milestone ⇒
Patch ⇒ Yes
New Attachment: Horde_Vacation_patch_20091228.diff Download
State ⇒ Unconfirmed
Reply to this comment
When

   $conf['vacation']['from'] = true

Trying to set the vacation notice gives this error:

Call to a member function hasCapability() on a non-object in 
/usr/share/horde3/vacation/lib/Driver.php on line 255

On that line there is a call to:

   $driver->hasCapability('changeFrom')

But $driver is a variable that contains the name aof the driver 
selected and not driver object

Patch to fix this attached.

Hope it helps.

======
Ruben Squartini
Administrador Tecnico y de Sistemas
Proyecto Observatorio Pierre Auger
Av. San Martin (N) 304
Malargue - Mendoza
Tel.: +54 2627 471556/562/579
http://www.linkedin.com/in/rubensquartini
===============================

Saved Queries