FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Install issue
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon9.gif  Install issue [message #4239] Fri, 19 July 2002 14:34 Go to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
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? Confused

Thanks. Razz
Kolerij
Re: Install issue [message #4243 is a reply to message #4239] Fri, 19 July 2002 18:21 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
How big is the decompressed archive file?

FUDforum Core Developer
Re: Install issue [message #4244 is a reply to message #4243] Fri, 19 July 2002 18:41 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
If you're referring to the install.php file, about 2,939 KB.
That is from the FUDforum2_20020712 build.

Is that what your mean?
Re: Install issue [message #4246 is a reply to message #4239] Fri, 19 July 2002 19:05 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
Actually,

Just a lil' more info to add. I didn't really want to get my hands too dirty with the code, but I can't help, its in my blood Cool

I was doing a lil debugging and I noticed that the problem is ocurring in the decompress_archive method, when it tries to send $GLOBALS['HTTP_SERVER_VARS']['PATH_TRANSLATED'] as a parameter to the filetomem method. Sad

$GLOBALS['HTTP_SERVER_VARS']['PATH_TRANSLATED'] is returning as '' or null. Which is strange cuz when I check phpinfo() I can see all the server variables. Confused

Kolerij

[Updated on: Fri, 19 July 2002 19:13]

Report message to a moderator

Re: Install issue [message #4248 is a reply to message #4246] Fri, 19 July 2002 20:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
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 #4249 is a reply to message #4244] Fri, 19 July 2002 20:13 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
kolerij wrote on Fri, 19 July 2002 14:41

If you're referring to the install.php file, about 2,939 KB.
That is from the FUDforum2_20020712 build.

Is that what your mean?


Yeah.


FUDforum Core Developer
Re: Install issue [message #4250 is a reply to message #4248] Fri, 19 July 2002 20:16 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
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 20:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
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 #4252 is a reply to message #4251] Fri, 19 July 2002 20:19 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If possible, could you give me URL to phpinfo() on your server or if not send me the html output of the function via forum PM or email (ilia(at)prohost(dot)org).

FUDforum Core Developer
Re: Install issue [message #4253 is a reply to message #4239] Fri, 19 July 2002 20:23 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
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

Confused
Re: Install issue [message #4254 is a reply to message #4253] Fri, 19 July 2002 20:26 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Interesting, which version of PHP is this?

FUDforum Core Developer
Re: Install issue [message #4255 is a reply to message #4239] Fri, 19 July 2002 20:33 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
Everything is in the phpinfo file I sent you.
Re: Install issue [message #4256 is a reply to message #4255] Fri, 19 July 2002 20:42 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You are running a rather ancient version of PHP, which could very well be at fault for the problem you are seeing. Can you trying grabbing the Win32 PHP package from php.net and trying it.
PHP is up to version 4.2.1 now a days Wink


FUDforum Core Developer
Re: Install issue [message #4257 is a reply to message #4256] Fri, 19 July 2002 20:45 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
oh dear Rolling Eyes

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.

Cool
Re: Install issue [message #4258 is a reply to message #4257] Fri, 19 July 2002 20:49 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You definately want to upgrade, because php < 4.1.0 contains a remote buffer exploit vunreability via file upload as well as other security related bugs.

FUDforum Core Developer
Re: Install issue [message #4259 is a reply to message #4258] Fri, 19 July 2002 20:54 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
Ok. We actually only upgrade when we need to. So I guess that time has finally come Smile

I will upgrade on the development machines first and test.

Then we will tackle the production guys Twisted Evil
Re: Install issue [message #4260 is a reply to message #4259] Fri, 19 July 2002 21:01 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Good policy, although usually security faults are something that force your hand a little bit.

FUDforum Core Developer
Re: Install issue [message #4261 is a reply to message #4260] Fri, 19 July 2002 21:02 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
That's very true.
Re: Install issue [message #4266 is a reply to message #4239] Sat, 20 July 2002 06:16 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
Up and running fine on dev machine Cool

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 Shocked

Strange Confused
Re: Install issue [message #4267 is a reply to message #4266] Sat, 20 July 2002 12:46 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
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 #4269 is a reply to message #4266] Sat, 20 July 2002 14:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
kolerij wrote on Sat, 20 July 2002 02:16

Up and running fine on dev machine Cool

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 Shocked

Strange Confused


Fixed in the CVS, the bug was actually from another reason.
I've attached the patched file.


FUDforum Core Developer
Re: Install issue [message #4270 is a reply to message #4267] Sat, 20 July 2002 14:14 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
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.
  • Attachment: admforum.php
    (Size: 8.30KB, Downloaded 681 times)


FUDforum Core Developer
Re: Install issue [message #4279 is a reply to message #4270] Sat, 20 July 2002 17:39 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
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 17:39 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
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 Cool

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 Shocked

Strange Confused


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 17:05 Go to previous messageGo to next message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
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 Cool

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 Shocked

Strange Confused


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? Sad
Re: Install issue [message #4288 is a reply to message #4286] Sun, 21 July 2002 22:03 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
kolerij wrote on Sun, 21 July 2002 13:05



Any input on this? Sad



I've missed the true source of the problem in the original fix for that form. Attached is a working version.


FUDforum Core Developer
Re: Install issue [message #4292 is a reply to message #4288] Sun, 21 July 2002 23:20 Go to previous message
kolerij is currently offline  kolerij   Barbados
Messages: 58
Registered: July 2002
Karma: 0
Member
prottoss wrote on Sun, 21 July 2002 18:03

kolerij wrote on Sun, 21 July 2002 13:05



Any input on this? Sad



I've missed the true source of the problem in the original fix for that form. Attached is a working version.



Thanks. Working now Cool
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ERROR: System Error
Next Topic: ALTER Error Compacting Messages
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 01 04:28:55 GMT 2024

Total time taken to generate the page: 0.02432 seconds