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