We have moved to Github. Please open tickets there.

Opened 2 years ago

Last modified 16 months ago

#3360 new Defect

ECML needs work

Reported by: ncouture Owned by:
Priority: normal Milestone: Elgg 1.9.0
Component: ECML Version: Github Master
Severity: major Keywords:
Cc: brett@…, nicolas.couture@…, ashley.ward@… Difficulty:

Description (last modified by brettp)

Problem:

Embedding a file in a file enabled group topic redirects you to the /action/file/upload URI and shows the following JSON message:

{"status":"error","message":"You must select a file"}

steps to recreate:

  1. Create group with files enabled
  2. Add a topic
  3. Select (click) the "Embed content" link
  4. Select (click) the "Upload media" tab
  5. Highlight a file on your file system\
  6. Select (click) the "Save" button

Tested on trunk (commit 842031dd358282f608c232094422cd281117c21f).

Attachments (2)

9110_elgg_ecml_1.8.patch.diff (13.3 KB) - added by ashleyward 2 years ago.
Patch to ECML plugin
9110_elgg_embed_1_8.patch.diff (50.7 KB) - added by ashleyward 2 years ago.
Patch to Elgg trunk (for embed plugin)

Download all attachments as: .zip

Change History (14)

comment:1 Changed 2 years ago by ncouture

  • Cc nicolas.couture@… added

comment:2 Changed 2 years ago by brettp

  • Description modified (diff)

comment:3 Changed 2 years ago by ashleyward

  • Cc ashley.ward@… added
  • Component changed from File to Embed
  • Owner set to ashleyward
  • Status changed from new to assigned

We were having this same error but all across the site.

I've attached some patches (one for elgg/trunk and one for plugins/trunk/ecml) which essentially do enough to get them working nicely in 1.8 - I haven't done an overhaul of the code (which I think it could probably do with at some point).

A summary of the changes is:

ECML Plugin:
============

  • Updated some deprecated api calls
  • Renamed admin/css view to just css (as it contained non-admin css too!)
  • Updated the css styling slightly (instructions/preview togglers)
  • Renamed blip.tv to blip_tv to match the sanitised class in the selector
  • Switched it to use the textarea id rather than name to embed (to matche my changes to the embed plugin)

Embed Plugin
============

  • Updated jQuery Form Plugin to latest (v2.73) which is compatible with jQuery 1.5 (the older one wasn't)
  • Switched the plugin to use the texarea id rather than the textarea name (as there may be multiple textareas with the same name. Also the id was already available from the longtext menu but the name wasn't!). This will probably break other plugins which extend the embed plugin. I have updated ecml and tinymce also.
  • Updated some styling to use the 1.8 standard styles

Changed 2 years ago by ashleyward

Patch to ECML plugin

Changed 2 years ago by ashleyward

Patch to Elgg trunk (for embed plugin)

comment:4 Changed 2 years ago by ashleyward

Have noticed that the ecml plugin doesn't operate on group discussions for some reason. I'll have a look at that when I get some more spare time :)

comment:5 Changed 2 years ago by cash

embed plugin is quite ugly. For reference we also have ticket #2911. I may be able to look at patches Thursday. If not, it would be next week.

comment:6 Changed 2 years ago by ashleyward

No problem - no rush on my part. As I said I've done enough to get it working in 1.8, but I haven't really put any effort into updating the js or anything though.

There's also the problem of ecml not working on group discussions which I haven't had a chance to look at yet (I guess it's a simple fix).

comment:7 Changed 2 years ago by cash

Nice job. The embed patch applied cleanly and everything worked. We're pulling this in for the next beta release of 1.8. I'm going to keep this ticket open as a ECML ticket after the commit.

comment:8 Changed 2 years ago by cash

(In [svn:9134]) Refs #3360 updating the jquery form plugin

comment:9 Changed 2 years ago by cash

(In [svn:9135]) Refs #3360 #2911 applying ashleyward's patch for embed plugin - thanks!

comment:10 Changed 2 years ago by cash

  • Keywords group file, embedding removed
  • Milestone changed from Needs Review to Elgg 1.8.x
  • Severity changed from critical to major
  • Summary changed from file: embedding file from group fails to ECML needs work

Before a public release of ECML, we need to fix some things. Ashley's patch is a good start on that.

comment:11 Changed 16 months ago by cash

  • Milestone changed from Elgg 1.8.x to Elgg 1.8.4
  • Owner ashleyward deleted
  • Status changed from assigned to new

comment:12 Changed 16 months ago by cash

  • Component changed from Embed to ECML
  • Milestone changed from Elgg 1.8.4 to Elgg 1.9.0
Note: See TracTickets for help on using tickets.