close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error when uploading images in HTMLEditor

Thread began 1/22/2011 7:17 am by andrea396181 | Last modified 1/23/2011 2:23 pm by andrea396181 | 3130 views | 8 replies |

andrea396181

Error when uploading images in HTMLEditor

When I try to upload an image to the server, I get this error:

Sorry, can't map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".

I assume I'm supposed to tell it where to send my images, but I'm not sure where that should be.

The relative path command in the config.php is 'imagesupload/cms_files/'; however, I don't see that folder anywhere in the directory structure.

What am I missing?

Sign in to reply to this post

neilo

Hiya Andrea,

You may not see the 'imagesupload/cms_files/' folder on your local machine (unless you have downloaded it from your remote server) - it will have been created on your remote server as part of the set-up process. If you look at the directories and files on your remote server you should be able to find it.

You could try puting the absolute server path between the '' at about line 50 of the config.php file

$Config['UserFilesAbsolutePath'] = '' ;

To find the precise absolute server path to your folder, create an empty php page and paste in as the first three (and only) lines:

<?php
echo dirname(__FILE__);
?>

Save the file as ab_path.php and upload it to the inside your imagesupload/cms_files/ directory. Once you have done that,use your browser to navigate to that file on your remote server, and make a note of the absolute path that should be written to the page. It should begin with a forward slash.

So your line in the config.php would be a string something like:

$Config['UserFilesAbsolutePath'] = '/home/users/uks48634/html/somesite.com/cms/files/cms_files' ;

That may or may not work, but worth a try . . .

Sign in to reply to this post

andrea396181

I didn't have the folder on my remote server, but I created it and made the change in my config.php. The image file now uploads successfully and shows up on the remote server in the imagesuploads/cms_files folder; however, it doesn't show up in the preview pane, and it doesn't show up in the content itself--either in the HTMLEditor non-source view, or on the web page. When I look at the content in the HTMLEditor in source view, the code is there pointing to the image, but nothing shows up. When I navigate to the image directly via the browser, it's there. Do I need to point the absolute path to something starting with http:// instead of /home?

Sign in to reply to this post

neilo

Hi Andrea,

Could you post an example of the source view code that is created when you insert and/or update an image?

Thanks

Sign in to reply to this post

andrea396181

<p><img align="left" src="/home/clientaccount/public_html/cms/imagesupload/cms_files/column(2).jpg" alt="">"Who We Are" content</p>

Sign in to reply to this post

neilo

Thanks Andrea,

Then it's not the fault I thought it was. When you browse directly to that image by placing the cms/imagesupload/cms_files/column(2).jpg after your domain adddress
(i.e. http://www.yourdomain.com/cms/imagesupload/cms_files/column(2).jpg) do you see the image?

It is likely that the Editor is somehow interpreting and entering the wrong path.

Could you post a link to a page that should be containing the image, so that we can work on the paths issue?

Thanks

Sign in to reply to this post

andrea396181

whoweare.php -- there should a little column (like the one in the sidebar) to the left of the line that says '"We We Are" content'. Since this is an area at my IP instead of a dedicated domain (for now), I'm guessing I either need to specify a path that includes the IP address, etc., or one that goes further into the structure (e.g., starts with "cms/imagesupload/etc."

Sign in to reply to this post

neilo

Hi Andrea,

If you are to be moving the a dedicated domain later, it might be easiest for now (rather than changing more settings that would need to be re-visited later on), just to edit each HTMLEditor image path (in source view) to the form of:

html:
http://70.86.19.242/~norfine/cms/imagesupload/cms_files/column.jpg

I think that should do it for now, and we can address any issues if they should arise when the final domain has been established.

It might also be a good time to add a right and bottom margin at this stage, so that the text doesn't cling to the image. If that were the case, the code you posted in your last but one post would look (something) like:

<p><img align="left"  src="http://70.86.19.242/~norfine/cms/imagesupload/cms_files/column.jpg"  alt="" style="margin:0 15px 15px 0;">"Who We Are" content</p>

Post back if this doesn't do the job (for now).

Sign in to reply to this post

andrea396181

Sounds great, thanks!

A :-)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...