Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - visitor123456

Pages: [1]
1
Installation problems / "File to upload file" issue - with some debug info
« on: February 27, 2011, 11:02:19 am »
Hello,

I have installed FO and all went smoothly. However, I'm now facing the issue of not being able to upload files ("Documents" tab).

Administrator account
Generally, cannot upload files. However, I noticed that after clicking three time the "Add file" button, the system uploads the file correctly on the fourth attempt!
Once checked out, I cannot check it in.

User account
Cannot upload new files, cannot modify & save existing ones.

Configuration
User have proper access rights to the workspace.
/tmp folder - rights 777
/uploads folder - rights 777

Log.php gives the following error:
Session "default" started at 2011-02-27T13:45:39+0000

#1 DEBUG: Error when uploading file:#0 /var/sites/my_site/public_html/application/controllers/FilesController.class.php(361): ProjectFile->handleUploadedFile(Array, true, '-- Initial vers...')
    #1 /var/sites/my_site/public_html/environment/classes/controller/Controller.class.php(76): FilesController->add_file()
    #2 /var/sites/my_site/public_html/environment/classes/controller/PageController.class.php(62): Controller->execute('add_file')
    #3 /var/sites/my_site/public_html/environment/classes/Env.class.php(133): PageController->execute('add_file')
    #4 /var/sites/my_site/public_html/init.php(163): Env::executeAction('files', 'add_file')
    #5 /var/sites/my_site/public_html/index.php(9): require('/var/sites/g/gw...')
    #6 {main}
Time since start: 0.46018004417419 seconds

Progress bar plug-in installed.

I've done a little bit of digging in the code and noticed the following:
application/controllers/FilesController.class.php
Line - 298:
      $file_data = array_var($_POST, 'file');
At this point $file_data is already missing required properties - var_dump:
array(13) {
  ["add_type"]=>  string(7) "regular"
  ["file_id"]=>  string(0) ""
  ["edit_name"]=>  string(0) ""
  ["type"]=>  string(0) ""
  ["upload_id"]=>  string(20) "og_1298811676_722850"
  ["url"]=>  string(0) ""
  ["name"]=>  string(13) "test_filename.txt"
  ["upload_option"]=>  string(2) "-1"
  ["revision_comment"]=>  string(21) "-- Initial version --"
  ["tags"]=>  string(0) ""
  ["description"]=>  string(0) ""
  ["comments_enabled"]=>  string(1) "1"
  ["anonymous_comments_enabled"]=>  string(1) "0"
  }

This leads to unsuccessful method call in line 361 and error in the log:
               $revision = $file->handleUploadedFile($uploaded_file, true, $revision_comment); // handle uploaded file

Is anyone able to nail down the problem based on the information provided above? I have read all threads related to this issue on this forum and followed links to documentation so please do not point me there...

Oh, my server is unix based with apache, shared hosting environment. This should not be an issue though since all relevant variables have decent values set (i.e. much higher than required by FO).

Any ideas why this does not work? We'd like to roll out this software for your organization but issue with ability to upload/modify documents must be resolved first...

Pages: [1]