close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Warning: chdir() [function.chdir]: No such file

Thread began 11/29/2010 9:28 am by kbettenc296716 | Last modified 12/01/2010 12:58 pm by Jason Byrnes | 2143 views | 4 replies |

kbettenc296716

Warning: chdir() [function.chdir]: No such file

Power CMS on this client's site, shows this error at the top of the text

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in \\nawinfs03\home\users\web\b1995\rh.lbehar\CMS\WA_CMS\WA_CMS.php on line 7

link: articlesCMS.php

WA_CMS.php

<?php
$Include_Start_Dir = getcwd();
chdir(dirname(__FILE__));
require_once( "../WA_Globals/WA_Globals.php" );
require_once( "../WA_SecurityAssist/Helper_PHP.php" );
require_once("library.php");
chdir($Include_Start_Dir);
$absolutepath = str_replace("\\","/",realpath(basename($_SERVER["PHP_SELF"])));
$site_root = substr($absolutepath,0,strlen($absolutepath)-strlen($_SERVER["PHP_SELF"]));
$start_Dir = getcwd();

Sign in to reply to this post

kbettenc296716

Warning:

I looked at this post as it seems the same as mine, but the solution did not work. The syntax was illegal.

Sign in to reply to this post

Jason ByrnesWebAssist

This could be a permissions problem preventing the getcwd() command from returning the correct path.


from the getcwd() manual page

"On some Unix variants, getcwd() will return FALSE if any one of the parent directories does not have the readable or search mode set, even if the current directory does. See chmod() for more information on modes and permissions. "

what do you get if you add the following code to a blank php page:

php:
<?php echo("The Current Working Directory is: ".getcwd().""); ?>
Sign in to reply to this post

kbettenc296716

Current directory

The Current Working Directory is: \\nawinfs03\home\users\web\b1995\rh.lbehar

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

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