I'm trying to install phpwiki v 1.3.10 on Red Hat Linux 8.0 3.2-7.
I was having the same problem of the index.php page being blank that a few other people posted about (problem because SCRIPT_FILENAME == FILE was false). After getting past that, the index page now loads, but it has a bunch of error messages, and the buttons don't do anything.
Errors in the browser display:
lib/DB_Session.php:74: Warning[2]: ini_set(): A session is active. You cannot change the session module's ini settings at this time.
lib/display.php:131: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:260: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:262: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:296: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:297: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:298: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/main.php:505: Warning[2]: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp)
And I also get this error in the php error_log:
[Fri Jan 21 06:39:39 2005][error] PHP Fatal error: Unknown(): Failed to initialize storage module. in Unknown on line 0
Hope some of you wiki gurus out there can help...
Thanks!
Nancy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the feedback, but I've still got trubbbbble.
I tried re-installing to make sure I hadn't inadvertently added some whitespace somewhere, but I still get the exact same problems.
And, after I try reloading the page a few times, it corrupts apache, which is a nice touch. :) I get this error when running any php page, until after I restart apache:
PHP Fatal error: session_start(): Failed to initialize storage module. in /var/cvsroot/lc_all/webapps/ecommerce/catalog/includes/functions/sessions.php on line 67
I should mention that I'm running in Firefox 1.0, but I tried it in IE 6 also. The first time I loaded index.php I got an err msg about XML, but then after reloading the page I get the same errors as firefox.
Err msgs (from browser when loading index.php):
lib/DB_Session.php:74: Warning[2]: ini_set(): A session is active. You cannot change the session module's ini settings at this time.
lib/display.php:131: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:260: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:262: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:296: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:297: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:298: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/main.php:505: Warning[2]: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp)
>> /var/cvsroot/lc_all/htdocs doesn't seem to be the best docroot :)
/var/cvsroot/lc_all/htdocs is the doc root because /usr/local/apache/htdocs is a symlink. Is that a problem?
>>session couldn't be initialized, so check your session settings. (/tmp)
My session settings work fine in all other applications. Here they are (from php.ini):
I'm trying to install phpwiki v 1.3.10 on Red Hat Linux 8.0 3.2-7.
I was having the same problem of the index.php page being blank that a few other people posted about (problem because SCRIPT_FILENAME == FILE was false). After getting past that, the index page now loads, but it has a bunch of error messages, and the buttons don't do anything.
Errors in the browser display:
lib/DB_Session.php:74: Warning[2]: ini_set(): A session is active. You cannot change the session module's ini settings at this time.
lib/display.php:131: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:260: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:262: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:296: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:297: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/Request.php:298: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/wiki/lib/XmlElement.php:326)
lib/main.php:505: Warning[2]: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp)
And I also get this error in the php error_log:
[Fri Jan 21 06:39:39 2005] [error] PHP Fatal error: Unknown(): Failed to initialize storage module. in Unknown on line 0
Hope some of you wiki gurus out there can help...
Thanks!
Nancy
/var/cvsroot/lc_all/htdocs doesn't seem to be the best docroot :) anyway:
session couldn't be initialized, so check your session settings. (/tmp)
You probably print some space or linefeed at the end of prepend.php or index.php.
output buffering is off, so those errors are printed.
USECACHE = 1 might help if it doesn't work after fixing your session settings.
Thanks for the feedback, but I've still got trubbbbble.
I tried re-installing to make sure I hadn't inadvertently added some whitespace somewhere, but I still get the exact same problems.
And, after I try reloading the page a few times, it corrupts apache, which is a nice touch. :) I get this error when running any php page, until after I restart apache:
PHP Fatal error: session_start(): Failed to initialize storage module. in /var/cvsroot/lc_all/webapps/ecommerce/catalog/includes/functions/sessions.php on line 67
I should mention that I'm running in Firefox 1.0, but I tried it in IE 6 also. The first time I loaded index.php I got an err msg about XML, but then after reloading the page I get the same errors as firefox.
Err msgs (from browser when loading index.php):
lib/DB_Session.php:74: Warning[2]: ini_set(): A session is active. You cannot change the session module's ini settings at this time.
lib/display.php:131: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:260: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:262: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:296: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:297: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/Request.php:298: Warning[2]: Cannot modify header information - headers already sent by (output started at /var/cvsroot/lc_all/htdocs/phpwiki-1.3.10/lib/XmlElement.php:326)
lib/main.php:505: Warning[2]: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp)
>> /var/cvsroot/lc_all/htdocs doesn't seem to be the best docroot :)
/var/cvsroot/lc_all/htdocs is the doc root because /usr/local/apache/htdocs is a symlink. Is that a problem?
>>session couldn't be initialized, so check your session settings. (/tmp)
My session settings work fine in all other applications. Here they are (from php.ini):
[Session]
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 1
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 3600
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
I tried setting session auto start to false in the .htaccess, just a shot in the dark, but that didn't help anything.
And here's my config.ini setup:
ACCESS_LOG = ""
ALLOW_ANON_EDIT = true
ALLOW_ANON_USER = true
ALLOW_BOGO_LOGIN = true
ALLOWED_PROTOCOLS = "http|https|mailto|ftp|news|nntp|ssh|gopher"
ALLOW_USER_PASSWORDS = true
AUTH_GROUP_FILE = /etc/groups
AUTHOR_KEEP = 8
AUTHOR_MAX_AGE = 365
AUTHOR_MAX_KEEP = 20
AUTHOR_MIN_AGE = 7
AUTHORPAGE_TITLE = The PhpWiki Programming Team
AUTHORPAGE_URL = http://phpwiki.sourceforge.net/phpwiki/ThePhpWikiProgrammingTeam
AUTH_SESS_LEVEL = 2
AUTH_SESS_USER = userid
AUTH_USER_FILE = /etc/passwd
AUTH_USER_FILE_STORABLE = false
CACHE_CONTROL = LOOSE
CACHE_CONTROL_MAX_AGE = 600
CHARSET = iso-8859-1
COPYRIGHTPAGE_TITLE = GNU General Public License
COPYRIGHTPAGE_URL = http://www.gnu.org/copyleft/gpl.html#SEC1
DATABASE_DBA_HANDLER = gdbm
DATABASE_DIRECTORY = /tmp
DATABASE_TIMEOUT = 20
DATABASE_TYPE = SQL
DBAUTH_AUTH_CHECK = "SELECT IF(passwd='$password',1,0) FROM user WHERE userid='$userid'"
DBAUTH_AUTH_CREATE = "INSERT INTO user SET passwd=PASSWORD('$password'),userid='$userid'"
DBAUTH_AUTH_CRYPT_METHOD = plain
;DBAUTH_AUTH_DSN = "mysql://localhost/phpwiki"
DBAUTH_AUTH_DSN = "mysql://root:xxxx@localhost/wiki1310"
DBAUTH_AUTH_USER_EXISTS = "SELECT userid FROM user WHERE userid='$userid'"
DBAUTH_GROUP_MEMBERS = "SELECT user FROM user WHERE group='$groupname'"
DBAUTH_IS_MEMBER = "SELECT user FROM user WHERE user='$userid' AND group='$groupname'"
DBAUTH_PREF_SELECT = "SELECT prefs FROM pref WHERE userid='$userid'"
DBAUTH_PREF_UPDATE = "REPLACE INTO pref SET prefs='$pref_blob',userid='$userid'"
DBAUTH_USER_GROUPS = "SELECT group FROM user WHERE user='$userid'"
DEFAULT_LANGUAGE = en
DEFAULT_WIKI_PAGES = "ReleaseNotes:SandBox:PhpWiki:SteveWainstead"
DEFAULT_WIKI_PGSRC = pgsrc
EDITING_POLICY = "EditingPolicy"
ENABLE_EDIT_TOOLBAR = true
ENABLE_RAW_HTML = false;
ENABLE_REVERSE_DNS = true
ENABLE_USER_NEW = true
ENCRYPTED_PASSWD = true
GROUP_METHOD = WIKIPAGE
HTML_DUMP_SUFFIX = .html
IMAP_AUTH_HOST = "localhost:143/imap/notls"
INLINE_IMAGES = "png|jpg|gif"
INTERWIKI_MAP_FILE = lib/interwiki.map
KEYWORD_LINK_REGEXP = "(?<=^\'. join(\'|^\', $keywords) . \')[[:upper:]].*$"
KEYWORDS = "Category:Topic"
LDAP_AUTH_HOST = "ldap://localhost:389"
LDAP_AUTH_PASSWORD = ""
LDAP_AUTH_USER = "CN=ldapuser,CN=Users"
LDAP_BASE_DN = "ou=Users,o=Development,dc=mycompany.com"
LDAP_SEARCH_FIELD = "uid"
LDAP_SET_OPTION = ""
MAJOR_KEEP = 8
MAJOR_MAX_AGE = 32
MAX_UPLOAD_SIZE = 16777216
MINOR_EDIT_TIMEOUT = 604800
MINOR_KEEP = 4
MINOR_MAX_AGE = 7
PASSWORD_LENGTH_MINIMUM = 2
POP3_AUTH_HOST = "localhost:110"
STRICT_MAILABLE_PAGEDUMPS = false
SUBPAGE_SEPARATOR = "/"
THEME = default
TOC_FULL_SYNTAX = true
USER_AUTH_ORDER = PersonalPage : Db
USER_AUTH_POLICY = strict
WARN_NONPUBLIC_INTERWIKIMAP = false
WIKI_NAME = PhpWiki
WIKI_NAME_REGEXP = "(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])"
WIKI_PGSRC = pgsrc
ZIPDUMP_AUTH = false
DEBUG = 1
ADMIN_USER = tanner
ADMIN_PASSWD = xxxxx
; From default file
DATABASE_DSN = "mysql://root:xxxx@localhost/wiki1310"
DATABASE_SESSION_TABLE = session
; Recommended by rurban
USECACHE = 1
Adding USECACHE didn't help, but it did make the font size smaller in firefox (???) :)
Anyway, I hope someone can help me out, I'm dying here.
Thanks!