phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-users] Installation - cannot login


From: Chris Weiss
Subject: Re: [Phpgroupware-users] Installation - cannot login
Date: Tue, 10 Sep 2002 03:38:32 +0000

Apache 2 will likely not work without some hacking, but otherwise your best bet 
is
the .14 branch of cvs.  the default (HEAD) cvs branch was not really usable as 
of
earlier today.

Patrick Price (address@hidden) wrote*:
>
>I did install cvs for AIX and haven't run into that particular problem
>on  AIX.  I got the errors on Solaris 8 with Apache 2.0 / PHP 4.2.2 and
>I'll go back to Solaris in a day or two and start again from scratch
>after applying cvs patches and see what happens.  Thanks for the help.
>-Patrick
>
>Chris Weiss wrote:
>
>>Actually, the problem is in the new code.  I removed my "patch" from my 
>>install then
>>updated to cvs just after .14  released and this problem occurred after 
>>editing the
>>header the second time.  Removing the new code from my new header.inc.php 
>>allowed me
>>to edit the header one more time.  It has been fixed in the latest .14 CVS, 
>>but is a
>>problem in the tarball release.  BTW, thanks for adding that, I wouldn't have
>>thought to use a simple define to make it optional.  Nice and clean.
>>
>>The fix was to wrap the function in a "if 
>>(!function_exists('perfgetmicrotime'))",
>>and a simple grep shows that the only other place perfgetmicrotime() is 
>>defined is
>>in the header template.
>>
>>No need to scold at poeple for your lack of testing and lack of even 
>>bothering to
>>verify the bug report.  It's also not fair of you to assume that someone had 
>>added a
>>non-official patch, I'm sure that if he did add my "patch" he might have 
>>recognized
>>it right off, I know I did.
>>
>>If I seem a little bitter it's because this is the 3rd relese in a row that 
>>had
>>quite simple but show stopping bugs in the tarball.  A couple of these 
>>releases were
>>not even usable without a cvs update.  But this is for a dirrent thread in a
>>different place.
>>
>>Patrick, if you are unable to update cvs, change the function to look like 
>>this in
>>both your header and the template:
>>
>>
>>        if (!function_exists('perfgetmicrotime'))
>>        {
>>                function perfgetmicrotime()
>>                {
>>                        list($usec, $sec) = explode(' ',microtime());
>>                        return ((float)$usec + (float)$sec);
>>                }
>>        }
>>
>>        if (DEBUG_TIMER)
>>        {
>>                $GLOBALS['debug_timer_start'] = perfgetmicrotime();
>>        }
>>
>>
>>Mark A Peters (Skeeter) (address@hidden) wrote*:
>>
>>
>>>A developer has been notified..
>>>
>>>I can't really help it that you had applied a non-approved patch
>>>(no slam against you Chris "||cw").  Chris' code had actually been applied
>>>into the post RC4 release wich is now official in the .14.000 release.  I
>>>would suggest searching back in the mailing list to when Chris had suggested
>>>the patch and find which file(s) (some file(s) in phpgwapi) and delete the
>>>offending file(s) and perform an update from CVS.  Be careful to not delete
>>>your header.inc.php file, the .template file would be ok to delete.
>>>
>>>cd <your phpgw directory>; cvs -z9 -dP | less
>>>
>>>That will grab all updates to the .14.000 release, along with restoring
>>>the previous files deleted.
>>>
>>>Thanks,
>>>Mark A Peters (Skeeter)
>>>
>>>On Mon, 9 Sep 2002, Patrick Price wrote:
>>>
>>>
>>>
>>>>Shouldn't a developer be alerted so it can be fixed?  -Patrick
>>>>
>>>>       function perfgetmicrotime()
>>>>        {
>>>>                list($usec, $sec) = explode(' ',microtime());
>>>>                return ((float)$usec + (float)$sec);
>>>>        }
>>>>
>>>>        if (DEBUG_TIMER)
>>>>        {
>>>>                $GLOBALS['debug_timer_start'] = perfgetmicrotime();
>>>>        }
>>>>
>>>>Chris Weiss wrote:
>>>>
>>>>
>>>>
>>>>>IIRC there's an IF right below that function, move the function inside the 
>>>>>if.
>>>>>
>>>>>David Santos (address@hidden) wrote*:
>>>>>
>>>>>
>>>>>
>>>>>>Hi Patrick,
>>>>>>I checked with my phpgroupware and that's Ok.  Now, is the function being
>>>>>>declared again after line 103? (or, just maybe, before line 99)
>>>>>>If it isn't.  Then I'm trapped.  If you want I can send you my
>>>>>>header.inc.php (to your private mail) and you can edit the configuration
>>>>>>fields manually.  It's quite a simple task.
>>>>>>
>>>>>>David Santos
>>>>>>
>>>>>>Patrick Price dijo:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>These are the lines it is complaining about:
>>>>>>>
>>>>>>>Fatal error: Cannot redeclare perfgetmicrotime() (previously declared in
>>>>>>>/space/apache/htdocs/phpgroupware/header.inc.php:101) in
>>>>>>>/space/apache/htdocs/phpgroupware/header.inc.php on line 99
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>99:   function perfgetmicrotime()
>>>>>>>100:    {
>>>>>>>101:             list($usec, $sec) = explode(' ',microtime());
>>>>>>>102:        return ((float)$usec + (float)$sec);
>>>>>>>103:    }
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>_______________________________________________
>>>>>>Phpgroupware-users mailing list
>>>>>>address@hidden
>>>>>>http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>Phpgroupware-users mailing list
>>>>>address@hidden
>>>>>http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>_______________________________________________
>>>Phpgroupware-users mailing list
>>>address@hidden
>>>http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>>>
>>>
>>>
>>
>>
>>
>>_______________________________________________
>>Phpgroupware-users mailing list
>>address@hidden
>>http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>>
>>
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]