Install issue [message #4239] |
Fri, 19 July 2002 10:34  |
|
Hi,
I'm trying to install v2.2.3 on my NT box under localhost.
After the first screen I'm getting this error:
Warning: fopen("","rb") - No error in c:\bin\projects\web\htdocs\install.php on line 165
Couldn't locate start of archive
Here is what I have in the initial form:
Server root: c:/bin/projects/web/htdocs/forum/
Forum Data Root: c:/bin/projects/web/htdocs/forum/
Forum WWW Root: http://localhost/forum/
I'm running Apache, PHP4 and MySQL.
What is wrong here?
Thanks.
Kolerij
|
|
|
|
|
|
Re: Install issue [message #4248 is a reply to message #4246] |
Fri, 19 July 2002 16:12   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
add to buddy list ignore all messages by this user
|
|
True, BUT
inside install.php there is also:
if( !isset($HTTP_SERVER_VARS['PATH_TRANSLATED']) && isset($HTTP_SERVER_VARS['SCRIPT_FILENAME']) )
$HTTP_SERVER_VARS['PATH_TRANSLATED'] = $GLOBALS['HTTP_SERVER_VARS']['PATH_TRANSLATED'] = $HTTP_SERVER_VARS['SCRIPT_FILENAME'];
That will try to create PATH_TRANSLATED if it is not avaliable.
Does your system have SCRIPT_FILENAME variable?
FUDforum Core Developer
|
|
|
|
Re: Install issue [message #4250 is a reply to message #4248] |
Fri, 19 July 2002 16:16   |
|
prottoss wrote on Fri, 19 July 2002 16:12 |
Does your system have SCRIPT_FILENAME variable?
|
Yes it does, it is currently pointing to c:/php/php.exe.
Is that right?
|
|
|
Re: Install issue [message #4251 is a reply to message #4250] |
Fri, 19 July 2002 16:18   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
add to buddy list ignore all messages by this user
|
|
Oh I see, you are running PHP as cgi module right?
Here is a possible fix:
change
if( !isset($HTTP_SERVER_VARS['PATH_TRANSLATED']) && isset($HTTP_SERVER_VARS['SCRIPT_FILENAME']) )
$HTTP_SERVER_VARS['PATH_TRANSLATED'] = $GLOBALS['HTTP_SERVER_VARS']['PATH_TRANSLATED'] = $HTTP_SERVER_VARS['SCRIPT_FILENAME'];
to
if( !isset($HTTP_SERVER_VARS['PATH_TRANSLATED']) ) {
if( isset($HTTP_SERVER_VARS['SCRIPT_FILENAME']) )
$HTTP_SERVER_VARS['PATH_TRANSLATED'] = $GLOBALS['HTTP_SERVER_VARS']['PATH_TRANSLATED'] = $HTTP_SERVER_VARS['SCRIPT_FILENAME']
else
$HTTP_SERVER_VARS['PATH_TRANSLATED'] = $GLOBALS['HTTP_SERVER_VARS']['PATH_TRANSLATED'] = realpath('install.php');
}
If it works, please let me know.
FUDforum Core Developer
|
|
|
|
Re: Install issue [message #4253 is a reply to message #4239] |
Fri, 19 July 2002 16:23   |
|
Ok, I will send it shortly.
But there is something else I noticed.
$GLOBALS["DOCUMENT_ROOT"] returns the correct value.
$GLOBALS['HTTP_SERVER_VARS']["DOCUMENT_ROOT"] doesn't
|
|
|
|
|
|
Re: Install issue [message #4257 is a reply to message #4256] |
Fri, 19 July 2002 16:45   |
|
oh dear 
Well I will try that. I am actually mirroring the production environment on the Linux web servers that I use. I guess I should tell them to upgrade as well.
Thanks. I'll let you know the progress.
|
|
|
|
Re: Install issue [message #4259 is a reply to message #4258] |
Fri, 19 July 2002 16:54   |
|
Ok. We actually only upgrade when we need to. So I guess that time has finally come 
I will upgrade on the development machines first and test.
Then we will tackle the production guys
|
|
|
|
|
Re: Install issue [message #4266 is a reply to message #4239] |
Sat, 20 July 2002 02:16   |
|
Up and running fine on dev machine
Thanks again.
One thing I noticed though, in the Admin Panel, when I click on Template Editor and choose the Template Set and Language to edit, it keeps taking me to a form saying: "Login Into the Forum". When I checked the source for the template edit page, I noticed that there is no 'action' tag in the form where you select the template to edit. It just has <form method="post"> and that's it 
Strange
|
|
|
Re: Install issue [message #4267 is a reply to message #4266] |
Sat, 20 July 2002 08:46   |
|
hmmm...I also get this problem in the Category Management System, when I'm editing forums for a category I would click the 'Back to categories' link and get the 'Login Into the Forum' page again. But I also noticed that the link is:
http://localhost/forum/adm/admcat.php without any parameters, when it should be something like http://localhost/forum/adm/admcat.php?rid=1&S=77ccaf5.....
What do you think?
|
|
|
|
|
Re: Install issue [message #4279 is a reply to message #4270] |
Sat, 20 July 2002 13:39   |
|
prottoss wrote on Sat, 20 July 2002 10:14 |
kolerij wrote on Sat, 20 July 2002 08:46 | hmmm...I also get this problem in the Category Management System, when I'm editing forums for a category I would click the 'Back to categories' link and get the 'Login Into the Forum' page again. But I also noticed that the link is:
http://localhost/forum/adm/admcat.php without any parameters, when it should be something like http://localhost/forum/adm/admcat.php?rid=1&S=77ccaf5.....
What do you think?
|
Also fixed in the CVS.
|
This worked thanks.
|
|
|
Re: Install issue [message #4280 is a reply to message #4269] |
Sat, 20 July 2002 13:39   |
|
prottoss wrote on Sat, 20 July 2002 10:12 |
kolerij wrote on Sat, 20 July 2002 02:16 | Up and running fine on dev machine
Thanks again.
One thing I noticed though, in the Admin Panel, when I click on Template Editor and choose the Template Set and Language to edit, it keeps taking me to a form saying: "Login Into the Forum". When I checked the source for the template edit page, I noticed that there is no 'action' tag in the form where you select the template to edit. It just has <form method="post"> and that's it 
Strange
|
Fixed in the CVS, the bug was actually from another reason.
I've attached the patched file.
|
This didn't solve the problem. It still takes me to the login page.
|
|
|
Re: Install issue [message #4286 is a reply to message #4280] |
Sun, 21 July 2002 13:05   |
|
kolerij wrote on Sat, 20 July 2002 13:39 |
prottoss wrote on Sat, 20 July 2002 10:12 |
kolerij wrote on Sat, 20 July 2002 02:16 | Up and running fine on dev machine
Thanks again.
One thing I noticed though, in the Admin Panel, when I click on Template Editor and choose the Template Set and Language to edit, it keeps taking me to a form saying: "Login Into the Forum". When I checked the source for the template edit page, I noticed that there is no 'action' tag in the form where you select the template to edit. It just has <form method="post"> and that's it 
Strange
|
Fixed in the CVS, the bug was actually from another reason.
I've attached the patched file.
|
This didn't solve the problem. It still takes me to the login page.
|
Any input on this?
|
|
|
|
Re: Install issue [message #4292 is a reply to message #4288] |
Sun, 21 July 2002 19:20  |
|
prottoss wrote on Sun, 21 July 2002 18:03 |
kolerij wrote on Sun, 21 July 2002 13:05 |
Any input on this?
|
I've missed the true source of the problem in the original fix for that form. Attached is a working version.
|
Thanks. Working now
|
|
|