close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Images showing as broken

Thread began 6/24/2011 7:06 am by mrs | Last modified 6/27/2011 5:03 pm by Jason Byrnes | 1394 views | 6 replies |

mrs

Images showing as broken

I have got the advanced manager working and uploading, but, within the admin area, the images show as broken links. On the live site they appear OK, but it's preferable to get them to display in the admin section so that the layout can be corrected prior to submitting changes.

I know it's something to do with file structure, but, I don't know how to get over it. All the public pages are at the root level of the site, but the admin pages are in admin/news/news_insert.php for example. How can I overcome this?

I've set the upload directory to images/editor.

Any thoughts?

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

if you look at the source of the images, what does it show for image path?


in the webassist/kfm/configuration.php file, what are the
$kfm_userfiles_address

and
$kfm_userfiles_output


set to?

Sign in to reply to this post

mrs

On the public side of the site the code is:
<img alt="" src="_dataimages/_editor/30dc5b4.jpg">

On the admin side of the site the code is:
<img alt="" src="_dataimages/_editor/30dc5b4.jpg">

But it should be:
<img alt="" src="../../_dataimages/_editor/30dc5b4.jpg">
because the page news_detail.php in the admin section is in the folders _admin/news/

The configuration file setting are:
$kfm_userfiles_address = '../../_dataimages/_editor';
$kfm_userfiles_output = '_dataimages/_editor/';

Which suggests to me that the public pages work ok because they are at the root, but the admin pages being one or two levels down from the root will not display, so how do I over come this?

I have tried using "/" and "./" but nothing seems to work!

Thanks.

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

try changing:
$kfm_userfiles_address = '../../_dataimages/_editor';
$kfm_userfiles_output = '_dataimages/_editor/';


to:
$kfm_userfiles_address = '/_dataimages/_editor';
$kfm_userfiles_output = '/_dataimages/_editor/';

Sign in to reply to this post

mrs

Yeah, I tried that earlier today, and I got this error:

Warning: mkdir() [function.mkdir]: Permission denied in /Users/matthewstuart/Sites/tandr/webassist/kfm/initialise.php on line 158
error: "" could not be created

Line 158 is:

if (!is_dir($rootdir))mkdir($rootdir, 0755, true);

Am I not meant to see the images on the results page or even in the image properties pane? I am sure I have done so in the past.

Sign in to reply to this post

mrs

Further to this, what is confusing to me is that when I click to browse server, all previous uploads, and any new uploads display correctly, but that's only in the upload/browse window. It's only when they are placed in the html editor and seen from anywhere other than top level that they don't display OK.

Do I need to create a third version of the following to get it to work in the admin area:

$kfm_userfiles_address = '../../_dataimages/_editor';
$kfm_userfiles_output = '_dataimages/_editor/';

such as:

$kfm_userfiles_admin-output = '_dataimages/_editor/';

If so, where on earth do I make changes to ensure that the images show in the admin section?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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...