[Tickets #9810] PHP Error when changin permissions on file/folder

bugs at horde.org bugs at horde.org
Tue Apr 5 13:25:05 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9810
------------------------------------------------------------------------------
  Ticket             | 9810
  Created By         | jkara at auth.gr
  Summary            | PHP Error when changin permissions on file/folder
  Queue              | Gollem
  Version            | 1.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | manager.php
------------------------------------------------------------------------------


jkara at auth.gr (2011-04-05 13:25) wrote:

When changing permissions on a file/folder, webmail displays a blank page.
in the error Log:
[Tue Apr 05 16:05:54 2011] [error] [client 155.207.xxx.yyy] PHP Fatal  
error:  Call to a member function getMessage() on a non-object in  
/var/www/webmail.auth.gr/htdocs/horde/gollem/manager.php on line 79,  
referer: https://webmail.auth.gr/horde/gollem/manager.php


I do not know if this has been resolved in a later version but after  
reviewing source code of manager.php, I have discovered that the  
solution is to change two lines:

75c75,76
<                     if  
(!is_a(Gollem::changePermissions(Gollem::getDir(), $item, $chmod),  
'PEAR_Error')) {
---
> 		    $result = Gollem::changePermissions(Gollem::getDir(), $item, $chmod);
>                     if (!is_a($result, 'PEAR_Error')) {


Hope this helps someone.

jack






More information about the bugs mailing list