Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: fix when using a port other than 80: msg#00257

bug-tracking.flyspray.devel

Subject: Re: fix when using a port other than 80

Gaël Beaudoin escribió:
> Le Jeudi 21 Septembre 2006 19:02, Cristian Rodriguez R. a écrit :
>> Gaël Beaudoin escribió:
>>> Hello :)
>>>
>>> Today I upgraded our flyspray setup to latest svn.
>>> I had a problem : the site starts to load and stops during loading : the
>>> browser waits indefinitely.
>>>
>>> Here is the fix I found :
>>>
>>> In the file includes/constants.inc.php :
>>>
>>> 20,22d19
>>>
>>>> // gaboo 20060921
>>>> $_SERVER['SERVER_PORT'] = '81';
>>>> // gaboo
>>> (taht is, just before the line "$baseurl =
>>> rtrim(Flyspray::absoluteURI($webdir),'/\\') . '/' ;"
>>>
>>> I believe there's a better way to fix this, hope it will be easier to
>>> find with this :)
>> make sure you are using the 0.9.9 branch.. and **not** trunk.
>>
>> check "svn info" if it displays
>>
>> "URL: http://svn.ivt.com.au/flyspray/trunk";
>>
>>
>> execute the following command
>>
>> svn switch http://svn.ivt.com.au/flyspray/branches/0.9.9
>>
>> abaout the error, something is different in your enviroment, works as
>> expected here.. if the $port argument is not passed to
>> (Flyspray::absoluteURI() , the function calculates the port based on the
>> value of $_SERVER['SERVER_PORT'] automatically for you. what is the
>> value of $_SERVER['SERVER_PORT'] BEFORE you set it to 81 ?
>>
>> try echo'ing it before you force it, and then exit;
>>
>> i.e
>>
>> echo $_SERVER['SERVER_PORT'];
>> exit;
>> //code that sets server_port here, never executes..
>>
>> btw.. forcing server port is a really bad idea and something is messed
>> in your setup then.
>
> Arf, indeed, I was using trunk. I switched to 0.9.9 branch.
> The bug is still present though.
>
> Echo'ing it give me this : 16081
> Dunno why.
>
> I'm using apache on an apple xserve running macos x server.
>

please var_dump($_SERVER);exit;

_______________________________________________
flyspray mailing list
flyspray@xxxxxxxxxxxxxx
http://lists.rocks.cc/listinfo.cgi/flyspray-rocks.cc
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation