Author Topic: Uploadign of files error  (Read 28654 times)

tiaan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Uploadign of files error
« on: September 04, 2008, 05:49:24 pm »
Hi everyone !
 First of all my comendations on an excellent product ! For someone that is no php developer or even close to a novice this was an easy install and I only have good things to say... However ... ::)  Whi I try to upload files I get he following error message:

Failed to create folder '/home/upbeatco/public_html/Intranet/upload/ce4c8/19ca1/13bb1'

Any suggestions ? I am no php developer so real layman's terms would be great.

Thanx !

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Uploadign of files error
« Reply #1 on: September 04, 2008, 07:04:12 pm »
Hey tiaan,
it seems like you can't create the folder. Have you checked the permissions? PHP should have write permissions on the 'upload' folder, to be able to save the documents.
If you can't solve it this way, try creating a file with the editor and tell me if you can save it correctly.
Thanks,
Marcos

tiaan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Uploadign of files error
« Reply #2 on: September 04, 2008, 07:14:53 pm »
Hi Marcos.

Thank you for replying. I have double checked all permissions and they 100% correct. When I try to create a document and save it I get "An error ocurred while saving the document"  ???

Any help will be greatly appreciated.

Thanx

Tiaan

Hey tiaan,
it seems like you can't create the folder. Have you checked the permissions? PHP should have write permissions on the 'upload' folder, to be able to save the documents.
If you can't solve it this way, try creating a file with the editor and tell me if you can save it correctly.
Thanks,
Marcos

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Uploadign of files error
« Reply #3 on: September 05, 2008, 09:51:27 am »
Tiaan,
please do the following:
in the file config.php (located in folder config, ender OpenGoo root) change the line
Code: [Select]
  define('DEBUG', false); for
Code: [Select]
  define('DEBUG', true); Reproduce the error and come back to the forum and post:
* the file log.php located in the cache folder under OpenGoo root
* any further error mesage you get
Thanks,
Marcos

tiaan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Uploadign of files error
« Reply #4 on: September 05, 2008, 04:13:46 pm »
Hi Marcos.

Than you very much for all the help. here is the log file.

<?php die(); ?>

Session "default" started at 2008-09-05T19:07:37+0000

#1 DEBUG: WARNING: Calling getProject() on an object with multiple workspaces.

#2 ERROR: Error: is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/upbeatco/:/usr/lib/php:/usr/local/lib/php:/tmp) in '/home/upbeatco/public_html/intranet/environment/functions/files.php' on line 241 (error code: 2)

#3 ERROR: Error: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/upbeatco/:/usr/lib/php:/usr/local/lib/php:/tmp) in '/home/upbeatco/public_html/intranet/environment/functions/files.php' on line 243 (error code: 2)

Time since start: 0.375967979431 seconds

-------------------------------------------------------------------------------

I still get "Failed to create folder '/home/upbeatco/public_html/intranet/upload/bcda8/597db/ea187' " when trying to upload a file, when I try to create a new document and save it I get " An error ocurred while saving the document "

Thanx again !

Tiaan

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Uploadign of files error
« Reply #5 on: September 06, 2008, 04:58:48 pm »
Hey tiaan,
the error you are getting is caused by PHP safe modeand base opendir  configuration.
You can read a little bit more about it here: http://www.php.net/features.safe-mode.
According to the restrictions defined for your PHP installation, /home directory cannot be listed, so the system can't check whether upbeatco folder exists. So, as a consequence, the program fails.
Please let us know if we can be of any further help.
Marcos

tiaan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Uploadign of files error
« Reply #6 on: September 09, 2008, 08:16:43 am »
Hi Marcos.

Thank you for the great assistance ! I actually solved the problem by changing it to upload files to the database instead of file system.

Thanx for all the help.

editfish

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Uploadign of files error
« Reply #7 on: September 12, 2008, 01:26:11 am »
there appears to be filetype limitations associated with the upload?  I've attempted a variety of files, and the typical .txt, .doc, .html, .jpg all work fine, but .tar, .gz, and .mp3 all fail.

Or is it a transfer protocol problem?

editfish

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Uploadign of files error
« Reply #8 on: September 12, 2008, 01:57:02 am »
I've setup up debug as recommended above:

<?php die(); ?>
Session "default" started at 2008-09-12T04:47:50+0000
#1 DEBUG: WARNING: Calling getProject() on an object with multiple workspaces.
Time since start: 0.213337898254 seconds
-------------------------------------------------------------------------------

What does this mean?   ???  Thanks!

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Uploadign of files error
« Reply #9 on: September 12, 2008, 11:33:56 am »
It is a developer warning that we did not remove (our fault) ... but nothing to worry about.
Marcos

editfish

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Uploadign of files error
« Reply #10 on: September 12, 2008, 11:09:46 pm »
there appears to be filetype limitations associated with the upload?  I've attempted a variety of files, and the typical .txt, .doc, .html, .jpg all work fine, but .tar, .gz, and .mp3 all fail.

Or is it a transfer protocol problem?

Marcos, I'm understanding then that my file uploading issue is unrelated to the developer warning--what is your recommended next step in troubleshooting this problem?

I've set my .htaccess to allow up to 16MB, and set the upload to the database instead of file, with the same results.

Thanks again for all your great assistance!

« Last Edit: September 12, 2008, 11:12:16 pm by editfish »

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Uploadign of files error
« Reply #11 on: September 13, 2008, 12:30:46 pm »
Great to hear it worked!

editfish

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Uploadign of files error
« Reply #12 on: September 13, 2008, 01:32:14 pm »
I think I may have miscommunicated a little in my last post--

I am still having problems, despite the changes to the .htaccess and the move from filesystem to database uploads.

Sorry for the confusion.

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Uploadign of files error
« Reply #13 on: September 14, 2008, 06:32:48 pm »
Sorry editfish,
I must have read some of tiaans posts and thought they were yours.
So then:
OpenGoo has no file type restrictions. And the warning is not related to your problem.
Please tell me:
Do you have anything else in the log?
What is the text of error you get while trying to upload?
Thanks,
Marcos

editfish

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Uploadign of files error
« Reply #14 on: September 14, 2008, 10:53:34 pm »
No problem.  :D

I've included a screenshot of the error (pops up for only a fraction of a second when it fails).  Files smaller than 2MB seem to be OK, with most of the trouble resulting from uploading larger files, despite changing my .htaccess to 16MB (which is reflected in the upload dialog screen; see second attached screenshot.)

I understand that the 'multiple workspaces' error is a legacy developer warning, but for some reason still gets logged each time an upload fails.

I've also attached a .txt copy of the logfile.

Thanks!
« Last Edit: September 14, 2008, 11:46:03 pm by editfish »