Hi

See attached screenshot, I have the [insert] button*. I think what should happen is .. I click somewhere in the text, then I click the [insert] button and the image code gets inserted (am I right?). I do that, and nothing happens.

I'm a bit new to Drupal and this is a new site but I do code. I followed the instructions here: http://ywamwebmasters.com/content/re-learning-how-insert-images-inline-d... (the only thing I did different was I didn't stop pics displaying before installing the InsertModule).

I'm using Firefox on Linux, but I tried it on a Mac and got the same.

All hints and help appreciated.

Cheers
J

* That's not what this page http://drupal.org/project/insert shows I should have

Files: 
CommentFileSizeAuthor
Screenshot-63.png204.28 KBJAScarb

Comments

Oh, sorry, I'm on version 7.8

.. and using Mayo theme

Version:7.x-1.x-dev» 7.x-1.1

I am having the same experience. I have two site exactly the same. One is using 7.0 core and the insert works fine. The site with 7.10 core, the insert does not work. I have used Insert for a few years and this is the first time I have seen this.

I tried it again on a different installation.

Marinelli theme, Drupal 7.9, Firefox 7.0.1

I have CKEditor this time, I've added an image, got the insert button.

As I understand it, I click in the body text where I want the image to go, click 'insert' and it puts the code there, right? Nothing happens, in WYWIWYG and in plain text.

Good 'ere innit? So .. alternatives?

J

Just in case it's wanted:
Drupal 7.9
OK
Access to update.php Protected
OK
CKEditor 3.6.2
OK
Configuration file Protected
OK
Cron maintenance tasks Last run 24 min 22 sec ago
OK
Database system MySQL, MariaDB, or equivalent
OK
Database system version 5.0.92-community
OK
Database updates Up to date

I am using Drupal 7.10. Same issue. The "Insert" button does nothing. I followed...

Colorbox for Drupal 7, part 2: Inline images with the Insert module

http://vimeo.com/19386122

Colorbox works fine, just can't insert the code into the textarea.

Drupal 7.10
Insert 7.x-1.1
Colorbox 7.x-1.2

Nothing Else Installed.

I guess this is where the principle that it's open source so we can go fix the code ourselves comes in

So far I haven't encountered this problem myself. I'm guessing a module conflict, but the latest version of Drupal 7 core broke a bunch of the file handling modules I maintain. Any help debugging these problems would be great, I'm swamped with client work and don't have Insert installed on any of my own D7 sites.

Insert works for me on D7.10, with Insert 7.x-1.1. I do not have Colorbox installed, or any WYSIWYG modules.

Thanks @dhalbert for that update. A conflict with another module seems to be the most likely cause at this point then. Considering there are 13,000+ sites running Insert on D7, we would have more reports than this if it were truly universally broken.

OK, but I've installed two sites from scratch and it's broken on both, and I'm not one for lots of modules. How can I provide you a list of the modules I have installed? Or, I've done or I'm doing something wrong on both.

I have both these two installed:
CKEditor 7.x-1.6 Enables CKEditor (WYSIWYG HTML editor) for use instead of plain text fields. Help Permissions Configure
Wysiwyg 7.x-2.1 Allows to edit content with client-side editors.

but only the former is 'enabled'. I thought I needed the latter to make the former work. Shall I remove the latter, then?

@#12: The CKEditor module is standalone, and does not need the WYSIWYG module to function. From http://drupal.org/project/ckeditor:

Note: This module is not affiliated with the wysiwyg module. It is a separate project dedicated only to CKEditor.

If you install the WYSIWIYG module, then you can install the Javascript for various WYSIWYG editors, including CKEditor (the raw editor, not the Drupal module).

But if you disable CKEditor, does Insert work?

I still have the problem, but now I guess I should upgrade my Drupal and Mayo so I'll be back when I've done that, although it has to be said it's not working on another installation that's not Mayo.

I've upgraded Drupal on my site, so it's 7.12

I'm using Mayo 7.x-1.1 but the upgrade to 1.2 failed with an Ajax error, so I reverted back to 1.1. Anyway, the 'insert doesn't work' problem occurs on another of my sites that uses a different theme.

Insert v 7.x-1.1

So can I just confirm that my expectations are correct. I'm expecting to be able to edit a page, click in the text somewhere, then click the [insert] button and presumably something happens. Should I see code inserted there and then?

I'm using text entry, no WYSIWYG, full HTML.

This seems a bit of a basic need it seems so unlikely it would be this hard to do.

I pressed [insert] while running Firefox's Javascript error reporting tool and no error came up.

Is there some error reporting function I can turn on to give you more info?

All the best
J

I'm also having problems with Insert 7.x-1.1 and Drupal 7.12.
If I insert the thumbnail size it works, but all other styles do not work.
The image is inserted, but the link to the file is broken.
The thumbnail works because it is used on the image field as the preview.

It seems that Insert doesn't force the required style file to be generated.
Once I view the image in a view at all sizes (this forces the style files to be built) the image shows up.

This error seems to have something to do with the issue.
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /home1/xxxxx/public_html/includes/entity.inc).

There may be multiple scenarios that lead to this problem, but for me it turned out to be that Insert was trying to use an image style that no longer existed. So if you're having this problem, the first thing you should do is go into your content type, edit the image field you're trying to insert, expand the Insert settings, and make sure that you have a valid image style enabled for that field.

I was also having this problem on my fresh install of Drupal (no other modules). For me it was happening because the jquery.cookie.js file was throwing a 404, causing other jQuery scripts to fail (including the ones used in Insert). It seems to be caused by some Apache security setting with my shared hosting provider that Apache is set to not serve files with '.cookie' in the filename.

A workaround is to do Configuration > Performance > Aggregate JavaScript files.

See http://drupal.org/node/1052372 for discussion & fix.

@JAScarb: Did you ever have any luck with your problem? This still isn't reproducible for me (and D7 installations now exceed 30,000 sites). I'm baffled why this is being a challenge. Is clean URLs enabled or disabled? And are you using a public or private file field?

@Bluenose37: Sounds like you're describing #1645976: Inserted path is incorrect when clean URLs disabled and image does not exist

I had this problem in 6.x where suddenly the insert module button didn't work.
I found following solution,
i. Check in which content types it is working
ii. For the ones it is not working select/de-select the settings under Image Field configuration under FileField Sources (if you have this module) OR Insert (like default style settings) options.

In my case it was working in Wiki content type and not in Blog content type. Selecting IMCE option again (which I deselected few days back) under Filefield Sources in Image Field configuration worked.

I think [#17] above did similar solution with Insert option instead of Filefiled Sources options in Image Field Configuration in the Content type settings.

In my case I noticed that I can't insert the image in the body when I choose more than one value in the image field settings (i.e. allowing uploading of more than 1 image attached to a node). version 7.x-1.2

Maybe related to Manual Crop and / or PHP 5.4?

After testing a small number of combinations, the two styles that had a manual crop style failed, although these both worked when I used a "colorbox style" insert preset. As soon as I added a Manual crop effect to the system small style, the insertion process broke. However, after removing the Manual crop effect, the insert preset for small was still broken. After manually reverting the style via code, (the core Drupal image style revert link was not working), the insert preset for small worked again.

Apparently fixed: #1845750: insert button not working properly in combination with insert module.

Anyway, deadline pending

So it seems i reproduced this bug in 2 sites im working on, both are D7.14 with no modules such as colorbox installed. I have used WYSYWIG with NICeditor and the insert works on any text format except those that use NICedit... hmmm is NICedit supported?

So a quick update... it doesnt work with NICedit but it does with CKEditor

Category:bug» support
Priority:Major» Normal

So a quick update... it doesnt work with NICedit but it does with CKEditor

Insert module is dependent upon WYSIWYG API to do the insertion of links/images. If the WYSIWYG API integration for NICedit is incomplete, then Insert module will not work. This probably indicates that NICedit's integration with WYSIWYG API needs to be extended, rather than an issue with Insert module.

There's a similar troubleshooting issue at #1019222: “Insert” button not working that people might look through if they're having trouble getting Insert working.

So far based on the posts in this issue, I can't see anything actionable on behalf of Insert module, so I'm moving this to a support request.