Product:
Search Type:

Common error messages in Horde webmail.

Article ID: 3377 
Last Review: Nov,30 2007
APPLIES TO:
  • H-Sphere

RESOLUTION

"Failed opening test.php for inclusion"


The set_perms.sh script and some packaged distributions change the permissions on the test.php script so that it can't be run. This increases the security of your web server by not revealing to intruders information about how PHP is compiled/configured or what Horde applications are installed. To use the script while setting up Horde, add read permission for your web server to the script:





chmod +r horde/test.php




Remember to remove read permission (chmod a-r) from the file when you have finished testing.




"Fatal error: Allowed memory size of ### bytes exhausted..."


Either recompile PHP without the --enable-memory-limit option, or increase the value of memory_limit in your php.ini file.



Note that when making a change to your php.ini file you will probably need to restart your web server software in order for the changes to become active.




"Only variable references should be returned by reference"



"Only variables can be passed by reference"


These messages appear after upgrading to PHP 4.4 or PHP 5.1. These PHP versions raise notices about reference usage that older version accepted happily. Only Horde 3.x and the H3 application versions are fixed to not cause these messages, so either upgrade to the latest versions, or set your error reporting level in PHP to exclude E_NOTICE level messages.



E.g. in php.ini:





error_reporting = E_ALL & ~E_NOTICE




You can also turn off the display of error reporting entirely, although this might cause problems diagnosing problems in the future. After you get a good, working installation you can turn off the display of error messages to the browser and just log them.



E.g. in php.ini:





display_errors = Off
log_errors = On
error_log = syslog ; goes to NT event log on NT-based machines
; error_log = /var/log/php_error




Note that when making a change to your php.ini file you will probably need to restart your web server software in order for the changes to become active.



"imap_utf7_decode: Unexpected end of string"



"undefined function: imap_utf7_encode()"


This error most often occurs when IMP tries to use a folder name with an ampersand (&) in it. The easiest solution is to rename the folder to something without an ampersand in it (on the server, or with a different IMAP client).



The error can also occur if IMAP support has not been compiled into PHP. Ensure that your PHP installation supports IMAP.



"Warning: Unable to open '/tmp/...'" when attaching


On some systems (commonly Solaris and FreeBSD), the upload_tmp_dir setting in php.ini must be set to /var/tmp.



Note that when making a change to your php.ini file you will probably need to restart your web server software in order for the changes to become active.







Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields