Hi,
I'm working with the latest module of advanced forum. I would like to make it possible to add images to a forumsubject. I can upload images without any problem in the basic page cck where I added an imagefield to upload an image.
I have add an imagefield at the cck forum and when I want to add the image I get this error: An error has occurred. The uploaded file is probably exceeding the maximum file size.
Since I can upload (the same) images in other cck's it just can not be that the maximum file size is exceeded.
It seems it is impossible to upload files with the advanced forum cck. Can anyone help me or give me sugestions to do?
Thanks in advance!

Comments

Category:bug» support
Status:Needs review» Fixed

AF is not handling file uploads at all. It is handled by Drupal core and/or FileField module.
It looks like you have misconfigured Apache/PHP. Check Apache logs, increase max. file upload size in php.ini, try to upload smaller file.

"Needs review" status is used when you have some patch for review.

Status:Fixed» Active

Ok that AF is not handling file uploads. But I can upload imagefiles for other cck's, only cck forum stukcs.
Can you help me with the log.files? I'm sorry for the "needs review" status, I tought it could not be something else than advanced forum because it worked well with the basic page.

I have looked to the access.log file from apache. When uploading an image for the forum I see:

127.0.0.1 - - [08/May/2013:19:41:04 +0200] "POST /Mysitesname/?q=nl/file/ajax/field_forumafbeelding/und/form-VpVfTy4GmkfSuQfIF2H2OjpjvjZxBnLGaz8tTaLA6kU HTTP/1.1" 200 3373
127.0.0.1 - - [08/May/2013:19:41:04 +0200] "GET /Mysitesname/modules/overlay/overlay-parent.css?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:41:04 +0200] "GET /Mysitesname/misc/jquery.ba-bbq.js?v=1.2.1 HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:41:04 +0200] "GET /Mysitesname/sites/all/modules/colorbox/styles/default/colorbox_style.css?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:41:04 +0200] "GET /Mysitesname/modules/overlay/overlay-parent.js?v=1.0 HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:41:04 +0200] "GET /Mysitesname/sites/all/libraries/colorbox/jquery.colorbox-min.js?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:41:05 +0200] "GET /Mysitesname/sites/all/modules/colorbox/js/colorbox.js?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:41:05 +0200] "GET /Mysitesname/sites/all/modules/colorbox/styles/default/colorbox_style.js?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:41:38 +0200] "GET /Mysitesname/sites/all/modules/admin_menu/images/arrow.png HTTP/1.1" 304 -

Uploading an imagefile for basic page, the accesslog in apache is:

127.0.0.1 - - [08/May/2013:19:46:03 +0200] "POST /Mysitesname/?q=nl/file/ajax/field_afbeelding/und/form-BDxUoXcmUoFDqTMEn_2oYAxOvhkUra4sM8PdNY82GvA HTTP/1.1" 200 17275
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/modules/overlay/overlay-parent.css?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/sites/all/modules/colorbox/styles/default/colorbox_style.css?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/misc/jquery.ba-bbq.js?v=1.2.1 HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/modules/overlay/overlay-parent.js?v=1.0 HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/sites/all/libraries/colorbox/jquery.colorbox-min.js?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/sites/all/modules/colorbox/js/colorbox.js?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/sites/all/modules/colorbox/styles/default/colorbox_style.js?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/misc/tableheader.js?mmhp0c HTTP/1.1" 304 -
127.0.0.1 - - [08/May/2013:19:46:04 +0200] "GET /Mysitesname/?q=nl/sites/default/files/styles/thumbnail/public/images/Copyright-symbol.png&itok=CN4aJnVW HTTP/1.1" 200 3963

Status:Active» Postponed (maintainer needs more info)

That log doesn't actually give any useful information that I can see. I concur with troky that this isn't AF related but it's easy enough to test for yourself. Turn off AF (disable, don't uninstall) and then try adding an image in the forum. I suspect you'll have the same issue without AF since AF isn't involved in this part of the process.

Status:Postponed (maintainer needs more info)» Active

Thanks for the reply and you are right. I turned off the advanced forum and cleared the cache. Then I tryed to add an image to the forum and I had indeed the same error. So I think I have to look for something else. Can you advice me again? Witch modules are involved. The file module and the field module if I understood Troky #1 good?

Maybe it has to do with the fact that I'm working with the theme omega? But I do not understand why it works with the basic page...

You have to look at error.log for errors. Access.log is not useful here.

The apache.error.log don't give an error. I have just upstarted the apache and put the log. I have also tried to upload again at 21:07 (an image at the forum cck and get the error again) and nothing is logged.

[Thu May 09 20:51:59 2013] [warn] pid file C:/wamp/bin/apache/apache2.2.22/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu May 09 20:51:59 2013] [notice] Apache/2.2.22 (Win32) PHP/5.4.3 configured -- resuming normal operations
[Thu May 09 20:51:59 2013] [notice] Server built: May 13 2012 13:32:42
[Thu May 09 20:51:59 2013] [notice] Parent: Created child process 2332
[Thu May 09 20:51:59 2013] [notice] Child 2332: Child process is running
[Thu May 09 20:51:59 2013] [notice] Child 2332: Acquired the start mutex.
[Thu May 09 20:51:59 2013] [notice] Child 2332: Starting 64 worker threads.
[Thu May 09 20:51:59 2013] [notice] Child 2332: Starting thread to listen on port 80.
[Thu May 09 20:51:59 2013] [notice] Child 2332: Starting thread to listen on port 80.
[Thu May 09 20:52:51 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/wamp/www/tmp/
[Thu May 09 20:52:51 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/
[Thu May 09 20:52:51 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/
[Thu May 09 20:52:51 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/
[Thu May 09 20:52:51 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/
[Thu May 09 20:52:51 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico

I have on the same wampserver another site installed and I have no error on that site when I add an image in the forum cck. The upload works there.

Any sugestions please?

Status:Active» Fixed

I'd say it's problem in Apache config...

http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration

Status:Fixed» Active

I can not believe that because I can upload on another site on the same apache server. And I can upload images on the same site but with another cck.
But I have done a test. I changed in the httpd config

Options FollowSymLinks
AllowOverride AllOrder deny,allow
Deny from all

into

Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

I hope that I did understood it right from the article?
Afterwards I did restart server, cleared the cache and I still can not upload a picture in the forum module.

In the mean time I have also put a new and clean core 7.22 over the old one 7.22 and updated all the modules (only enteties api and feeds were necessary). Nothing helps.

But what happens when I push the upload button. Can I read some information about that and where? Have you any idea? Because once I push the button of the upload he gives me the error of an image that is to big. I would like to know where that error comes from.

This is the error: "Er is een fout opgetreden. Het bestand dat werd geüpload is waarschijnlijk groter dan de maximum toegestane bestandsgrootte (100 MB)." I wrote a translation to English in my first post.
And the 100MB in the error is comming from the php.ini and stands for post_max_size. I know this because I changed the upload_max_filesize and the error was still on 80 MB and then I changed the post_max_size to 100 MB. And at that moment the error changed from 80 MB (initial MB) to 100 MB.

I have a lot off modules in this site and I'm thinking of an interaction between one of the modules when I'm putting the image from in the forum cck.

Are there more things I can do?

Status:Active» Fixed

Since we already determined this isn't an AF error, you might want to post your question in the forum or at stackexchange and get a wider audience. There's only a few of us that monitor this queue. I have no idea, troky already took a stab at it, and it's unlikely that further help can be gotten here. This is "fixed" from the perspective of AF so marking it so. I wish you luck in hunting down the problem.

Thanks for the help and your time. I know now for sure that is not due to AF module.

Finnaly I have found the problem. I installed the syntaxhighlighter insert module and activated this for the body field from the forum and then it is even impossible to add the forum. Hope I help you and the community with this post.

Thanks for reporting back. :)

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.