Nothing happens when activating plugins

caiman - October 16, 2008 - 17:24
Project:YUI Rich Text Editor
Version:6.x-2.31
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi guys.

I would like to give the permission to upload images with another role than the admin role. I've already set up the YUI editor settings and certainly the permissions for the implied role but it doesn't work anyway.
Is there any solution or did i made something wrong? I have already searched for a similar issue but couldn't find anything.

I am thankful for any help.
Alex

#1

jeffcd - October 17, 2008 - 05:40

Did you give the appropriate role the permission to 'upload files' and also 'view uploaded files'? These permissions are provided by the upload module.

Hope this helps.

#2

jeffcd - October 17, 2008 - 05:49
Status:active» fixed

I think the culprit for this is either the first comment I made OR you need to download the 2.3 version that I just released and give the users permission to the YUI Editor.

#3

scratt - October 17, 2008 - 08:59

Hi there,

We have the same problem, but basically no image upload will work at all for any account, admin or otherwise.

We simply get the option to enter a URL and no upload button.

Prior to 2.2 and 2.3 this was working fine for some time.

Any help appreciated..

Cheers,
Stephen.

#4

caiman - October 17, 2008 - 13:35

Hi Stephen.

Have you already set the folder permissions for your image-folder to 777? I think this was one of the mistakes I made.

#5

caiman - October 17, 2008 - 13:57

First. Thank you for your quick fix.
I thought that the Upload-Module was installed but it wasn't. My mistake
Now everything works perfect.

Regards.

Alex

#6

amandawolfe - October 17, 2008 - 17:13

I'm actually also having the same problem as Stephen. I've had YUI rich text editor installed for at least a month and the image upload has been working (for admin and users) with no problem. Now all of the sudden after upgrading to the newest release, the image upload button is gone.

Any ideas what might be going on? All of my users are sufficiently permissioned/upload module is enabled/etc.

Thanks!
Amanda

#7

lesmana - October 17, 2008 - 23:48
Title:Only admins are allowed to upload images» Image upload no longer present in image dialog box
Version:6.x-2.2» 6.x-2.3
Category:feature request» bug report
Status:fixed» active

Ditto Amanda's problem. All my permissions and editor settings are set correctly and the upload module is enabled, but the image upload field and button are gone as if the option has been turned off.

#8

lesmana - October 18, 2008 - 06:18

Confirming that downgrading to 6.x-1.2-97 solves the problem, insofar as downgrading can be called a "solution". :) In any case, the image upload controls do show up in 1.2-x and not in 2.3 for me.

#9

renee - October 20, 2008 - 17:33

Subscribing

#10

scratt - October 21, 2008 - 03:24

I have downgraded also and Image Upload is now available.
Any version prior to 2.3 seems to be fine.

For the record I have also double checked all folders and permissions etc. and everything was in order, but thanks for the suggestion on that.

In short 2.3 does still have a problem for some at least, it seems.

#11

Delete Me - October 25, 2008 - 02:19

.

#12

Delete Me - October 25, 2008 - 02:31

The API changed a bit from 2.5 to 2.6. In some places the ID of the parent textarea is prepended.

Patch attached.

AttachmentSize
fix.patch 2.83 KB

#13

Delete Me - October 25, 2008 - 02:19
Status:active» needs review

#14

amandawolfe - October 25, 2008 - 22:27

Just FYI, I rolled the patch (against the latest version, 2.4) and it doesn't seem to have fixed the problem for me. Checked a few likely suspects first (cleared caches, turned the plugin on and off, checked permissions, etc.). I know almost zero about js, but if there's anything I can do, let me know!

#15

lesmana - October 26, 2008 - 04:49

Patch didn't fix the problem for me on 6.x-2.31, either. One thing to note, though, is that *none* of the plugins appear to work for me, which may indicate that the problem isn't the image upload script, but in the code that loads the plugins.

#16

amandawolfe - October 26, 2008 - 13:28

Yes I'm sorry, I forgot to mention that! I had never used another plugin, but a few days ago (after this problem cropped up) I tried activating the plain text switcher plugin to test it out for something else and it didn't work either.

It's worth mentioning that I'm also hosting the YUI library locally, but I still get the same problem if I switch to the Yahoo-hosted version.

Aand finally, unless I'm mistaken, the YUI module is still calling YUI version 2.5.0, is it not? I've done all of the updates and that version is still showing unless I override. Just to test it, I downloaded 2.6 and installed locally to see if that might help, but when I do that, YUI doesn't show up at all.

#17

lesmana - October 26, 2008 - 22:19
Title:Image upload no longer present in image dialog box» Nothing happens when activating plugins
Version:6.x-2.3» 6.x-2.31
Component:User interface» Code
Status:needs review» active

Changing the title of this issue based on Amanda's post and mine; hope I'm not being presumptuous.

It might help to note that the SCRIPT tags for the plugins do show up in the footer and I don't get any execution errors from Firebug, but I still don't get the plain text button, the resizeable textarea or the image upload options.

#18

drewish - October 27, 2008 - 20:31

I think the problem is that each plugin has a yui_editor_PLUGIN-NAME() JavaScript function that wraps all the code that's never being called. I'm working on a fix for this on my forked version of the module.

update: actually, the function is being called but it seems that YAHOO.Drupal.editors hasn't been set yet... perhaps it's being called too soon?

#19

drewish - October 27, 2008 - 20:50
Status:active» needs review

I think the change really boils down to the fact that the editors aren't set before YAHOO.Drupal.yui_editor_load.fire() is called. Anyone want to give this a try?

AttachmentSize
yui_editor_322205.patch 1.07 KB

#20

amandawolfe - October 28, 2008 - 02:40

Rolled this patch. Doesn't break anything for me, but it also doesn't appear to solve the problem. I tried to enable a couple of different plugins just to be sure. (Just because I don't think I mentioned it in detail before, I'm using D6.6, YUI 6.x-2.31, YUI lib 2.5.0 (hosted locally).) I also cleared the cache and ran update.php, just in case.

#21

Hwangar - October 28, 2008 - 09:11

Please,
Im considering include this module in one of my production sites, but I've experienced the problems you're talking about, can somebody with experience in the module advise me with a version not bugged just to feel a bit safer??

Thank you
Juan Arias

#22

lesmana - October 28, 2008 - 18:28

@Hwangar: as mentioned earlier, the 6.x.1.2-97 release has been good insofar as the plugins function correctly. Keep an eye on this issue, though.

#23

cadir - October 31, 2008 - 18:58

The 1.2-97 release works for me -- plugins are visible but the 6.x-2.31 does not. This would be a nice thing to get back as there are some nice features in 2.31.

I can also confirm that the patch files did not work for me on 2.31.

#24

wulff - November 3, 2008 - 15:37
Status:needs review» reviewed & tested by the community

I had the same problem using YUI 2.6.0 - plugins were not being loaded.

I applied drewish' patch (#19) and the plugins are now loading as expected.

#25

pban02 - November 4, 2008 - 12:57

Thanks - that worked for me. The patch also enabled resizing the editor window.

#26

jslag - November 4, 2008 - 17:31

On my 6.6 site, the only combo that's allowing the plugins to show up is yui-6.x.1.x-dev, yui_editor-6.x-2.31, and the yui_editor_322205 patch. YUI is set to load from http://yui.yahooapis.com/2.6.0.

Unfortunately, the image uploading still isn't working.

#27

lesmana - November 4, 2008 - 19:47
Status:reviewed & tested by the community» needs review

#28

davexoxide - November 5, 2008 - 19:17

appears the ID elements have been renamed. I updated the file and the upload image now appears. Still doesn't upload an image, but it's progress.
patch attached.

AttachmentSize
img_uploader_js.diff 1.24 KB

#29

stephtek - November 5, 2008 - 20:55

I am having the same problem. None of the plugins work. My upload module is enabled, roles permissions are set... still nothing.

Even when I attempt to type the image path in manually it seems to refresh the image popup and erases my path. There is also no "insert" or "submit" button. Should there be? Is there an example of a working YUI editor I can see?

#30

smanes - November 17, 2008 - 18:53

The patch in #19 fixed the phantom plugins problem for me.

#31

amandawolfe - November 19, 2008 - 20:28

smanes, can you give us an overview of your system (version of D6, version of yahoo yui library, version of this module, hosted locally or not, etc.) I'd love to try to replicate your setup variables to see if that gets this working for my users! :)

#32

stephtek - November 20, 2008 - 23:49

Just wondering if anything has come of this? I still cant seem to get it working?

#33

stephtek - November 21, 2008 - 00:32

patch #19 didnt work for me either. Anything else I should try?

#34

jeffcd - November 21, 2008 - 22:41
Status:needs review» fixed

#19 has been added to CVS.

As for the image uploading. I've had to create two separate files depending on if it's YUI 2.6. This will also be added to CVS.

Hopefully this will fix the issues on next release.

#35

jeffcd - November 21, 2008 - 22:46

Also note:

IF you use a local copy of the YUI and it's 2.6.x, then you need to have 2.6.x in the name of the folder where the YUI is stored. For instance, my local instance of YUI is 2.6.0 so I named the folder yui-2.6.0. This way the module is able to determine you are using 2.6.x and load certain JS file accordingly.

#36

smanes - November 23, 2008 - 22:36

Amanda, sorry. I've been heads-down on a project here.

I'm running D6.6, YUI Editor 2.32 and http://yui.yahooapis.com/2.5.0 (hosted at Yahoo, of course).

You can see it here: http://www.homeownerslike.us but you'll have to register to see the YUI editor.

#37

jeffcd - November 25, 2008 - 21:48
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.