/_media not being resolved when image placed via editor in contentbox

26 views
Skip to first unread message

Lee Marshall

unread,
Jan 18, 2020, 6:03:44 PM1/18/20
to ContentBox Modular CMS
Using ckeditor in contentbox and trying to insert an image from media library.

Media library shows and picks image successfully but generated url (src="/__media/test images/_DSC9515.JPG") wont display in editor, preview or site.

manually editing source to C:\ColdFusion2016\cfusion\wwwroot\modules_app\contentbox-custom\_content\test images\_DSC9512.JPG works in editor, preview or site.

geek settings => cb_media_directoryRoot    /contentbox-custom/_content

Added "cb_media_directoryRoot" = "/modules_app/contentbox-custom/_content" to coldbox.cfc to no avail.

Any suggestions would be appreciated

Lee

Luis Majano

unread,
Jan 18, 2020, 6:21:26 PM1/18/20
to conte...@googlegroups.com
Will have to check this Lee. What version, what cfml engine, what os?

Luis Majano
CEO
Ortus Solutions, Corp

From: conte...@googlegroups.com <conte...@googlegroups.com> on behalf of Lee Marshall <marsh...@gmail.com>
Sent: Saturday, January 18, 2020 5:03:43 PM
To: ContentBox Modular CMS <conte...@googlegroups.com>
Subject: [contentbox-version] /_media not being resolved when image placed via editor in contentbox
 
--
--
For News, visit https://www.ortussolutions.com/blog/category/contentbox-cms
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/CONTENTBOX
---
You received this message because you are subscribed to the Google Groups "ContentBox Modular CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to contentbox+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/contentbox/57b761d0-0071-4773-85d4-2655755b40fe%40googlegroups.com.

Lee Marshall

unread,
Jan 18, 2020, 6:37:10 PM1/18/20
to ContentBox Modular CMS
CF2016,  Apache 2.4, Coldbox and Contentbox are latest versions. All on win 10

Luis Majano

unread,
Jan 18, 2020, 7:02:56 PM1/18/20
to conte...@googlegroups.com, ContentBox Modular CMS
Can you tell me how you are running COntentBox? Is this via COmmandBox or vanilla ACF install?

--
--
---
You received this message because you are subscribed to the Google Groups "ContentBox Modular CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to contentbox+...@googlegroups.com.

Lee Marshall

unread,
Jan 18, 2020, 7:26:25 PM1/18/20
to ContentBox Modular CMS
Vanilla ACF


On Sunday, 19 January 2020 10:03:44 UTC+11, Lee Marshall wrote:

Luis Majano

unread,
Jan 21, 2020, 11:03:55 AM1/21/20
to conte...@googlegroups.com, ContentBox Modular CMS
I need some more info Lee.

The __media is a route in the UI module.  We would need to know what is the exception when loading the images.  Look in chrome or firefox dev tools and send us more info about these urls please.

FacebookLinkedInTwitter
--
--
---
You received this message because you are subscribed to the Google Groups "ContentBox Modular CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to contentbox+...@googlegroups.com.

Randy Johnson

unread,
Apr 9, 2020, 3:48:50 PM4/9/20
to ContentBox Modular CMS
Sorry to resurrect this, but I am having the same problem as Lee, and I did not see any more recent updates. No errors are generated when the page loads, other than the "image not found" icon. 

It seems as if the __media route is not being "translated" properly. When I view source on the page, the img src for the image is simply <img alt="" src="/__media/my-pic.jpg" />. Trying to access that URL directly results in a 404 error. If I hard-code the URL, such as https://mysite.com/modules_app/contentbox-custom/_content, then the image displays fine.

Note that the media manager itself works fine as far as uploading images, showing what is in the folder, and so on. But trying to insert an image will result in the same "image not found" behavior, even in the preview function of the media manager.

I am using vanilla ACF 2016, IIS 8.5 on Windows Server 2012, ContentBox 4.2.1.

Let me know if I can provide any further information! Thank you very much!

Randy Johnson

unread,
Apr 16, 2020, 9:39:43 PM4/16/20
to ContentBox Modular CMS
Following up on this from another post, in case anybody else is interested and checks here. Andreas got me pointed on the right track. I was able to resolve the issue with a rewrite rule in IIS. Here is the rule I used:

<rule name="Rewrite for image location">
     <match url="^__media/(.*).jpg$" />
     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
     <action type="Rewrite" url="modules_app/contentbox-custom/_content/{R:1}.jpg" />
</rule>
Reply all
Reply to author
Forward
0 new messages