Running on the newest drupal 7 version - just installed your module and unpacked the lib files as you described. When i activate your button and then click it in my CKeditor i get the following error:

Module initialization error.

its in a javascript message box - looked a bit up and javascript is included correctly but i cant find a swf file loaded in firebug - maybe that is the reason ? If you want the url of my page i will send it you via mail so you can check out on your own.

CommentFileSizeAuthor
#11 mod error.jpg11.89 KBrolandk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

david.mann’s picture

dev version brings up the same error.

xandeadx’s picture

david.mann’s picture

As i described in my first post i already checked for the files and it seems like the swf file is missing.

(but its at the location you describe on your project site)

The demo works for me. Since i did everything on your project page i am sure that its a bug in your module. Any ideas what i could try to find out the source of the problem?

xandeadx’s picture

swf file is missing

reinstall SWFUpload

david.mann’s picture

No you don't understand - and yes i tried this like 2 times - the files are at the correct location but your module does not load it. That is the reason why i am posting here since its a bug in your module.

xandeadx’s picture

demo work? if work, then not module bug.

david.mann’s picture

Yes, the demo works perfect for me! But if it works in your demo site it must not mean that it works on every drupal installation since every theme is different and other modules can alter the behavior of your module as well. Fact is that the module does not work on my site - and i think other people struggle with this problem too.

So i was wondering if you could help me to fix this issue.

Here some differences between your demo site and my site:

your root folder is / on my site its website/
i use another theme

xandeadx’s picture

modules can alter the behavior of your module as well

disable all contrib modules and let me know which module disrupts ocupload

your root folder is / on my site its website/

move drupal to / folder and let me know if the problem disappears

i use another theme

enable Bartik theme and let me know if the problem disappears

decibel.places’s picture

I had this problem but upon RTFM in README.TXT I realized I was using SWFUpload v2.5.0
Changing to SWFUpload v2.2.0.1 works nicely

xandeadx’s picture

Status: Active » Closed (won't fix)
rolandk’s picture

FileSize
11.89 KB

I am facing the same problem as David.

Drupal 7.4 using wysiwyg mod - swfupload 2.2.0.1 tested fine.

Clicking the oneclick upload button brings up a window that says "Module Initialization error" with both current and dev versions.

Any help appreciated.

david.mann’s picture

Status: Closed (won't fix) » Active

hmm i don't even have a readme.txt but Documentation/index.html says SWFUpload v2.2.0.1

  • Okay tested theme but that is not the source of the problem.
  • I will have to set up a new instance to test the path thing...
  • Modules tested okay (since i only have WYSIWYG and One click Upload)
  • redownloaded 2.2.0.1 and it still brings up the error

i don't understand why you closed this bug ? i noticed that is the second occurrence of this problem and in this thread already 2 people are suffering from this bug.

Searching your module code i found this. Which obviously means that the flash file is not created correctly by your module.

if (jQuery('.' + editor.id + ' .ocupload-processed').length == 0) {
          alert(Drupal.t('Module initialization error.'));
        }

hmm maybe i should try another approach then WYSIWYG :) what you use in your demo ?

xandeadx’s picture

i don't understand why you closed this bug ?

confused you and "decibel.places"

what you use in your demo ?

WYSIWYG module + CKEditor

david.mann’s picture

hmm strange - i tried it with BU editor and it worked perfectly. Such a nice module i hope you can fix this bug.

i also tried it with WYSIWYG on my local isntance and it did not worked again!

which version of wysiwyg and CKEditor do you use in your example?

files to reproduce: http://46.4.19.82/all.rar
using the newest drupal 7

xandeadx’s picture

update your editor http://ckeditor.com/download

rolandk’s picture

I was using this module with wysiwyg+ckeditor 3.6.2 - same module init error... there is a legit problem here.

thummel’s picture

I was getting the same error until I tried uninstalling the module and then reinstalling it. Works great now.

david.mann’s picture

Status: Active » Closed (fixed)

just checked it with the new version - works perfectly now :)

edaa’s picture

Issue summary: View changes

It may be caused by wrong permission,
please check the roles you expected have checked at the bottom of ocupload edit page.
hope it's helpful.

dansanjou’s picture

I had the same issue when deploying our site to our Dev server (was working on local) and the solution was to change the SWFUpload directory to lower case.
Hope this helps