<![CDATA[ Can't insert image with file browser - My Forums]]> https://forums.modx.com/thread/?thread=81354 <![CDATA[Can't insert image with file browser]]> https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448452
I can manually add the image by typing "assets/images/[filename]" in the add image dialogue box, so it doesn't seem like a permission issue that I can think of.

I don't see any error in the logs either.

I did upgrade to TinyMCE 3.2.4 to try and fix it but no change.

Evolution 1.06
UNIX, Apache,PHP 5.3.4
Thanks for any ideas why I can't insert images.
]]>
chrisa Dec 27, 2012, 04:09 PM https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448452
<![CDATA[Re: Can't insert image with file browser]]> https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-471878
<script language="javascript" type="text/javascript" src="[+editor_path+]jscripts/tiny_mce/tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript" src="[+editor_path+]tinymce.modxfb.js"></script>

(added jscripts/ in first row)...]]>
respot Jul 15, 2013, 09:26 PM https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-471878
<![CDATA[Re: Can't insert image with file browser]]> https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-459586 Quote from: chrisa at Dec 28, 2012, 06:17 PM
Found it! I had to edit the file seturl_js_tinymce.inc inside /manager/media/browser/mcpuk. It's a 2-line file and the first line was
<script language="javascript" type="text/javascript" src="[+editor_path+]jscripts/tiny_mce/tiny_mce_popup.js"></script>


I just had to add the / before "jscripts".

Solved. Thank you.

Note for modx 1.09 I found the above was not the fix but removing the jscripts/ was eg
src="[+editor_path+]tiny_mce/tiny_mce_popup.js"

Hope that helps someone else]]>
maclagan Mar 20, 2013, 10:40 PM https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-459586
<![CDATA[Re: Can't insert image with file browser]]> https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448531
<script language="javascript" type="text/javascript" src="[+editor_path+]jscripts/tiny_mce/tiny_mce_popup.js"></script>


I just had to add the / before "jscripts".

Solved. Thank you.]]>
chrisa Dec 28, 2012, 12:17 PM https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448531
<![CDATA[Re: Can't insert image with file browser (Best Answer)]]> https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448523 chrisa Dec 28, 2012, 11:22 AM https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448523 <![CDATA[Re: Can't insert image with file browser]]> https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448522
The URL assets/plugins/tinymce3241jscripts/tiny_mce/tiny_mce_popup.js is missing a / after the assets/plugins/tinymce3241]]>
sottwell Dec 28, 2012, 11:03 AM https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448522
<![CDATA[Re: Can't insert image with file browser]]> https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448518 Thanks for that console idea. I opened the javascript error console on the pop-up browser window and do have these 3 messages:
Failed to load resource: the server responded with a status of 404 (Not Found) http://[sitename.com]/assets/plugins/tinymce3241jscripts/tiny_mce/tiny_mce_popup.js

Uncaught ReferenceError: tinyMCEPopup is not defined tinymce.modxfb.js:24
(anonymous function) tinymce.modxfb.js:24

Uncaught ReferenceError: tinyMCEPopup is not defined tinymce.modxfb.js:6
FileBrowserDialogue.selectURL tinymce.modxfb.js:6
SetUrl tinymce.modxfb.js:27
OpenFile /manager/media/browser/mcpuk/frmresourceslist.html:189
onclick /manager/media/browser/mcpuk/frmresourceslist.html:1

As for the first message, tiny_mce_popup.js IS on the server in that location. All folders above it have 755 permissions and that file is 644. So I'm not sure what that is giving me 404.

I don't know what the second and third message mean. Any idea?]]>
chrisa Dec 28, 2012, 10:21 AM https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448518
<![CDATA[Re: Can't insert image with file browser]]> https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448477
Is this a new site, or were you able to insert images before?]]>
sottwell Dec 27, 2012, 11:09 PM https://forums.modx.com/thread/81354/can-t-insert-image-with-file-browser#dis-post-448477