Author Topic: Error classifying attachment  (Read 4998 times)

florut

  • Newbie
  • *
  • Posts: 14
    • View Profile
Error classifying attachment
« on: April 10, 2009, 05:48:33 am »
Hi,

Using pop mail on OG 1.3.1, when I try to classify mail with its attachments i get this error :
"error classifying attachment cant open file"

and mail is not classified until I unckek the attachment files...

Is that an issue or misconficuration ??

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Error classifying attachment
« Reply #1 on: April 13, 2009, 11:50:57 am »
Is this happening to you with all emails? Can you upload files? What web server are you using?

florut

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Error classifying attachment
« Reply #2 on: April 14, 2009, 04:14:22 am »
Hi,

Yes it is happening with all emails. I tried different accounts (POP and IMAP) and different filetypes : same problem.

I do can upload files in the "document" tab.

I'm using a web hosting service with mysql 5 / PHP 5.

Is there an error log (or a way to get one) in OpenGoo so I could trace the source of the problem?
Do you suspect anything ?

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Error classifying attachment
« Reply #3 on: April 17, 2009, 12:37:21 pm »
You need to enable debugging mode. Read this for instructions: http://wiki.opengoo.org/doku.php/debugging

betty111111

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • Email
Re: Error classifying attachment
« Reply #4 on: April 20, 2009, 04:52:09 pm »
v1.3.1

I am having the same problem.    I can upload files right into Documents.   When trying to classify an email with an attachment I get:

"Error classifying attachment: can't open file"

Number8

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
Re: Error classifying attachment
« Reply #5 on: April 21, 2009, 04:25:38 pm »
OG 1.3.1

cache/log.php:

Code: [Select]
<?php die(); ?>

Session "default" started at 2009-04-21T19:22:51+0000


#1 ERROR: Error: fopen(/home/diesel/public_html/power/admin/tmp/saveatt/2xPlayer Manual.doc)
[<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in
'/home/diesel/public_html/power/admin/application/controllers/MailController.class.php' on line 495 (error code: 2)


Time since start: 1.6734721660614 seconds
« Last Edit: April 21, 2009, 06:45:41 pm by ignacio »

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Error classifying attachment
« Reply #6 on: April 21, 2009, 06:29:23 pm »
Could it be the space in the filename? Is this happening when attachments don't have spaces on its filename?

Number8

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
Re: Error classifying attachment
« Reply #7 on: April 21, 2009, 07:38:56 pm »
Could it be the space in the filename? Is this happening when attachments don't have spaces on its filename?
Don't think it's the filename.  Just tested with an email with 'test.txt' attached; no joy.

More revealing is this:
fopen(/home/diesel/public_html/power/admin/tmp/saveatt/2xPlayer Manual.doc)

The /admin/tmp dir is empty -- no files, no subdirs.
Could it be a permissions problem?  If so, how might I solve it?

Number8

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
Re: Error classifying attachment
« Reply #8 on: April 21, 2009, 07:42:37 pm »
COOL!  I just created admin/tmp/saveatt/, tried to classify email with attachments, and it appears to have worked as expected.

Great feature, putting the attachments in Documents and setting up the links from the documents to the email.