Feng Forum
Support => Older versions => : Nuno Zimas July 30, 2009, 09:58:51 AM
-
Another error which happens only in very specific circumstances.
In certain Workspaces, ia regular user performs the following sequence:
Documents > New > Upload a file > (the file is reckoned) > Add File
Fatal error: Call to undefined method
FileRepository_Backend_FileSystem::saveFileAttributes()
in /var/www/opengoo/library/filerepository/backend/FileRepository_Backend_FileSystem.class.php
on line 282
The permissions for that user and workspace are set correctly.
Admins can upload to that same workspace with no problem.
-
Thanks Nuno,
Fixed for next release, along with the milestone copy error you reported earlier.
-
Thanks Nuno,
Fixed for next release, along with the milestone copy error you reported earlier.
Would you mind posting the code lines to add or change?
Thanks!
Nuno.
-
Today we are releasing 1.5.1.
I'm attaching the file you have to replace: 'library/filerepository/backend/FileRepository_Backend_FileSystem.class.php'
Regards
-
Hi Nuno,
Can you confirm if this patch fixes your poblem? Thanks.
-
Not quite.
The reported fatal error is gone, but a new error message pops up:
Error: You must choose at least one workspace where to put the object.
There's a workspace selected, of course.
Cache has been cleaned before testing.
Using Firefox 3.5.2
Nuno.
-
Do you have permissions to write files on the workspace you are choosing?
-
Yep. Read / write permissions on the workspace confirmed.
-
Is it a fresh install? An upgrade from a previous version? Is it with all workspaces or some specific one?
-
Upgraded environment (1.4.2 -> 1.5 RC -> 1.5 final).
The incident happens in one particular workspace.
I have double checked the user permissions on that particular workspace and read / write is ticked in the Files column.
-
Hi Nuno,
To fix this issue replace line 113 of '/application/controllers/ObjectController.class.php'
with this one:
if ($object->canAdd(logged_user(), $ws)) {