Hello,
I am using the Panopoly distro, have installed the latest version and I can not get Instagram work on it.
When I try to insert new Instagram through Media browser, the Instagram file gets correctly created in the Media Library, but does not get inserted into the Body field text. The place where the code should get inserted is empty.
Then when trying to insert Instagram again from Library, it sometime gets inserted and sometimes not. When it does, then the page looks like on screenshot1.
When I edit the article and save it again, the Instagram dissapears from the page totally, it does not get showed anymore. Then in WYSIWYG editor I get icon like on screenshot 2 and the Instagram code in WYSIWYG (when disabled rich text) looks like this:
<div class="media-element file-default" data-fid="120066" data-media-element="1"><img src="http://mysite.com/profiles/panopoly/modules/contrib/media/images/icons/default/image-x-generic.png" width="100px" height="100px" /></div>
Because it is a part of Media suite, I would expect in WYSIWYG text area pattern like "[[{"fid":"120072","view_mode":"default" ....
In watchdog I am getting the error:
Notice: Undefined index: p in MediaInstagramStreamWrapper->interpolateUrl() (row 29 in /var/www/vhosts/mysiste/httpdocs/mysite/sites/all/modules/contrib/media_instagram/includes/MediaInstagramStreamWrapper.inc).
Other media types (images, Youtube videos ...) work all fine, just the Instagram not. Any help would be appreciated...
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | screen1.png | 71.09 KB | zestagio |
| screenshot2.png | 106.71 KB | sketman | |
| screenshot1.png | 161.86 KB | sketman |
Comments
Comment #3
zestagio commentedHello,
Thanks for bug report. Fixed in 7.x-2.1 release. Media instagram displayed as file by default (see screen1.png). IF you need see previe image insted file, you should go to admin/structure/file-types/manage/instagram/file-display, enable and configure Instagram Image
Comment #4
sketman commentedHi @zestagio,
thank you very for your input. Now it works fine, instagram gets inserted into the text area and gets displayed correctly.
The original issue was thus solved, however when I installed the new module version, I am not able to place Instagrams with longer description into the WYSIWYG. The description text is being displayed as a link and Insert button is overlayd by this text.
I have created a new issue for it here.