Help on Install Needed

monan - September 19, 2007 - 15:32
Project:Asset Manager
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

Hi Guys...

I was trying out your asset manager module but can't seem to get it
working. I've done what the instructions say:
- enable module - created a Assets taxonomy (no hierarchy)
- created an Image content type, and included a field of type
field_image.
- I moved the drupalam folder into the appropriate TinyMCE scripts folder
and modified the plugin_reg.php file to include it.

TinyMCE was able to add the button with no problem.

When I go to grab an asset, using the TinyMCE button, the asset manager
window comes up, but with the following in red at the top: warning:
call_user_func_array() [function.call-user-func-array]: First argument is
expected to be a valid callback, 'image_node_form' was given in
E:\web\includes\form.inc on line 217.

This same warning/error arises when I'm trying to add an asset through the
node fields, clicking on the link to the Asset Manager nodereference field within my content type that I am adding...

In either case, I can't do anything in the window. There is no asset to
pick from and it won't let me upload new ones. There is just no action on any
button clicks, anywhere.

I'm using 5.2 and on a Mac (Safari/Firefox)

Am I missing any steps?

Any ideas?

Thanks!

#1

attiks - September 21, 2007 - 08:57

Not sure if it helps, but make sure the image field is called 'image' otherwise no go.

#2

_natron - October 24, 2007 - 22:04

Drupal 5.3 - drupal core, plus these modules - am, cck, imagefield, jquery_form, jquery_update, tinyMCE.

I am also having a really hard time getting this to work. First of all it looks like the ajax calls on the popup form aren't aware that this drupal installation is not on the webroot, so I moved it to the webroot. Now, in Firefox, I'm not getting any errors, but I can't get the "node type" drop down to populate. I created a node type "image" and attached an image browse type to the node. nothing. When, in the popup, I try to add a nod I get the following in the Firefox Firebug console:

data.data has no properties
amReturn("{ "status": true, "data": { "nid": "6", "title": "yrdy", "message": "\x3cdiv class=\"messages error\...", "success")am_loader.js (line 219)
e("{ "status": true, "data": { "nid": "6", "title": "yrdy", "message": "\x3cdiv class=\"messages error\...", "success")jquery_form.js (line 12)
cb()jquery_form.js (line 12)
[Break on this error] amUpdateTarget(data.data.nid, data.data.title);

Also in the content type "image" (name "image" type "image") I've attached a CCK image browse field (label image, name field_image_0, type image). I have also attached an (label image, name field_image, type Node Reference) to the story "type" so I can attach assets to stories.

Any help would be appreciated.

Nathan

#3

slantview - December 4, 2007 - 19:23

To fix this issue, update the version of jquery with the jquery_update and install the _latest_ version of jquery_form.js (not the version in the drupal module)

Get it from here: http://www.malsup.com/jquery/form/

There is a completely rewritten version of the Asset Manager coming very soon. (I promise)

#4

Richard Eriksson - December 5, 2007 - 23:58

Looking forward to the new version! I'll give updating the jQuery files in the meantime, because I came across this too!

 
 

Drupal is a registered trademark of Dries Buytaert.