Project:Drag'n'Drop Uploads
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

After I installa module I see this message:

Internal Server Error


The server encountered an internal error or misconfiguration and was unable to complete your request.


Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.


More information about this error may be available in the server error log.


Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch15 mod_perl/2.0.2 Perl/v5.8.8 Server at www.mysite.it Port 80

Can you hel me?
thank's

Comments

#1

Title:Withe scree» White Screen

Hi cimazadig,

Please provide me with a bit more information so I can attempt to reproduce this issue, such as Drupal version, installed modules & versions, process followed to cause this issue and any other information you think may be relevant.

Cheers,
Deciphered.

#2

Status:active» postponed (maintainer needs more info)

Without any further information I won't be able to help with this alleged issue.

Cheers,
Deciphered.

#3

Sorry...I haven't so much time... There are further information.
This is a new error message after your new release (nov 26)
"Fatal error: Unsupported operand types in /home/retescienza/stage/www/sites/all/modules/dragndrop_uploads/dragndrop_uploads.module on line 144

Page execution time was 3150.45 ms.

Memory usage:

Memory used at: devel_init()=3.03 MB, devel_shutdown()=48.38 MB."

Site now doesn't go down: I see this error message only after I try to edit content type (to activate drag and drop)

Drupal 6.14

Module list: About This Node 6.x-1.0-rc5,Active Tags 6.x-1.5,Administration menu 6.x-1.5,Advanced help 6.x-1.2,Advanced User 6.x-2.3,Ajax 6.x-1.14,Ajax Load 6.x-1.2,Alter profile page 6.x-2.3,Archive 6.x-1.3,Author Taxonomy 6.x-1.8,Automatic Nodetitles 6.x-1.2,Better Formats 6.x-1.1,Blog Add-ons 6.x-1.1,Calendar 6.x-2.2,CCK Blocks 6.x-1.1,Chart API 6.x-1.2,Checkbox Validate 6.x-1.1,Checkout (Content locking) 6.x-2.2,Code Filter 6.x-1.0,Conditional Fields 6.x-1.0-beta2,Content Construction Kit (CCK) 6.x-2.6,Content Profile 6.x-1.x-dev (2009-Nov-18),Content Taxonomy 6.x-1.0-rc2,,Cumulus 6.x-1.3,Date 6.x-2.4,Devel 6.x-1.18,Diff 6.x-2.1-alpha3,Dirty Forms 6.x-1.1,External Links 6.x-1.8,Facebook Connect 6.x-1.0-beta8,Fivestar 6.x-1.19,SWF Tools 6.x-2.5,Forum Thread 6.x-1.1,GMap Module 6.x-1.1-rc1,Google Analytics 6.x-2.2,Greybox 6.x-1.0,Advanced Help Injection and Export 6.x-1.0-alpha6,Home box 6.x-1.2,IMCE 6.x-1.3,IMCE Crop 6.x-1.x-dev (2009-Feb-11),IMCE Wysiwyg bridge 6.x-1.0,iPaper 6.x-1.1,jQuery UI 6.x-1.3,jQuery Update 6.x-1.1,Javascript Tools 6.x-1.0,Language Icons 6.x-1.1,Legal 6.x-2.2-beta4,Lightbox2 6.x-1.9,Location 6.x-3.1-rc1,Mail to Web 6.x-1.0-beta2,Mailalias 6.x-1.0,Mailhandler 6.x-1.7,Mailsave 6.x-1.3,Maxlength 6.x-2.0-beta1,Messaging 6.x-2.1,Mime Mail 6.x-1.0-alpha1,mit3xxx.de Toolbar 6.x-1.5,Node breadcrumb 6.x-1.0-beta6,Node Convert 6.x-1.5,Notifications 6.x-2.1,Team Notifications 6.x-1.0,Organic groups 6.x-1.4,OG Audience 6.x-1.x-dev (2008-Ago-11),OG Menu 6.x-1.3,onBeforeUnload API 6.x-1.0,Pagination (Node) 6.x-1.6,Panels 6.x-2.0-alpha3,Pathauto 6.x-1.2,Persistent Login 6.x-1.4-beta6,Petition Node 6.x-1.4,Poormanscron 6.x-1.1,Translation template extractor 6.x-2.2,Printer, e-mail and PDF versions 6.x-1.10,Profile Checkboxes 6.x-1.1,Profile CSV 6.x-1.0,Publication Date 6.x-1.1,Quick Tabs 6.x-1.0-beta1,Register with Picture 6.x-1.0,RelatedContent 6.x-1.0-beta1,Report 6.x-1.0-alpha2,Search and Replace Scanner 6.x-1.0,Scrollable Views 6.x-1.x-dev (2009-Giu-01),Restricted Search 6.x-1.x-dev (2008-Nov-27),Service links 6.x-1.0,Signatures for Forums 6.x-1.0,SimpleMenu 6.x-1.2,Simplenews 6.x-1.0-rc6,Simplenews on register 6.x-1.0,Simplenews Statistics 6.x-2.1,Simplenews Template 6.x-1.0-beta3,Support Ticketing System 6.x-1.2,Switchtheme 6.x-1.1,Tagadelic 6.x-1.2,Taxonomy hide 6.x-1.02,Taxonomy Manager 6.x-2.1,Taxonomy VTN 6.x-1.4,ThemeKey 6.x-1.1,Token 6.x-1.12,Translation Overview 6.x-1.4,User Creator 6.x-1.x-dev (2009-Ott-19),userplus 6.x-2.3,Vertical Tabs 6.x-1.0-beta,Video Filter 6.x-2.7,View Reference 6.x-2.23,Views 6.x-2.7,Views Accordion 6.x-1.2-rc2,Views cycle 6.x-1.0-beta1,Views Slideshow 6.x-1.0-beta2,Voting API 6.x-2.3,Webform 6.x-2.9,Wordfilter 6.x-1.0,Wysiwyg 6.x-2.0

Themes: Genesis Zine 6.x-1.1
That's all

Thank's

sergio

#4

Status:postponed (maintainer needs more info)» active

The only thing I can tell from the information is that you have a huge amount of modules on your site, and this could possibly be a case of the feather that broke the elephant's back.

I'd suggest checking your memory limit in your php.ini file. It might just be a case of giving it some more.

Let me know how you go.

Cheers,
Deciphered.

#5

I got the same problem -->whitescreen

Apache error says:
"PHP Fatal error: Unsupported operand types in /srv/www/vhosts/freerunning.net/httpdocs/sites/all/modules/dragndrop_uploads/dragndrop_uploads.module on line 152"

#6

Ok, I think I know what the issue is, looks like it's only an issue in particular versions of PHP. I will try to get a test environment with a different version to reproduce the issue to confirm a fix.

Can you let me know what version of PHP you are running?

Cheers,
Deciphered.

#7

Thank you for your help! I'm running PHP 5.2.11

#8

I have another hunch : you can choose in the DnDU option box an illegal upload widget, for instance a text widget.

If you do that you have a WSOD when you look at your content ... AND a warning when coming back into your CCK type warning: array_values() [function.array-values]: The argument should be an array in ...dragndrop_uploads.module on line 146

It might be what happened to one of you guys OR something unrelated.

but this one is reproducible and I can open a separate issue for it

#9

Hi guys,

I have yet to reproduce this issue, I am still attempting to procure a development environment that has the correct version of PHP that is causing the issue so that I can confirm and fix this issue.

Just thought I'd let you know I'm still trying and that I haven't abandoned this issue.

Cheers,
Deciphered.

#10

Status:active» needs review

Possible, unconfirmed fix:

Change the code on line #150-153 in dragndrop_uploads.module from this:

  return array('dropzones' => array(
    'default' => array('id' => 'default', 'selector' => 'textarea', 'target' => TRUE) + $selected_data[0]
    ) + $data
  );

To this:

  return array('dropzones' => array_merge(array(
    'default' => array_merge(
      $selected_data[0],
      array('id' => 'default', 'selector' => 'textarea', 'target' => TRUE)
    )), $data
  ));

While I didn't reproduce the issue, I believe it was an issue with using the '+' operand instead of using array_merge. Both methods work for me, so I will likely commit the code no matter what, but I would be interested in knowing if this fixes this issue.

Cheers,
Deciphered.

#11

No more whitescreen, but the module doesn't work and these error messages are displayed after loading node/add form:

* warning: array_values(): The argument should be an array in .../sites/all/modules/dragndrop_uploads/dragndrop_uploads.module on line 146.
* warning: array_merge(): Argument #1 is not an array in .../sites/all/modules/dragndrop_uploads/dragndrop_uploads.module on line 154.

#12

Status:needs review» active

Breakerandi,

Can you provide some more details? Configuration settings, module versions, php version?
Unable to reproduce this issue, which could also be related to the fact that I was unable to reproduce the original issue.

Can anyone else that was having the white screen issue confirm that the original issue is gone and whether this new issue is also occuring?

Cheers,
Deciphered.

#13

Settings: Nothing special, just enable drag and drop for one content type.. Module: 1.0 beta1 PHP 5.211

#14

Status:active» postponed (maintainer needs more info)

Breakerandi,

I have done everything I can do to reproduce this issue, but no go.
Can you try installing Drag'n'Drop Uploads on a fresh install, and if you manage to reproduce the issue let me know anything that may help to reproduce the issue? Such as the steps you took, modules you used, etc?

Cheers,
Deciphered.