Fatal error: Uncaught exception 'Exception' with message 'FEHLER:

Hallo, ich wollte Oxyd Eshop installieren. Ständig bekomme ich diesen Fehler:

Fatal error: Uncaught exception ‘Exception’ with message ‘FEHLER: Keine Datenbankverbindung möglich! - Benutzer ‘’@‘localhost’ hat keine Zugriffsberechtigung (verwendetes Passwort: Nein)’ in /var/www/web231/html/setup/oxsetup.php:808 Stack trace: #0 /var/www/web231/html/setup/oxsetup.php(2071): OxSetupDb->openDatabase(NULL) #1 /var/www/web231/html/setup/oxsetup.php(2294): oxSetupController->dbCreate() #2 /var/www/web231/html/setup/index.php(40): oxSetupDispatcher->run() #3 {main} thrown in /var/www/web231/html/setup/oxsetup.php on line 808.

Also ich gebe Hostname: localhost Datenbanname: usr_web_xxx Datenbanbenutzername: webxxx und Datenbank Passwort : xxx

Bei Alfahosting nachgefragt, die sagen das ich an Oxid wenden soll. Danke.

Moin Alex,

erst einmal würde ich die Zugangsdaten wieder überschreiben!!!
Die gehen die versammelte Internetgemeinde nichts an :smiley:

Wann kommt denn genau der Fehler?

Beste Grüsse

Thomas

Ich vermute das ist der sporadische Fehler bezüglich Suhosin, da dürfte der Wert zu gering sein und deshalb werden die korrekten Zugangdsdaten nicht komplett übermittelt. Verwende mal die Forensuche bzw. üüberprüfe via php.ini wie hoch dieser Wert ist.

Und wo finde ich die Datei php.ini, wie muss ich dann den Wert genau einstellen? Sorry bin Neuling in diesem Gebiet, aber trotzdem interessiert mich Oxid.

schau mal hier den ersten Absatz - damit findest Du erstmal schnell raus, welche Einstellung gerade gesetzt ist:

wenn ich http://localhost/phpinfo.php eingebe, dann wird die Seite nicht angezeigt. Der fehler kommt bei Punkt 4 Datenbank. Datenbank habe ich ja angelegt, aber wenn ich in phpMyAdmin auf Datenbank draufklicke zeigt es mir: Datenbanken

Neue Datenbank anlegen: 
Keine Rechte

Datenbank aufsteigend
usr_web231_1
Insgesamt: 1

Nein

Du musst die Datei erstellen, auf Deinen Webspace an die Stelle hochladen wo auch die Shopdaten liegen und dann diese Datei im Browser aufrufen (www.deine-domain.de/phpinfo.php).

Ok habe ich gemacht, jetzt kommt das und noch vieles mehr:

PHP Version 5.3.8-1~dotdeb.1

System 	Linux alfa3058 2.6.32-bpo.5-amd64 #1 SMP Wed Jul 20 09:10:04 UTC 2011 x86_64
Build Date 	Aug 26 2011 12:40:04
Server API 	CGI/FastCGI
Virtual Directory Support 	disabled
Configuration File (php.ini) Path 	/etc/php5/cgi
Loaded Configuration File 	/etc/apache2/confixx_phpini/web231/2/php.ini
Scan this dir for additional .ini files 	/etc/php5/cgi/conf.d
Additional .ini files parsed 	/etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/imagick.ini, /etc/php5/cgi/conf.d/imap.ini, /etc/php5/cgi/conf.d/intl.ini, /etc/php5/cgi/conf.d/ioncube.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini, /etc/php5/cgi/conf.d/suhosin.ini, /etc/php5/cgi/conf.d/xmlrpc.ini, /etc/php5/cgi/conf.d/xsl.ini, /etc/php5/cgi/conf.d/zend.ini
PHP API 	20090626
PHP Extension 	20090626
Zend Extension 	220090626
Zend Extension Build 	API220090626,NTS
PHP Extension Build 	API20090626,NTS
Debug Build 	no
Thread Safety 	disabled
Zend Memory Manager 	enabled
Zend Multibyte Support 	disabled
IPv6 Support 	enabled
Registered PHP Streams 	https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports 	tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters 	zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*

This server is protected with the Suhosin Patch 0.9.10
Copyright (c) 2006-2007 Hardened-PHP Project Copyright (c) 2007-2009 SektionEins GmbH

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

This program was built by Dotdeb.

Configuration
bcmath
BCMath support 	enabled

Directive	Local Value	Master Value
bcmath.scale	0	0

bz2
BZip2 Support 	Enabled
Stream Wrapper support 	compress.bzip2://
Stream Filter support 	bzip2.decompress, bzip2.compress
BZip2 Version 	1.0.5, 10-Dec-2007

calendar
Calendar support 	enabled

cgi-fcgi
Directive	Local Value	Master Value
cgi.check_shebang_line	1	1
cgi.discard_path	0	0
cgi.fix_pathinfo	1	1
cgi.force_redirect	1	1
cgi.nph	0	0
cgi.redirect_status_env	no value	no value
cgi.rfc2616_headers	0	0
fastcgi.logging	1	1

Core
PHP Version 	5.3.8-1~dotdeb.1

Directive	Local Value	Master Value
allow_call_time_pass_reference	On	On
allow_url_fopen	On	On
allow_url_include	On	On
always_populate_raw_post_data	Off	Off
arg_separator.input	&	&
arg_separator.output	&	&
asp_tags	Off	Off
auto_append_file	no value	no value
auto_globals_jit	On	On
auto_prepend_file	no value	no value
browscap	no value	no value
default_charset	no value	no value
default_mimetype	text/html	text/html
define_syslog_variables	Off	Off
disable_classes	no value	no value
disable_functions	system, show_source, passthru, shell_exec, exec, pcntl_exec, popen, posix_setuid, posix_seteuid, proc_open, chown, dbmopen, disk_free_space, diskfreespace	system, show_source, passthru, shell_exec, exec, pcntl_exec, popen, posix_setuid, posix_seteuid, proc_open, chown, dbmopen, disk_free_space, diskfreespace
display_errors	On	On
display_startup_errors	Off	Off
doc_root	no value	no value
docref_ext	no value	no value
docref_root	no value	no value
enable_dl	On	On
error_append_string	no value	no value
error_log	no value	no value
error_prepend_string	no value	no value
error_reporting	22519	22519
exit_on_timeout	Off	Off
expose_php	Off	Off
extension_dir	/usr/lib/php5/20090626	/usr/lib/php5/20090626
file_uploads	On	On
highlight.bg	#FFFFFF	#FFFFFF
highlight.comment	#FF8000	#FF8000
highlight.default	#0000BB	#0000BB
highlight.html	#000000	#000000
highlight.keyword	#007700	#007700
highlight.string	#DD0000	#DD0000
html_errors	On	On
ignore_repeated_errors	Off	Off
ignore_repeated_source	Off	Off
ignore_user_abort	Off	Off
implicit_flush	Off	Off
include_path	.:/usr/share/php:/usr/share/pear	.:/usr/share/php:/usr/share/pear
log_errors	Off	Off
log_errors_max_len	1024	1024
magic_quotes_gpc	On	On
magic_quotes_runtime	Off	Off
magic_quotes_sybase	Off	Off
mail.add_x_header	Off	Off
mail.force_extra_parameters	no value	no value
mail.log	no value	no value
max_execution_time	30	30
max_file_uploads	20	20
max_input_nesting_level	64	64
max_input_time	60	60
memory_limit	40M	40M
open_basedir	/var/www/web231/html/:/var/www/web231/phptmp/:/var/www/web231/files/:/var/www/web231/atd/:/usr/share/php/	/var/www/web231/html/:/var/www/web231/phptmp/:/var/www/web231/files/:/var/www/web231/atd/:/usr/share/php/
output_buffering	no value	no value
output_handler	no value	no value
post_max_size	8M	8M
precision	12	12
realpath_cache_size	16K	16K
realpath_cache_ttl	120	120
register_argc_argv	On	On
register_globals	Off	Off
register_long_arrays	On	On
report_memleaks	On	On
report_zend_debug	On	On
request_order	no value	no value
safe_mode	Off	Off
safe_mode_exec_dir	no value	no value
safe_mode_gid	Off	Off
safe_mode_include_dir	/usr/share/php/	/usr/share/php/
sendmail_from	no value	no value
sendmail_path	/usr/sbin/sendmail -t -i -f [email][email protected][/email]	/usr/sbin/sendmail -t -i -f [email][email protected][/email]
serialize_precision	100	100
short_open_tag	On	On
SMTP	localhost	localhost
smtp_port	25	25
sql.safe_mode	Off	Off
track_errors	Off	Off
unserialize_callback_func	no value	no value
upload_max_filesize	26M	26M
upload_tmp_dir	/var/www/web231/phptmp/	/var/www/web231/phptmp/
user_dir	no value	no value
user_ini.cache_ttl	300	300
user_ini.filename	.user.ini	.user.ini
variables_order	EGPCS	EGPCS
xmlrpc_error_number	0	0
xmlrpc_errors	Off	Off
y2k_compliance	On	On
zend.enable_gc	On	On

ctype
ctype functions 	enabled

curl
cURL support 	enabled
cURL Information 	7.18.2
Age 	3
Features
AsynchDNS 	No
Debug 	No
GSS-Negotiate 	Yes
IDN 	Yes
IPv6 	Yes
Largefile 	Yes
NTLM 	Yes
SPNEGO 	No
SSL 	Yes
SSPI 	No
krb4 	No
libz 	Yes
CharConv 	No
Protocols 	tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, scp, sftp
Host 	x86_64-pc-linux-gnu
SSL Version 	OpenSSL/0.9.8g
ZLib Version 	1.2.3.3

date

Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected Europe/Berlin' for 'CET/1.0/no DST' instead in /var/www/web231/html/phpinfo.php on line 2

setz mal folgende Zeile zusätzlich in die Datei .htaccess im Shopverzeichnis

php_value suhosin.get.max_value_length 1000

nachdem ich das gemacht habe, kommt das bei dem punkt wo ich Lizenzbedienungen akzeptiere, also jetzt komme zu dem 4.Datenbank nicht mal.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at www.versandpoint.com Port 80

Wende Dich nochmals an Alfahosting und teile denen mit, dass die den Wert für “suhosin.get.max_value_length” auf 1000 setzen sollen.

Alternativ (wenn Du ein wenig am Code schrauben willst) kannst Du auch diesen Vorschlag umsetzen:

http://www.oxid-esales.com/forum/showthread.php?t=9382#post56605
(im unteren Teil des Postings, betrifft die Zeile 2031 in oxsetup.php)

vorhar aber die ergänzte Zeile in der .htaccess wieder rausnehmen!

Hallo, also bei Alfahosting habe ich nachgefragt, die - ich soll die Rechte alle richtig vergeben, was ich auch gemacht habe, trotzdem ging das nicht. Danach haben die geschrieben:

Ihr Skript übergibt bei einer Datenbankverbindung weder Benutzername noch Passwort:
"FEHLER: Keine Datenbankverbindung möglich! - Benutzer ‘’@‘localhost’ hat keine Zugriffsberechtigung (verwendetes Passwort: Nein)"Dies ist auch der Grund für den Fehlschlag. Fragen Sie diesbezüglich bitte beim Hersteller um Rat.

Das Problem dabei ist, dass durch das von Alfahosting eingesetzte Modul Suhosin bestimmte Grenzwerte vorgibt. Deshalb werden bei der Übergabe der Userdaten nicht die kompletten Daten übergeben.
Hilft also nur eine Änderung der Begrenzung, wie ich oben bereits geschrieben hatte. Und das muss offensichtlich Alfahosting tun, wenn Du in Deinem Backend bei denen diese Einstellungen nicht selbst vornehmen kannst.

suhosin.get.max_value_length = 1000

Ok. Hatt sich erledigt, Alfahosting haben das eingestellt, jetzt läufts wieder. Vielen Dank.

Gruß

Alex A.