close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Framework file not found but only in root

Thread began 3/15/2011 11:30 am by webassist412767 | Last modified 5/29/2014 11:44 am by webassist412767 | 4717 views | 18 replies

webassist412767

Relative paths not changes.

Thank for the prompt reply.

I understand the relative paths but nothing has changed, the whole site is just moved so relative links should remain and in fact do remain the same. The whole site works in any folder position except the root. It is no doubt a file position problem but it only seems to occur in the site root and nowhere else.

To explain:
Our domain www.domain.com is set to point to /httpdocs/ as the root directory.
When developing sites for customers we have a small holding site in this root with a working site and develop the new site in a folder /hold/ and also a development area of /hold/dev/.

The site is created locally and tested then uploaded to the server at /hold/dev/ and /hold/ for client to view before going live. Once working it is moved to the root directory to go live and be call when domain.com is entered in the browser.

The framework site works fine in both hold/ and dev/ it is only when moved to the root at www.domain.com that the error is produced from index.php. The whole directory structure is the same just the entry point changes. We tested it working in sub directories but not the root as did not see this would an issue.

With the site uploaded to either of the sub directories and called from that path ie. hold/ it works fine. If I then change the entry point on the server so the root directory is /hold/ that is you first start at the index.php in that directory the error is produced. If you then again set the root back a level the same folder structure will work without any error. It is only when the index.php is called as the absolute site root that the error occurs. For this reason my logic says the paths are correct as such.

In the simplest form:

index.php
webassist/framework/framework.php
webassist/framework/library.php

index.php has
<?php
require_once( "webassist/framework/library.php" );
require_once( "webassist/framework/framework.php" );
?>

When index.php is called from site root via www.domain.com the error is produced.

If the site is moved with no changes to
/hold/index.php
/hold/webassist/framework/framework.php
/hold/webassist/framework/library.php

or

If the site is moved with no changes to
/hold/dev/index.php
/hold/dev/webassist/framework/framework.php
/hold/dev/webassist/framework/library.php

It will work fine.

This is on a medium size site so is difficult to de-bug with a new (to us) extension so any steer on where to look would be appreciated. It is ready to be handed over to the client. I will try to produce a small test site to see if it is reproduced and put it on a spare domain for testing.

Thanks Ian

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