[horde] Horde Groupware Webmail Edition 1.2.7/1.2.8/1.2.9 with PHP4 shows blank page after login

Nethub Online nethubonline at gmail.com
Wed Dec 29 11:02:10 UTC 2010


2010/12/29 Jan Schneider <jan at horde.org>

> Zitat von Nethub Online <nethubonline at gmail.com>:
>
>  2010/12/28 Jan Schneider <jan at horde.org>
>>
>>  Zitat von Nethub Online <nethubonline at gmail.com>:
>>>
>>>  2010/12/27 Jan Schneider <jan at horde.org>
>>>
>>>>
>>>>  Zitat von Nethub Online <nethubonline at gmail.com>:
>>>>
>>>>>
>>>>>
>>>>>  2010/12/27 Jan Schneider <jan at horde.org>
>>>>>
>>>>>
>>>>>>  Zitat von Nethub Online - Tommy <nethubonline at gmail.com>:
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>  Jan Schneider <jan <at> horde.org> writes:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>  Zitat von Nethub Online - Tommy <nethubonline <at> gmail.com>:
>>>>>>>>
>>>>>>>>
>>>>>>>>> > Jan Schneider <jan <at> horde.org> writes:
>>>>>>>>> >>
>>>>>>>>> >> Try the IMAP tests in imp/test.php. This looks like a broken
>>>>>>>>> IMAP
>>>>>>>>> >> extension in your PHP 4 installation.
>>>>>>>>> >>
>>>>>>>>> >> Jan.
>>>>>>>>> >
>>>>>>>>> > It shows "IMAP Support: Yes" in both 1.2.6 and 1.2.7 .
>>>>>>>>> >
>>>>>>>>> > Here are the testing page for your references:
>>>>>>>>> > http://202.67.138.64/horde-webmail-1.2.7/imp/test.php
>>>>>>>>> > http://202.67.138.64/horde-webmail-1.2.6/imp/test.php
>>>>>>>>>
>>>>>>>>> You should *run* the IMAP test, not just check that the IMAP
>>>>>>>>> extension
>>>>>>>>> is installed.
>>>>>>>>>
>>>>>>>>> > In order to let you realize the problem, here I give you a demo
>>>>>>>>> account.
>>>>>>>>> > http://202.67.138.64/horde-webmail-1.2.7/
>>>>>>>>> > http://202.67.138.64/horde-webmail-1.2.6/
>>>>>>>>> > Username: test <at> test.com
>>>>>>>>> > Password: 3g6FtaqH
>>>>>>>>> >
>>>>>>>>> > PS: Since spammer may look at this post, so that above email
>>>>>>>>> server
>>>>>>>>> will not
>>>>>>>>> > send out any email.
>>>>>>>>> >
>>>>>>>>> > --
>>>>>>>>> > Horde mailing list
>>>>>>>>> > Frequently Asked Questions: http://horde.org/faq/
>>>>>>>>> > To unsubscribe, mail: horde-unsubscribe <at> lists.horde.org
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>> Jan.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  Sorry for my mistake.
>>>>>>>>>
>>>>>>>>
>>>>>>>> I entered "202.67.138.64", "test at test.com" and "3g6FtaqH",
>>>>>>>> it shows the "imap/notls, Port 143" is "SUCCESS - INBOX has 0
>>>>>>>> messages
>>>>>>>> (0
>>>>>>>> new 0
>>>>>>>> recent)", and both 1.2.6 and 1.2.7 shows the same output (you may
>>>>>>>> try
>>>>>>>> the
>>>>>>>> testing as well).
>>>>>>>> http://202.67.138.64/horde-webmail-1.2.7/
>>>>>>>> http://202.67.138.64/horde-webmail-1.2.6/
>>>>>>>> Username: test <at> test.com
>>>>>>>> Password: 3g6FtaqH
>>>>>>>>
>>>>>>>> So, does it mean the IMAP extension in my PHP 4 installation is ok?
>>>>>>>>
>>>>>>>>
>>>>>>>>  It means that you can login with your IMAP extension.
>>>>>>>>
>>>>>>>
>>>>>>> Jan.
>>>>>>>
>>>>>>> --
>>>>>>> Do you need professional PHP or Horde consulting?
>>>>>>> http://horde.org/consulting/
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Horde mailing list
>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>>>
>>>>>>>
>>>>>>>  Yes, I can. So, do you have any idea on the  blank page problem with
>>>>>>>
>>>>>> 1.2.7/1.2.8/1.2.9?
>>>>>>
>>>>>>
>>>>>>  Ah, that was the original problem. No. Did you check
>>>>> http://wiki.horde.org/FAQ/Admin/Troubleshoot#wsod?
>>>>>
>>>>>
>>>>> Jan.
>>>>>
>>>>> --
>>>>> Do you need professional PHP or Horde consulting?
>>>>> http://horde.org/consulting/
>>>>>
>>>>> --
>>>>> Horde mailing list
>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>
>>>>>
>>>>>  Yes, sure. I have mentioned on 14 Dec that I checked
>>>> http://wiki.horde.org/FAQ/Admin/Troubleshoot#wsod and did forced the
>>>> php.ini
>>>> to log down the error and change the config/conf.php to
>>>> "$conf['debug_level'] = E_ALL;" , I now tested in another PHP4
>>>> enviroment
>>>> it shows the similar errors as below:
>>>>
>>>> *There is no problem if it is version 1.2.6 , so I don't think the
>>>> problem
>>>> is related to PHP installation or IMAP extension problem.*
>>>>
>>>> Ah.......would you simply test it in a PHP4 environment with version
>>>> 1.2.7
>>>> or newer? You will encounter the problem immediately so that you can
>>>> believe
>>>> me that I have told you all info regarding to the problem.
>>>>
>>>> *==> error log <==*
>>>> [client 123.123.123.123] PHP Warning:  reset(): Passed variable is not
>>>> an array or object in
>>>> /var/www/html/horde-webmail-1.2.7/imp/lib/IMAP/Tree.php on line 249,
>>>> referer:
>>>>
>>>> http://202.67.138.65/horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>> [client 123.123.123.123] PHP Warning:  Invalid argument supplied for
>>>> foreach() in /var/www/html/horde-webmail-1.2.7/imp/lib/IMAP/Tree.php
>>>> on line 496, referer:
>>>>
>>>>
>>>> http://202.67.138.65/horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>> [client 123.123.123.123] PHP Fatal error:  Unsupported operand types
>>>> in /var/www/html/horde-webmail-1.2.7/imp/lib/IMAP/Tree.php on line
>>>> 333, referer:
>>>>
>>>> http://202.67.138.65/horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>> [client 123.123.123.123] PHP Warning:  reset(): Passed variable is not
>>>> an array or object in
>>>> /var/www/html/horde-webmail-1.2.7/imp/lib/IMAP/Tree.php on line 249,
>>>> referer:
>>>>
>>>> http://202.67.138.65/horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>> [client 123.123.123.123] PHP Warning:  Invalid argument supplied for
>>>> foreach() in /var/www/html/horde-webmail-1.2.7/imp/lib/IMAP/Tree.php
>>>> on line 496, referer:
>>>>
>>>>
>>>> http://202.67.138.65/horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>> [client 123.123.123.123] PHP Fatal error:  Unsupported operand types
>>>> in /var/www/html/horde-webmail-1.2.7/imp/lib/IMAP/Tree.php on line
>>>> 333, referer:
>>>>
>>>> http://202.67.138.65/horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>>
>>>> *==> access log <==*
>>>> 123.123.123.123 - - [28/Dec/2010:07:30:15 +0300] "GET
>>>>
>>>>
>>>> /horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>> HTTP/1.1" 200 419
>>>> "http://202.67.138.65/horde-webmail-1.2.7/imp/login.php" "Mozilla/4.0
>>>> (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR
>>>> 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC
>>>> 6.0; .NET4.0C)"
>>>> 123.123.123.123 - - [28/Dec/2010:07:30:15 +0300] "GET
>>>> /horde-webmail-1.2.7/services/portal/sidebar.php HTTP/1.1" 200 26
>>>> "
>>>>
>>>> http://202.67.138.65/horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>> "
>>>> "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0;
>>>> SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
>>>> Media Center PC 6.0; .NET4.0C)"
>>>> 123.123.123.123 - - [28/Dec/2010:07:30:15 +0300] "GET
>>>>
>>>>
>>>> /horde-webmail-1.2.7/imp/mailbox.php?mailbox=INBOX&mailbox_token=t3OBt9A5K6ieKVqWLi5yD-2J_fQ&no_newmail_popup=1&frameset_loaded=1
>>>> HTTP/1.1" 200 26
>>>> "
>>>>
>>>> http://202.67.138.65/horde-webmail-1.2.7/index.php?url=http%3A%2F%2F202.67.138.65%2Fhorde-webmail-1.2.7%2Fimp%2Fmailbox.php%3Fmailbox%3DINBOX%26mailbox_token%3Dt3OBt9A5K6ieKVqWLi5yD-2J_fQ%26no_newmail_popup%3D1
>>>> "
>>>> "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0;
>>>> SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
>>>> Media Center PC 6.0; .NET4.0C)"
>>>>
>>>>
>>>> Hm......there is one more hint:
>>>> If I install the horde in PHP4 environment by ./scripts/setup.php and
>>>> execute "(1) Configure database settings", it will show below error.
>>>> Hence, I run "(1) Configure database settings" again in PHP5, and then
>>>> move back to PHP4 server to run "(2) Create database or tables" and no
>>>> error any more.
>>>> I think Horde is supporting PHP4 so below error is not expected as
>>>> well, isn't it?
>>>>
>>>> Writing main configuration file
>>>> PHP Fatal error:  Call to undefined function:  first_child() in
>>>> /var/www/html/horde-webmail-1.2.5/lib/Horde/Config.php on line 153
>>>>
>>>>
>>> This means that you have a broken PHP installation, mixing old PHP
>>> versions
>>> with newer XML extensions or vice versa.
>>>
>>>  Fatal error: Call to undefined function:  first_child() in
>>>
>>>> /var/www/html/horde-webmail-1.2.5/lib/Horde/Config.php on line 153
>>>> --
>>>> Horde mailing list
>>>> Frequently Asked Questions: http://horde.org/faq/
>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>
>>>>
>>>>  Also, what's up with http://202.67.138.64/horde-webmail-1.2.7/test.php?
>>> It
>>> shows a blank screen too. Why?
>>>
>>
>> Hi Jan,
>>
>> Yeah! I got what is the reason to cause such problem, here is the result:
>>
>> 1. "lib/Test.php" line 330 of 698, there is "@" which hides all error so
>> that the test.php is blank, and that is why I cannot get any error from
>> server log
>> $result = @include_once $val['path'];
>>
>> 2. after I removed the "@" sign, it shows error :
>> *Parse error*: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION
>> or T_FUNCTION or T_VAR or '}' in *
>>
>> /home/httpd/html/htdocs/horde-webmail-1.2.7/pear/php/Net/DNS/Resolver.php*on
>> line
>> *241
>>
>> *3. "pear/php/Net/DNS/Resolver.php" line 241 of 1428, I think this line is
>> the main problem to cause the error, after I removed this line (yes, whole
>> line), test.php becomes not blank, and I can login without getting blank
>> page problem as well. But I don't know whether deleting the line will
>> raise
>> another problem or not......So, can it be fixed in new release?*
>> *    static $parsedfiles = array();*
>>
>
> Looks like this was a bug in the version of Net_DNS that we bundle with
> Horde Groupware: http://pear.php.net/bugs/bug.php?id=17988
> You can upgrade that package yourself though:
> http://wiki.horde.org/GroupwarePEAR
>
>  *4. Besides the blank page problem, while I use ./scripts/setup.php to
>> write
>>
>> the configuration file (Also PHP4 environment), it shows error below, can
>> it
>> be fixed as well? Should I submit a new post for this?
>>
>> **Writing main configuration file
>> PHP Fatal error:  Call to undefined function:  first_child() in
>> /home/httpd/html/htdocs/horde-webmail-1.2.9/lib/Horde/Config.php on line
>> 153
>>
>> Fatal error: Call to undefined function:  first_child() in
>> /home/httpd/html/htdocs/horde-webmail-1.2.9/lib/Horde/Config.php on line
>> 153
>>
>
> See my answer to your last message.
>
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>

Thanks Jan,

I have upgraded the pear package already, and successful log is here:
# pear -c horde.ini upgrade Net_DNS
downloading Net_DNS-1.0.7.tgz ...
Starting to download Net_DNS-1.0.7.tgz (32,647 bytes)
.........done: 32,647 bytes
upgrade ok: channel://pear.php.net/Net_DNS-1.0.7


But the problem cannot be solved, still blank screen, and found problem as
below, is it a known bug or ?

# php -l pear/php/Net/DNS/Packet.php
<br />
<b>Parse error</b>:  parse error, unexpected T_CONST, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in
<b>/var/www/html/horde-webmail-1.2.7/pear/php/Net/DNS/Packet.php</b> on line
<b>125</b><br />
Errors parsing pear/php/Net/DNS/Packet.php


More information about the horde mailing list