After uploading a file as an attachment to a node that uses CCK+FileField, I now receive two warnings, and the file will generally not attach:
* warning: Parameter 2 to dblog_filters_form_alter() expected to be a reference, value given in [drupal dir.]/includes/common.inc on line 2883.
* warning: Parameter 2 to dblog_time_filters_form_alter() expected to be a reference, value given in [drupal dir.]/includes/common.inc on line 2883.

Sometimes the upload never "finishes" (barber pole continues running after file is done being transferred) and I receive no warnings. However, I can see the uploaded file sitting on the server. It seems that it simply is not getting linked to the node. I also still see a previous file still on the server which I told Drupal to delete from the node.

Our server recently changed, so I think that's behind the issue, but I cannot figure out specifically *what* is causing this. Can anyone suggest anything I should look into? Could it be a permissions issue? The files are all 644 and I believe they were that way back when file attachments worked. Thanks.

(Core 6.19, CCK 6.x-2.8, FileField 6.x-3.7)

Comments

gbrands’s picture

I'm willing to bet your server was upgraded with PHP 5.3.

If that's the case, take a look at this post about the references:
http://drupal.org/node/360605

You could also directly modify the two functions throwing the errors as follows:

- function dblog_filters_form_alter(&$form, &$form_state, $form_id) {
+ function dblog_filters_form_alter(&$form, $form_state, $form_id) {

- function dblog_time_form_alter(&$form, &$form_state, $form_id) {
+ function dblog_time_form_alter(&$form, $form_state, $form_id) {

If you have any questions, feel free to ask.

Hope it helps!

Iritscen’s picture

Okay, problem solved. It turns out that the errors above were red herrings. The real issue was that the upgraded server had Suhosin installed, and it had its own upload limit set to 2MB. The admin simply raised it, and uploads work fine now!