Current time: 11-16-2024, 09:28 AM Hello There, Guest! (LoginRegister)


Post Reply 
Parsing problem with ftp_choose_dir.php
Author Message
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #1
Parsing problem with ftp_choose_dir.php
Hello,

I had this problem when choosing directory in the admin/client gui in RC4, I upgraded to SVN 1121 and the problem is still there (I thought it might have been fixed).

Code:
Can not open directory !
Please contact your administrator !
Directory tree
  Directories Action
{DIR_NAME} Choose

The source looks like this:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
function CopyText(inputname) {
    var buf1='';
    var buf2=document.forms[0].elements[inputname].value;
    var buf3=buf1+buf2;
    window.opener.document.forms[0].other_dir.value=buf3;
    window.opener.document.forms[0].use_other_dir.checked=true;
    self.close();
}

</script>
<title>ispCP - Client/Webtools</title>
  <meta name="robots" content="noindex">
  <meta name="robots" content="nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #FFFFFF;
}
a.link {color:#000099;text-decoration:underline;font-weight: normal;}
a.link:link {color:#000099;text-decoration:underline;font-weight: normal;}
a.link:visited {color:#000099; text-decoration:underline; font-weight:normal}
a.link:hover {color:#000000; text-decoration: none;}
a.link:active {color:#000000;text-decoration:none;}

td {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 12px;
}

td.content {
    font-size: 12px;
    color: #333333;
    white-space: nowrap;
    background: #efefef;
    white-space: nowrap;
    height: 22px;
    padding: 2px;
}

td.content2 {
    font-size: 12px;
    color: #333333;
    white-space: nowrap;
    background: #efefef;
    white-space: nowrap;
    height: 22px;
    padding: 2px;
}

td.content3 {
    font-size: 12px;
    color: #000000;
    white-space: nowrap;
    background: #efefef;
    white-space: nowrap;
    height: 30px;
    padding: 2px;
}
-->
</style></head>
<body text="#000000">
<table width="450" cellpadding="5" cellspacing="5">
              
              <tr>
                <td width="100%" nowrap class="content3"><font color="#FF0000">Can not open directory !<br />Please contact your administrator !</font></td>
              </tr>
              
              <tr>
                <td  width="410" class="content3" nowrap colspan="4"><b>Directory tree</b></td>
              </tr>
              <tr>
                <td width="40" class="content2" colspan="2" nowrap align="center"><b>&nbsp;</b></td>
                <td width="310" class="content2" nowrap><b>Directories</b></td>
                <td width="60" class="content2" nowrap align="center"><b>Action</b></td>
              </tr><form>
              

              <tr>
                  
                <td  width="40" class="content" colspan="2" nowrap align="center"><img src="../themes/omega_original/images/icons/bc_{ICON}.png"></td>
                <td width="310" class="content" nowrap><a href="{LINK}" class="link">{DIR_NAME}</a></td>
                
                <td width="60" class="content" nowrap align="center">
                <a href="javascript:CopyText('{CHOOSE_IT}');" class="link">Choose</a>
                <input type="hidden" name="{CHOOSE_IT}" value="{CHOOSE_IT}">
                </td>
                
                
              </tr>

              
              </form>
</table>
</body>
</html>
<!--
    Compression level: 8
    Original size: 2.88 kb
    New size: 1.05 kb
    Saving: 1.83 kb (64 %)
    Time: 1.78 ms
    Serverload: 0.33
-->

So basicly, you can see that the file isn't parsed. Very wierd.

Greatful for help...

/E
04-17-2008 08:39 PM
Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #2
RE: Parsing problem with ftp_choose_dir.php
I'd love some help with this. Someone must know something, or at least tell me how to continue searching for the problem. I have this same problem on two VPS', Debian 4.0, PHP 5.2.5.

/E
04-18-2008 06:23 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #3
RE: Parsing problem with ftp_choose_dir.php
generally it looks as if the script cannot access the files either direct or per ftp (ftp should be default for fastcgi enabled servers)

ispcp tries to create a temporar ftp user and uses that to browse through the directories.
If there're permission problems or similar it won't work and the output looks like that ..
04-18-2008 07:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #4
RE: Parsing problem with ftp_choose_dir.php
Alright. Yes it's fastcgi.
What do you sugest that I should do to search for the problem? logs? what should I try?

/E
04-18-2008 07:29 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #5
RE: Parsing problem with ftp_choose_dir.php
try looking if your ispcp creates temp ftp users - try creating one yourself ...
04-18-2008 07:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #6
RE: Parsing problem with ftp_choose_dir.php
Sorry, I'm really not a pro with this stuff. I guess there is a command to list the ftp users?

/E
04-18-2008 07:32 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #7
RE: Parsing problem with ftp_choose_dir.php
please before that ensure that your system is running ok i mean ... the other thread ... can you use ftp-accounts you created before you upgraded ?
04-18-2008 07:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #8
RE: Parsing problem with ftp_choose_dir.php
Hmm, maybe you're on to something here.

Actually I can create new FTP accounts with the ispcp gui, no problem. BUT I can't connect to the FTP server. I get a simple error like this with the net2ftp: "Unable to connect to FTP server localhost on port 21.". And I'm not able to connect with WinSCP/FTP either.

The ispCP Admin gui reports that the FTP server is running.

/E
04-18-2008 07:51 AM
Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #9
RE: Parsing problem with ftp_choose_dir.php
Uuuh, I think I found it. Maybe all my problems are connected. Check this out:
The proftpd.conf is not parsed either! (wierd the FTP server would even start this way)

Anyway. I guess there is some bug in the update script that's not parsing some files.
I will try to change the variables and check if I can get everything running.

Thanks for the help.

/E
04-18-2008 08:01 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #10
RE: Parsing problem with ftp_choose_dir.php
yeah maybe the process is running ... but with a wrong config ?

which proftpd Version do you run currently ?
04-18-2008 08:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)