Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jan 2003
    Posts
    111
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question fopen error: failed to open stream: no such file...

    I am installing Dolphin Community Builder on a Windows server and am getting this error:

    Warning: fopen(/langs/lang-English.php): failed to open stream: No such file or directory in C:\Inetpub\vhosts\doucettefamilytree.com\httpdocs\inc\languages.inc.php on line 312
    Error: Could not compile the default language. The script cannot execute any further.

    Here is the code that it is choking on:
    $handle = fopen("{$dir['root']}langs/lang-{$arrLanguage['Name']}.php", 'w');

    Which with the variables filled in reads:
    $handle = fopen("/langs/lang-English.php", 'w');

    PLEASE ADVISE. Thanks.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Are the permissions on the langs folder set to 777?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Jan 2003
    Posts
    111
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Yes - full control permissions

  • #4
    Regular Coder Tyree's Avatar
    Join Date
    Sep 2003
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I assume you've checked to be sure that these folders and files actually exist in that location? I.e. the "langs" folder and "lang-English.php" file

    Also, I'm not sure about this. But, it COULD be that php is looking in the root of your C drive for the langs folder instead of in the root of your site. Sometimes php wants the full path from your drive root. Someone with more knowledge will have to confirm or deny that though.

  • #5
    Regular Coder
    Join Date
    Jan 2003
    Posts
    111
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Yes - it was looking for the absolute root path (C:/...) instead of site location.

    Which was difficult to come by since the path it expressed in the error was correct as far as the site is concerned.

    Lesson learned.

  • #6
    Regular Coder Tyree's Avatar
    Join Date
    Sep 2003
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So, all fixed then? Cool!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •