Summary | PHP Error when changin permissions on file/folder |
Queue | Gollem |
Queue Version | 1.1 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | jkara (at) auth (dot) gr |
Created | 04/05/2011 (5182 days ago) |
Due | |
Updated | 04/19/2011 (5168 days ago) |
Assigned | |
Resolved | 04/19/2011 (5168 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | Yes |
State ⇒ Resolved
Keep copy of PEAR_Error (
Bug #9810).http://cvs.horde.org/diff.php/gollem/manager.php?rt=horde&r1=1.146.2.23&r2=1.146.2.24&ty=u
Priority ⇒ 2. Medium
New Attachment: manager.php
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Gollem
Summary ⇒ PHP Error when changin permissions on file/folder
Type ⇒ Bug
State ⇒ Unconfirmed
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')) {
---
if (!is_a($result, 'PEAR_Error')) {
jack