Page 1 of 1

Error inserting picture with FCKEditor on 7.0.3

Posted: Fri Jun 18, 2010 9:32 am
by AbleMods
I can't insert pictures when using the FCKEditor html editor in my 7.0.3 install. I open the editor, click the insert picture button and then hit "Browse" to pick the image from the server files. Tried searching the forums but couldn't find anything on it...any thoughts on how to fix?

It keeps throwing this error:
Capture.JPG

Re: Error inserting picture with FCKEditor on 7.0.3

Posted: Fri Jun 18, 2010 9:59 am
by mazhar
I am not sure about version but there was at least one issue I corrected in forums. See following threads, is this something related
viewtopic.php?f=42&t=8902

Re: Error inserting picture with FCKEditor on 7.0.3

Posted: Fri Jun 18, 2010 11:35 am
by AbleMods
Tried the replacement config.ascx but didn't work. Any other posts? I couldn't find much on it....

Bouncing my web server now but doubtful that'll change anything.

Re: Error inserting picture with FCKEditor on 7.0.3

Posted: Mon Jun 21, 2010 7:13 am
by AbleMods
Ok I fixed it. The original problem occurs when clicking the Browse Server button after trying to insert an image using the HTML Editor. The server would response with an HTTP Ok 200 status popup window but no server-side folders would be displayed.

What I figured out is that clicking the "Browse Server" button is forcing HTTPS connections to the server. Not sure where that is in the fckeditor config file because I don't know how FCKEditor manages its own configuration.

But by editing the ~/App_Data/AbleCommerce.config and adding FCKEditor the list of directories that allow SSL, the problem is resolved.

Here's a snippet for what the AbleCommerce.config file should look like with this addition:

Code: Select all

  <securePages enabled="true" ignoreHandlers="WithStandardExtensions">
    <directories>
      <add path="Admin" recurse="true" />
      <add path="Members" recurse="true" />
      <add path="Checkout" recurse="true" />
      <add path="fckeditor" recurse="true" />
    </directories>
    <files>
      <add path="Login.aspx" />
      <add path="Members/MyWishlist.aspx" state="Off" />
      <add path="Members/SendMyWishlist.aspx" state="Off" />
      <add path="Admin/Utility/EditHtml.aspx" state="Ignore" />
    </files>
  </securePages>