close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can't upload files or images

Thread began 11/06/2015 11:30 am by MagsW | Last modified 11/10/2015 5:47 pm by Ray Borduin | 1328 views | 15 replies |

MagsW

Can't upload files or images

I added an HTML Editor field to a web form and used the Advanced Manager Enabled Setting. However, when I click either the Link or Image button then Browse Server, I get the following error:

[my website]/install_cms/index.php

The requested document was not found on this server.

It's not on the server because I haven't (and don't want to) install PowerCMS. This is just a form that sends an email on submission, but I need to let users attach files & images.

Any idea how I can fix this?

Sign in to reply to this post

Ray BorduinWebAssist

It sounds like you must have the PowerCMS version of the webassist/kfm/configuration.php file on your live server... can you attach a copy of that file to a reply and I'll take a look.

Sign in to reply to this post

MagsW

Hi Ray, file attached. And you're right, it is the PowerCMS version which is strange because as far as I remember we've never had PowerCMS on this site. Maybe I started setting it up then didn't continue, can't remember!

Sign in to reply to this post

Ray BorduinWebAssist

Replace lines 1-12 with:

<?php
@session_start();
$startKFMDir = getcwd();
chdir(dirname(__FILE__));
require_once( "library.php" );
?>
<?php require_once( "../../Connections/local.php" ); ?>
<?php require_once( "../../webassist/security_assist/helper_php.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Administrator") && !WA_Auth_RulePasses("Super Administrator")){
WA_Auth_RestrictAccess("../../index_cms.php");
}
?>

and replace "Administrator" with the security assist rule you want restricted access for.

Sign in to reply to this post

MagsW

Hi Ray

I've done that, but I'm now getting another error when I click the Browse Server button:

"error: "" could not be created"

The upload file is set to "/uploads" and the folder permissions are 777.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the file and I'll take a look.

Sign in to reply to this post

MagsW

Hi Ray, updated file attached.

Sign in to reply to this post

Ray BorduinWebAssist

Replace lines 35-36 with:


$kfm_userfiles_address = '../../uploads/';
if (isset($_SESSION['useOverrideRoot'])) {
$kfm_userfiles_address = abs2rel($_SESSION['useOverrideRoot'],dirname(__FILE__));
}
$kfm_userfiles_output = rel2abs($kfm_userfiles_address,dirname(__FILE__));

Sign in to reply to this post

MagsW

Have done that, now the error message is:

Error
MDB2 Error: connect failed
connect: [Error message: unable to establish a connection] [Native code: 0] ** mysql(mysql)://:xxx@/

Sign in to reply to this post

Ray BorduinWebAssist

It looks like I forgot to have you update the connection references...
$kfm_db_host = $hostname_PowerCMSConnection;
$kfm_db_name = $database_PowerCMSConnection;
$kfm_db_username = $username_PowerCMSConnection;
$kfm_db_password = $password_PowerCMSConnection;

should be:
$kfm_db_host = $hostname_local;
$kfm_db_name = $database_local;
$kfm_db_username = $username_local;
$kfm_db_password = $password_local;

Sign in to reply to this post
loading

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