I've had problems installing js wrapper modules before in the past, so I knew that after I enabled the module I'd have to setup the js lib (sm2) properly before any of my js would work - some people don't realize this.

Even after I installed the sm2 in the libraries folder I had to chmod my folder to be writeable before it would work, a message that is only shown if I enable debug mode - I think a few easy housekeeping steps can avoid this common pitfall during installation.

  1. Add "make directory writeable" or "chmod 775" to the installation instructions.
  2. Reference the debug mode in install docs.
  3. Don't start the soundmanager2.module javascript code unless the lib is present.
    This can be done with jquery like: if (jQuery().sm2) {...}
    (simple example from my issue at: http://drupal.org/node/666608) or with drupal (in php).

Comments

davebv’s picture

Hi, thanks for the post.

Actually, I just modified the way the library is checked, so I think it would not matter if the files are writable, they just need to be readable. (As of new version)

2. As soon as drupal let me edit the documentation, I will add the reference to debug mode. Thanks for pointing that out!!!!
3. As you suggest, the new commit includes the check for soundmanager2 to be included for avoiding breaking the js.

Please, try the new dev version and let me know if this solves the problems.

davebv’s picture

Status: Active » Fixed

This should be fixed in latest version

Status: Fixed » Closed (fixed)

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