Article ID: 3377, created on Nov 30, 2007, last review on May 8, 2014

  • 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.

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF